Skip to content
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

Using SID for LDAP_AUTH_USER_LOOKUP_FIELDS #280

Open
rjbullock opened this issue Oct 7, 2024 · 0 comments
Open

Using SID for LDAP_AUTH_USER_LOOKUP_FIELDS #280

rjbullock opened this issue Oct 7, 2024 · 0 comments

Comments

@rjbullock
Copy link

So we want to use Active Directory's SID ("objectSID") for our user lookups instead of "username". This is because usernames can change but SID does not. If we use "username" and our sync process runs, if a user's username has change, the sync will fail.

So we updated LDAP_AUTH_USER_LOOKUP_FIELDS to be ("sid",) and it seems to work. However, we had to create a custom auth backend to utilize the "username" field for the authenticate method.

Can the package be updated to accommodate this situation? And are there any unforeseen issues we might run into using our custom solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant