<legend id='hGhFx'><style id='hGhFx'><dir id='hGhFx'><q id='hGhFx'></q></dir></style></legend>
<i id='hGhFx'><tr id='hGhFx'><dt id='hGhFx'><q id='hGhFx'><span id='hGhFx'><b id='hGhFx'><form id='hGhFx'><ins id='hGhFx'></ins><ul id='hGhFx'></ul><sub id='hGhFx'></sub></form><legend id='hGhFx'></legend><bdo id='hGhFx'><pre id='hGhFx'><center id='hGhFx'></center></pre></bdo></b><th id='hGhFx'></th></span></q></dt></tr></i><div id='hGhFx'><tfoot id='hGhFx'></tfoot><dl id='hGhFx'><fieldset id='hGhFx'></fieldset></dl></div>
  • <tfoot id='hGhFx'></tfoot>

    <small id='hGhFx'></small><noframes id='hGhFx'>

          <bdo id='hGhFx'></bdo><ul id='hGhFx'></ul>

      1. 分页 LDap 搜索失败并显示“请求的属性不存在";

        Paged LDap search fails with quot;The requested attribute does not existsquot;(分页 LDap 搜索失败并显示“请求的属性不存在;)

        • <bdo id='E8gb8'></bdo><ul id='E8gb8'></ul>

                  <i id='E8gb8'><tr id='E8gb8'><dt id='E8gb8'><q id='E8gb8'><span id='E8gb8'><b id='E8gb8'><form id='E8gb8'><ins id='E8gb8'></ins><ul id='E8gb8'></ul><sub id='E8gb8'></sub></form><legend id='E8gb8'></legend><bdo id='E8gb8'><pre id='E8gb8'><center id='E8gb8'></center></pre></bdo></b><th id='E8gb8'></th></span></q></dt></tr></i><div id='E8gb8'><tfoot id='E8gb8'></tfoot><dl id='E8gb8'><fieldset id='E8gb8'></fieldset></dl></div>
                    <tbody id='E8gb8'></tbody>
                  <legend id='E8gb8'><style id='E8gb8'><dir id='E8gb8'><q id='E8gb8'></q></dir></style></legend>
                  <tfoot id='E8gb8'></tfoot>

                  <small id='E8gb8'></small><noframes id='E8gb8'>

                  本文介绍了分页 LDap 搜索失败并显示“请求的属性不存在";的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我需要使用使用 .NET/C# 实现的 Ldap 搜索来获取epersonstatus=REMOVE"的所有员工的员工编号",例如:

                  I need to get the 'employeenumber' of all the employees whose 'epersonstatus=REMOVE' using an Ldap search implemented using .NET/C# like:

                  var connection = new LdapConnection("foo.bar.com:389");
                  
                  connection.AuthType = AuthType.Anonymous;
                  connection.SessionOptions.ProtocolVersion = 3;
                  connection.Bind();
                  
                  var request = new SearchRequest(
                                   "dc=root,dc=com",
                                   "(epersonstatus=REMOVE)", 
                                   SearchScope.Subtree,
                                   new string[] { "employeenumber" }); 
                  

                  由于有数千个条目,我正在使用此处建议的分页请求:http://dunnry.com/blog/PagingInSystemDirectoryServicesProtocols.aspx

                  Since there are thousands of entries I am using paged requests as proposed here: http://dunnry.com/blog/PagingInSystemDirectoryServicesProtocols.aspx

                  我还检查了服务器是否支持此处建议的分页请求:iPlanet LDAP 和 C# PageResultRequestControl

                  I have also checked that the server supports paged requests as proposed here: iPlanet LDAP and C# PageResultRequestControl

                  一旦流量到达:

                  SearchResponse response = connection.SendRequest(request) as SearchResponse;
                  

                  我收到一个带有消息请求的属性不存在"的 DirectoryOperationException.

                  I get a DirectoryOperationException with message "The requested attribute does not exist".

                  通过在像 softerra 这样的 LDap 客户端上运行相同的查询,我得到了条目(一千个)和错误.

                  By running the same query on a LDap client like softerra I get the entries (a thousand) and the error.

                  我们将不胜感激.

                  推荐答案

                  我遇到了类似的问题.

                  当使用分页搜索时,我得到了异常服务器不支持该控件.该控件很关键.",当使用非分页搜索时,我收到了结果(至少只要过滤器限制了最大数量).

                  When using paged search, I got the exception "The server does not support the control. The control is critical.", when using non-paged search I received results (at least as long as the filter restricted the maximum number).

                  但我发现,错误消息具有误导性 - 问题隐藏在身份验证中.

                  However I found out, that the error message is misleading - The problem was buried in the authentication.

                  使用 AuthType.Basic(或 AuthType.Anonymous)我收到了错误.我切换到 AuthType.Ntlm 后,它就开始工作了.

                  Using AuthType.Basic (or AuthType.Anonymous) I received the error. Bus as soon as I switched to AuthType.Ntlm it worked.

                  希望这会有所帮助...

                  Hope this helps...

                  这篇关于分页 LDap 搜索失败并显示“请求的属性不存在";的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Adding and removing users from Active Directory groups in .NET(在 .NET 中的 Active Directory 组中添加和删除用户)
                  set equality in linq(在 linq 中设置相等)
                  HashSet conversion to List(HashSet 转换为 List)
                  How to set timeout for webBrowser navigate event(如何为 webBrowser 导航事件设置超时)
                  Test whether two IEnumerablelt;Tgt; have the same values with the same frequencies(测试两个IEnumerablelt;Tgt;具有相同频率的相同值)
                  How do you determine if two HashSets are equal (by value, not by reference)?(您如何确定两个 HashSet 是否相等(按值,而不是按引用)?)
                    • <tfoot id='J2aCi'></tfoot>
                    • <i id='J2aCi'><tr id='J2aCi'><dt id='J2aCi'><q id='J2aCi'><span id='J2aCi'><b id='J2aCi'><form id='J2aCi'><ins id='J2aCi'></ins><ul id='J2aCi'></ul><sub id='J2aCi'></sub></form><legend id='J2aCi'></legend><bdo id='J2aCi'><pre id='J2aCi'><center id='J2aCi'></center></pre></bdo></b><th id='J2aCi'></th></span></q></dt></tr></i><div id='J2aCi'><tfoot id='J2aCi'></tfoot><dl id='J2aCi'><fieldset id='J2aCi'></fieldset></dl></div>

                      <small id='J2aCi'></small><noframes id='J2aCi'>

                        <tbody id='J2aCi'></tbody>

                        <legend id='J2aCi'><style id='J2aCi'><dir id='J2aCi'><q id='J2aCi'></q></dir></style></legend>
                          <bdo id='J2aCi'></bdo><ul id='J2aCi'></ul>