[go: nahoru, domu]

Skip to content
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

Invalid password after upgrade to jupyterhub_0.9.0 #90

Open
SofianeB opened this issue Jul 2, 2018 · 11 comments
Open

Invalid password after upgrade to jupyterhub_0.9.0 #90

SofianeB opened this issue Jul 2, 2018 · 11 comments

Comments

@SofianeB
Copy link
SofianeB commented Jul 2, 2018

Hi,

upgraded to 0.9.0 from 0.8.1.
I had also to upgrade python from 3.4.0 to 3.5.0 (required by 0.9.0) and installed jupyterhub-ldapauthenticator with pip3.5.

Now authentication is not working.

I tried to delete cookies but same error. INVALID PASSWORD.

Thanks.

@dhirschfeld
Copy link
Collaborator

Hi @SofianeB,
Can you please post the output of your jupyterhub logs (from the terminal where you ran jupyterhub)?

Also, if you run jupyterhub with the --debug switch we should get more information which will help in debugging.

@SofianeB
Copy link
Author
SofianeB commented Jul 2, 2018

@dhirschfeld

[D 2018-07-02 13:33:00.122 JupyterHub ldapauthenticator:299] TYPE= 'False'
[D 2018-07-02 13:33:00.123 JupyterHub ldapauthenticator:278] Attempting to bind k204213 with uid=k204213,ou=people,o=ldap,o=root
[D 2018-07-02 13:33:00.134 JupyterHub ldapauthenticator:333] Status of user bind k204213 with uid=k204213,ou=people,o=ldap,o=root : False
    LDAPBindError: automatic bind not successful - unavailable
[W 2018-07-02 13:33:00.134 JupyterHub ldapauthenticator:379] Invalid password for user k204213
[W 2018-07-02 13:33:00.135 JupyterHub base:503] Failed login for k204213
[I 2018-07-02 13:33:00.139 JupyterHub log:158] 200 POST /jupyter/hub/login?next= (@127.0.0.1) 19.37ms

@dhirschfeld
Copy link
Collaborator

The unavailable is suspicious, but otherwise I couldn't say. I'll have a think on it but in the interim could you post your config here as well so we can check those? I have to go now, but it might help if someone picks this up in the meantime.

@SofianeB
Copy link
Author
SofianeB commented Jul 2, 2018

The thing is, if I switch back to previous jupyterhub version (0.8.1), it works normally! regardless of the configuration.

@dhirschfeld
Copy link
Collaborator

it works normally regardless of the configuration.

That's not actually true - there are an infinite number of ways you could misconfigure ldapauthenticator such that it wouldn't work on 0.8.1.

If you're happy sticking with 0.8.1, great you can go ahead and close this issue. If on the other hand you'd like to get it working with 0.9.0 you'll have to provide the requested information for anyone to be able to help you.

@SofianeB
Copy link
Author
SofianeB commented Jul 4, 2018

@dhirschfeld just an update.
The issue is due to the version of jupyterhub-ldapauthenticator.
I just downgraded to previous release and it works on both jupyterhub versions (0.8.1 and 0.9.0) so that was not a configuration problem.

@dhirschfeld
Copy link
Collaborator

That your old configuration works with the old version of ldapauthenticator is unsurprising and doesn't eliminate the possibility that your old configuration may need to be updated to use the new version.

@SofianeB
Copy link
Author
SofianeB commented Jul 4, 2018 via email

@mfriedemann
Copy link

As dhirschfeld pointed out, trying to second guess possible reasons isn't a very useful approach.

To make it easier for you, SofianeB, you can directly check which changes have actually been implemented between the version that works and the latest one.
Assuming that the working version is 1.2.1 and latest means 1.2.2, you can see the changes here.

There is really only one change in the escaping of commas in the resolved username, which is now behind two additional checks
You should compare these newly introduced checks there against your configuration to see if they apply and if that might cause your issue.

HTH,
M.

@dhirschfeld
Copy link
Collaborator

If you would post your configuration someone may actually be able to help, otherwise as mfriedmann says you may have to look at the commits yourself to see if any are relevant to your usage.

@SofianeB
Copy link
Author
SofianeB commented Jul 6, 2018

Thank you @mfriedemann and @dhirschfeld

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants