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:

(&(objectCategory=person)(samaccountname=*))

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

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

报告相同问题?

悬赏问题

  • ¥35 平滑拟合曲线该如何生成
  • ¥100 c语言,请帮蒟蒻写一个题的范例作参考
  • ¥15 名为“Product”的列已属于此 DataTable
  • ¥15 安卓adb backup备份应用数据失败
  • ¥15 eclipse运行项目时遇到的问题
  • ¥15 关于#c##的问题:最近需要用CAT工具Trados进行一些开发
  • ¥15 南大pa1 小游戏没有界面,并且报了如下错误,尝试过换显卡驱动,但是好像不行
  • ¥15 没有证书,nginx怎么反向代理到只能接受https的公网网站
  • ¥50 成都蓉城足球俱乐部小程序抢票
  • ¥15 yolov7训练自己的数据集