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

Addressing Multiple AD Servers and/or User Groups on AD Server #233

Open
cjmccormick88 opened this issue Dec 7, 2021 · 6 comments
Open

Comments

@cjmccormick88
Copy link

This is a great library. Really well done. It's working for a project great, but I wondered if anyone had used it yet in a situation where you may have two different LDAP servers that need to be searched for users in AD.

Example: One may be corp.forestlake.com and another may be corp.rivervalley.com. In each of those servers, then two search bases might be possible....

In example, "ou=Staff,ou=City1,ou=Site,ou=Company Name,dc=corp,dc=forestlake,dc=com".

My plan is to pass in dictionaries. Will this work ideally with the code and/or do all the settings have to be passed through in that way or just the ones that are going to be different?

@etianen
Copy link
Owner

etianen commented Dec 8, 2021 via email

@cjmccormick88
Copy link
Author

I'm going to fork this and see if I can add that capability. It's definitely worth adding the capability because this is the best solution I've seen to thus far. Many of the LDAP and Kerberos packages out there had some issues. This one has been fairly bulletproof, but I'm learning that LDAP and Active Directory can be challenging.

@etianen
Copy link
Owner

etianen commented Dec 8, 2021 via email

@mmmduft
Copy link

mmmduft commented Jun 3, 2022

@etianen also keen for this feature, and wondering if you had any advice on high-level approaches for implementing.

Adding ability to subclass the "LDAPBackend" backend with a settings "Prefix" value - as used in django-auth-ldap see https://django-auth-ldap.readthedocs.io/en/latest/multiconfig.html) seems like a reasonable design to mirror.

Would need changes to make sure this value can be passed down to instances of conf.settings, and the management commands may need "discover" any subclassed auth backends.

Any Thoughts?

@etianen
Copy link
Owner

etianen commented Jun 12, 2022

That seems like a good, backwards-compatible approach. I'd be happy with that.

@Riccardo-Maffei
Copy link

Just tried to solve this issue, more details in PR #281

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

4 participants