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

base_dn must accept more than one OU or none #48

Open
lucasbenevides opened this issue Jan 21, 2019 · 4 comments
Open

base_dn must accept more than one OU or none #48

lucasbenevides opened this issue Jan 21, 2019 · 4 comments

Comments

@lucasbenevides
Copy link

In my organization, the Active Directory (AD) forest has two Organization Units (OU) and half the users are in one OU and the other half in other OU. There is no OU that includes all users that need to be authenticated by the LDAP plugin.
I have tried to set the ldap.base_dn (distinguished name) with only the DC part of my domains, so that it would look up in my entire AD forest but it throws an error. The error is 'OPERATIONS_ERROR' object has no attribute 'info'.
Is there any request to the plugin to accept only the DC without the OU? Or at least to the parameter ldap.base_dn to accept two OU not nested in each other?
Any other suggestion?

@lucasbenevides
Copy link
Author

I have changed the code of two files so that it works with two parameters of distinguished Name (DN). If somehow is anyone interested, send me a message.
I just changed the parameter ldap.search.alt that is not available anymore and replaced the code that treated the case of having two search paths by the case of having two DN.
If anybody is interested I can give the code.
Do you think I should open a Pull Request?

@jrdh
Copy link
Member

jrdh commented Jan 22, 2019

Hi @lucasbenevides, thanks for answering your own query! It sounds like this could be useful for other users of this repo and as long as existing configurations still work would definitely be worth opening a pull request for. Once you've opened it up we can have a look and get it merged 🎉

@lucasbenevides
Copy link
Author

lucasbenevides commented Jan 23, 2019

Okay, I did it.
It is here.
Although, if there was already a way to look in two different organizational units (OU) using only the default parameter, which I couldn't find out.

@jrdh
Copy link
Member

jrdh commented Jan 25, 2019

Thanks! I'll take a look at the start of next week 🙂

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

No branches or pull requests

3 participants