twisted / ldaptor

LDAP server, client and utilities, using Twisted Python
MIT License
158 stars 54 forks source link

ldapsearch does not return dn #247

Closed the2nd closed 3 months ago

the2nd commented 3 months ago

Hi,

i am developing an ldap server for my project otpme. My current implementation works as expected for normal ldap searches from the console. i can also query specific attributes like uid. but if i specify to only return the dn nothing is returned and i dont know why.

my code is lokated at https://github.com/the2nd/otpme/blob/main/otpme/lib/ldap/server.py

maybe someone can tell me what i'm doing wrong?

Regads the2nd

the2nd commented 3 months ago

Replying to myself. I was overriding the _cbSearchGotBase in my code which caused this behavior.