go-ldap / ldap

Basic LDAP v3 functionality for the GO programming language.
Other
2.19k stars 352 forks source link

Support for children search scope constant declaration #481

Closed sirzzang closed 5 months ago

sirzzang commented 5 months ago

Hi. I want to search entries from LDAP server by using ‘children’ value in the scope option, similar to what is possible with the -s option in the ldapsearch command.

After trying out different approaches, I've come to realize that SearchRequest with scope argument set to value 3 does exactly what I wanted to do, but there is no constant declaration for representing this scope level. I know scope level for children is not defined in RFC4511. However, I think adding constant declaration for children level would enhance convenience for users like me. Since the code using SearchRequest currently functions well with the scope argument value 3, incorporating it into a constant declaration would add more clarity and coherence.

Could you please review PR https://github.com/go-ldap/ldap/pull/480 and add support for it?

Thanks.

cpuschma commented 5 months ago

Hi, #480 has been merged. Thank you for bringing this up and your contribution.