-
Notifications
You must be signed in to change notification settings - Fork 202
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
binding as an existing user "None" #55
Comments
The len() check is just a quick test for results to give better error to user if nothing was found. |
The following is the filter I am using
I thought that this would suffice to filter out the non-existent users as they would match nither of the attributes specified above. Is my setting wrong or missing something? |
Looks like you are hitting this issue: |
..and this is strange, because I see the error in such case:
Which python/python_ldap versions are used? |
I have already set it like the following, but as per my understanding, the referrals are disabled by default in the module.
I do not have the granular level of control over AD as it is the managed service on MS Azure.
python: 2.7.14 Based on the post on StackOverflow you are referring to, the "None" should be handled by the client side, shouldn't it? |
Thank you for the information,
|
Thank you for the patch. I have tested it on my machine and confirmed that the daemon works fine now. |
Hi,
nginx-ldap-auth/nginx-ldap-auth-daemon.py
Line 231 in 850f5ea
Wouldn't it be supposed to check not only the length of the
results
, but also what's inside?if len(results) < 1:
The following is the output from the daemon:
results
with an existent userresults
with a non-existent userEven the latter case, the script falls through and returns 200(Auth OK) which is wrong as the user in question does not exist(in my case in MS Active Directory).
The text was updated successfully, but these errors were encountered: