dongzhanjuan5141 2017-03-06 15:55
浏览 132

PHP LDAP,ldap_search只返回少数用户

I'm working on a PHP project for my job and I ran into an issue. I can't figure out why my query (which just retrive all users) only return 34 results out of 348 entries. It's not depending in which OU they are or anything, it's just like : "You can come, no not you... Yu. No not you, Yu !"

It's always the same 34 persons.

Here's the search filter:


Everything else is fine, it only took me one whole day of work to make the authentification work :3

Ask for more information, I'm new to LDAP, plus PHP and me isn't a love story.

  • 写回答

1条回答 默认 最新

  • doujichan1399 2017-03-06 22:59

    try to play with the scope (it can be sub, one, or base), if you want all entries from child OUs, you will need to use the "sub" scope. (or SUBTREE)

    and you usually can't search subtrees with anonymous binds in many LDAP servers so you have to specify it

    本回答被题主选为最佳回答 , 对您是否有帮助呢?



  • ¥50 深度学习运行代码直接中断
  • ¥15 关于#单片机#的问题,请各位专家解答!
  • ¥15 关于#单片机#的问题,请各位专家解答!
  • ¥20 需要完整的共散射点成像代码
  • ¥15 编写vba代码实现数据录入工作
  • ¥15 做过TCL海信电视小米电视相关影视会员软件私我
  • ¥15 Mapreduce是正常的,在运行其他jar包时并没有任何问题,只是在做LogCount.jar 时出的问题。如图所示
  • ¥15 ImportError: DLL load failed while importing _iterative: 找不到指定的模块。
  • ¥15 如何通过交互分析得出某高危患者对放疗获益更多
  • ¥15 相关性分析中,p<0.05, r=0.29,怎么评价相关性呢