Open xomka686 opened 6 years ago
i'm seeing enforcement not working, albeit slightly diff than the above report. It is the case where a valid user with an empty password results in a 200 -instead of checking the None
.
Simple patch might look something like this -
try:
if not passwd:
raise ldap.INVALID_CREDENTIALS
ldap_connection.simple_bind_s(data['distinguishedName'][0], passwd)
except ldap.INVALID_CREDENTIALS:
See also: https://github.com/python-ldap/python-ldap/issues/174
to be clear, with such a patch, i do see proper group checking thereafter
Hi!
I've implemented your nginx-ldap-auth module and it authenticates pretty well, nice job!
The only issue is, when I'm trying to set up authorization (user and group access enforcement), it's not working and users who are not members of specified groups and not listed in respective allowed list, are still able to log in and access the website.
My config snippet for it is as follows:
` root /usr/share/nginx/html;
Can you advice if anything is wrong in the config or maybe which debugs I can attach to assit you in the troubleshooting?