-
Notifications
You must be signed in to change notification settings - Fork 0
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
SourceLDAP3 nitpicks #9
Comments
also, if there are no users found it'll print |
I think this should probably be an error. While there may be occasions where we would have a source configured with no users in it, it is vastly more likely to be an accidental misconfiguration, and it being an error would make it easier for us to be actually aware of this. |
while LDAP isn't case sensitive for sending to it, it will always return things in the case it thinks it is correct, not the case it was sent in, so |
I've checked the current state of the code against this issue:
|
Looking over the code I've noticed a few things:
anonymous_bind
is in config but not passed to ldap3. It could be passed into the Connection constructor withldap3.Connection(..., authentication=ldap3.ANONYMOUS)
use_ssl
is in config but not used anywhere. This should be passed intoldap3.Server(..., use_ssl=use_ssl)
port
is in config but not used anywhere. This should be passed intoldap3.Server(..., port=port)
fetch_users
vsfetch_groups
(usesobjectclass
in the user filter andobjectClass
in the group filter) - ldap3 is not sensitive to case in those fields, so this is harmless.The text was updated successfully, but these errors were encountered: