Comments (10)
This sounds like a bug. I'll check if I can reproduce to confirm...
from ldapauthenticator.
this is fact!
after update 1.1->1.2.2 have this problem
from ldapauthenticator.
If don't set bind_dn_template
- bind_dn_template=[]
and isBound
don't set True
https://github.com/jupyterhub/ldapauthenticator/blob/master/ldapauthenticator/ldapauthenticator.py#L315-L335
ldapauthenticator/ldapauthenticator/ldapauthenticator.py
Lines 315 to 335 in 718eb59
from ldapauthenticator.
But we can take userdn
from connection after search user conn.response[0]['dn']
my temporarily dirty fix :
#88
If you ok about the idea, I try to make pull-request correctly and beautifully
from ldapauthenticator.
How do we set bind_dn_template?
from ldapauthenticator.
@AnirudhVyas - bind_dn_template
is set in your jupyterhub_config.py
file.
https://github.com/jupyterhub/ldapauthenticator#ldapauthenticatorbind_dn_template
from ldapauthenticator.
I can't reproduce and I can't follow the logic how this could be the case.
isBound
is initially set to False
:
If bind_dn_template
is empty this entire block is skipped:
therefore isBound
is still False
here and this block is also skipped:
which then falls through to the else
clause which blocks access:
ldapauthenticator/ldapauthenticator/ldapauthenticator.py
Lines 377 to 381 in 718eb59
from ldapauthenticator.
Poking around some more, it seems that if your bind_dn_template
is an empty string ''
then it does indeed authenticate any password :(
from ldapauthenticator.
@dhirschfeld
correctly I understand that my PR (#88) doesn't conflict your PR. and I can add functionality (get bind_dn_template
from first request's response)
?
from ldapauthenticator.
@ermakovpetr - yes, I think the functionality in #88 is orthogonal to that in #95
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.