[Answer]-Ldapsearch, django-ldap-auth and "data 52e, v1db1"


Turns out I was looking for the error in the wrong place. It was a BIND error, not a user auth error. Note that there was confusion between whether the error was in AUTH_LDAP_BIND_DN or AUTH_LDAP_USER_SEARCH.

Solution was

AUTH_LDAP_BIND_DN = ‘cn=testadmin,ou=FDS Users,dc=fds,dc=local’

AUTH_LDAP_BIND_DN needs to refer to a Distinguished Name, ie, it needs to point to exactly where the user is located – it isn’t a case of “search a group or OU” so much as “this is the link”.

The above worked.

Leave a comment