Comments (8)
Thanks for the report @xmatthias. The problem isn't to do with Windows AD controllers (I'm running on Windows) but instead is the use of DN
for the lookup_dn_user_dn_attribute
.
The code as is assumes c.LDAPAuthenticator.lookup_dn_user_dn_attribute = 'CN'
so that's definitely something to fix.
In the interim, can you confirm if using the below config fixes the problem?
c.LDAPAuthenticator.lookup_dn_user_dn_attribute = 'CN'
c.LDAPAuthenticator.bind_dn_template = "CN={username},OU=Users,DC=example,DC=com"
c.LDAPAuthenticator.user_search_base = "OU=Users,DC=example,DC=com"
from ldapauthenticator.
Also, you should delete the below:
c.LDAPAuthenticator.base_dn = 'dc=example,dc=com'
base_dn
doesn't appear to be a valid config?
from ldapauthenticator.
Thanks for the quick response.
Your approach does work - but is unsuitable in my environment as we have multi-forest environment (our users come from 3 separate forests). This would not be a problem per se, however, the forests themselvs are nested into OU's (one nested OU per region / site - without real standard) - so i would need to use an array of several 100 bind-templates to actually have it work, which is error-prone and very cumbersome to maintain.
My template would need to look something like "CN={username},OU=Users,*,DC=example,DC=com"
- but wildcards in this position are not supported by ldap as far as i know.
I came a bit further inspired by your suggestions - using UPN i could get login to work "somehow"- however this breaks "allowed_groups" - as "[email protected]" is not member nor uniqueMember, but the CN would be.
c.LDAPAuthenticator.lookup_dn_user_dn_attribute = 'UserPrincipalName'
from ldapauthenticator.
Yes, the bug should be fixed. I thought that might give you a workaround in the interim but it sounds like that won't work.
from ldapauthenticator.
it's not a blocking issue for me at the moment - i can pip install the "old" commit directly in the meantime - so i found a temporary workaround (even though one I'd like to get rid of ASAP)
from ldapauthenticator.
Version 1.2.2 has been published to pypi - please let me know if this fixes the problem for you!
from ldapauthenticator.
Wow, that was quick
thanks a lot - works for me 👍
from ldapauthenticator.
can some one please help with the same kind of issue #115
from ldapauthenticator.
Related Issues (20)
- LDAP refuses connection when using pip to install JupyterHub and LDAP Authenticator HOT 3
- Z2JH LDAPStartTLSError on login attempts HOT 4
- Support of username contains upper case HOT 1
- LDAPAuthenticator.use_ssl configuration issue HOT 2
- Fetch UIDs from LDAP server HOT 1
- c.LDAPAuthenticator.user_attribute to get userID instead of UserName HOT 2
- Case sensitivity of usernames for server start HOT 2
- jupyterhub ldap auth using certificate - how to HOT 1
- JupyterHub with LDAPAuthenticator startTLS failed - protocolError HOT 7
- 500 Error to connect with openLDAP HOT 2
- openldap config HOT 2
- incomplete documentation, not working project. HOT 1
- Password update from LDAP break authentication HOT 1
- General maintenance needed HOT 1
- Release plan for 1.3.3, 1.4.0, or 2.0.0 HOT 1
- Add end to end test to ensure compatibility against various jupyterhub versions
- ldap3.core.exceptions.LDAPSocketOpenError: ("('socket ssl wrapping error: [SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1007)',)",) HOT 3
- LDAPInvalidFilterError Username is not escaped HOT 1
- use_ssl set to False, cannot connect to ldap server with plaintext HOT 4
- Add server_address capable of accepting multiple servers HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ldapauthenticator.