<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 搜索失败并显示“请求的属性不存在";

        时间:2023-10-24

        • <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 搜索失败并显示“请求的属性不存在";的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:如何在 C# 中从 LDAP 读取 TermainsServices IADsTSUserEx 属性? 下一篇:服务定位协议的示例客户端实现?

                  相关文章

                  1. <tfoot id='J2aCi'></tfoot>
                  2. <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'>

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