jupyterhub-kdcauthenticator icon indicating copy to clipboard operation
jupyterhub-kdcauthenticator copied to clipboard

TypeError: argument 2 must be str, not dict

Open belfhi opened this issue 6 years ago • 3 comments

Hello, I'm trying to use Kerberos for the Authentication process of JupyterHub and found your Authenticator module. I get the following error message: HTTPServerRequest(protocol='https', host='naf-belle-jhub.desy.de', method='POST', uri='/hub/login?next=', version='HTTP/1.1', remote_ip='::ffff:131.169.214.92') Traceback (most recent call last): File "/opt/conda/lib/python3.7/site-packages/tornado/web.py", line 1592, in _execute result = yield result File "/opt/conda/lib/python3.7/site-packages/jupyterhub/handlers/login.py", line 81, in post user = await self.login_user(data) File "/opt/conda/lib/python3.7/site-packages/jupyterhub/handlers/base.py", line 473, in login_user authenticated = await self.authenticate(data) File "/opt/conda/lib/python3.7/site-packages/jupyterhub/auth.py", line 257, in get_authenticated_user authenticated = await maybe_future(self.authenticate(handler, data)) File "/opt/conda/lib/python3.7/types.py", line 277, in wrapped coro = func(*args, **kwargs) File "/root/jupyterhub-kdcauthenticator/kdcauthenticator/kdcauthenticator.py", line 148, in authenticate rc = kerberos.authGSSServerStep(state, data) TypeError: argument 2 must be str, not dict

When I searched the web, I found that pykerberos was needed instead of kerberos, but this seems to be the case on my system. Any ideas what could be wrong? Cheers, Johannes

belfhi avatar Oct 01 '18 09:10 belfhi

I have the same error. I followed the instructions given in: https://github.com/bloomberg/jupyterhub-kdcauthenticator . I have not seen any blogs with a successful outcome.

Did you find a solution for the error. File "/opt/jupyter/jupyterhub-kdcauthenticator/kdcauthenticator/kdcauthenticator.py", line 148, in authenticate rc = kerberos.authGSSServerStep(state, data) TypeError: argument 2 must be str, not dict

ebebpl avatar Oct 04 '18 19:10 ebebpl

I created a pull request to fix this. Please follow this change. https://github.com/bloomberg/jupyterhub-kdcauthenticator/pull/4/commits/bda743c15c9cab9c63ecb635a90cc4ea6dc3b9da

titan550 avatar Nov 25 '18 18:11 titan550

Thanks @titan550 I'll try this out but it seems like it's exactly what's causing the issue... But also it seems the maintainers aren't very active...

belfhi avatar Nov 25 '18 19:11 belfhi