-
Notifications
You must be signed in to change notification settings - Fork 330
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add a ldap_scope parameter #921
Comments
Hello, It seems that ldap_search is missing the scope parameters. Any search is done with sub scope. See: https://www.php.net/manual/en/function.ldap-search.php You could replace ldap_search by ldap_list, which is doing exactly what you want, but it wouldn't be convenient for the software maintenance. Maybe we could have a selector for choosing the right function (ldap_list, ldap_search or ldap_read), given a scope parameter, but it's quite a work. |
Yes, selecting the scope could be a new feature If you are using OpenLDAP, you can use extended filter matching:
|
Thanks! That did the trick!
(for example) |
Done in #939 Don't forget to update composer dependency: |
Hi,
I need a way of setting the LDAP search filter to use SCOPE = one (instead of subtree). Is this possible? Our setup looks like this:
Having scope=one would only search and find users like user1 and user2 but would exclude 'user3' and 'user4.
It seems the LDAP search doesn't work despite trying modifiers like NOT
(!(ou=deactivated))
Any ideas on how this could be achieved?
Thanks,
Tom
The text was updated successfully, but these errors were encountered: