ldapauthenticator
ldapauthenticator copied to clipboard
LDAP Authentication with sAMAccountName don't match regex ^[a-z][.a-z0-9_-]
Username field does not accept uppercase username not allowing sAMAccountName with uppercase to authenticate.
This would work if the regular expression is r'^[a-zA-Z][.a-zA-Z0-9_-]*$' to allow upper case. Below are the logs.
[D 2019-04-22 14:54:40.536 SingleUserNotebookApp genericmanager:72] S3contents.GenericManager.get] path('') type(directory) format(None)
[D 2019-04-22 14:54:40.536 SingleUserNotebookApp genericmanager:89] S3contents.GenericManager.get_directory: path('') content(1) format(None)
[D 2019-04-22 14:54:40.536 SingleUserNotebookApp genericmanager:101] S3contents.GenericManager.directory_model_from_path: path('') type(1)
[D 2019-04-22 14:54:40.536 SingleUserNotebookApp genericmanager:67] S3contents.GenericManager.dir_exists: path('')
[D 2019-04-22 14:54:40.639 SingleUserNotebookApp s3_fs:110] S3contents.S3FS: <s3-location>
is a directory: True
[D 2019-04-22 14:54:40.639 SingleUserNotebookApp s3_fs:73] S3contents.S3FS: Listing directory: <s3-location>
[D 2019-04-22 14:54:40.735 SingleUserNotebookApp s3_fs:92] S3contents.S3FS: <s3-location>/demo.ipynb
is a file: True
[D 2019-04-22 14:54:40.805 SingleUserNotebookApp s3_fs:92] S3contents.S3FS: <s3-location>/test.ipynb
is a file: True
[I 2019-04-22 14:54:40.832 SingleUserNotebookApp log:158] 200 GET /user/a*****/api/contents?type=directory&=6 (a@::ffff:10.167.97.1) 297.25ms
[I 2019-04-22 14:54:53.069 JupyterHub log:158] 200 GET /hub/home (a@::ffff:10.25.14.86) 7.37ms
[I 2019-04-22 14:54:58.752 JupyterHub login:19] User logged out: a***
[I 2019-04-22 14:54:58.759 JupyterHub log:158] 302 GET /hub/logout -> /hub/login (a*****@::ffff:10.25.14.86) 13.28ms
[I 2019-04-22 14:54:58.962 JupyterHub log:158] 200 GET /hub/login (@::ffff:10.25.14.86) 1.21ms
[W 2019-04-22 14:55:04.215 JupyterHub ldapauthenticator:290] username:A*** Illegal characters in username, must match regex ^[a-z][.a-z0-9_-]$
[W 2019-04-22 14:55:04.215 JupyterHub base:504] Failed login for A******
[I 2019-04-22 14:55:04.216 JupyterHub log:158] 200 POST /hub/login?next= (@::ffff:10.25.14.86) 1.63ms
[D 2019-04-22 14:55:39.385 SingleUserNotebookApp auth:778] Allowing whitelisted Hub user a*****
[I 2019-04-22 14:55:39.386 SingleUserNotebookApp log:158] 200 GET /user/a*****/api/sessions?=7 (a@::ffff:10.167.97.1) 1.18ms
[D 2019-04-22 14:55:39.388 SingleUserNotebookApp auth:778] Allowing whitelisted Hub user a
[I 2019-04-22 14:55:39.388 SingleUserNotebookApp log:158] 200 GET /user/a***/api/terminals?=8 (a@::ffff:10.167.97.1) 0.70ms
[D 2019-04-22 14:55:40.512 SingleUserNotebookApp auth:778] Allowing whitelisted Hub user a
[D 2019-04-22 14:55:40.513 SingleUserNotebookApp genericmanager:72] S3contents.GenericManager.get] path('') type(directory) format(None)
[D 2019-04-22 14:55:40.513 SingleUserNotebookApp genericmanager:89] S3contents.GenericManager.get_directory: path('') content(1) format(None)
[D 2019-04-22 14:55:40.513 SingleUserNotebookApp genericmanager:101] S3contents.GenericManager._directory_model_from_path: path('') type(1)
[D 2019-04-22 14:55:40.513 SingleUserNotebookApp genericmanager:67] S3contents.GenericManager.dir_exists: path('')
[D 2019-04-22 14:55:40.596 SingleUserNotebookApp s3_fs:110] S3contents.S3FS: <s3-location>/a*****
is a directory: True
[D 2019-04-22 14:55:40.596 SingleUserNotebookApp s3_fs:73] S3contents.S3FS: Listing directory: <s3-location>/a*****
[D 2019-04-22 14:55:40.804 SingleUserNotebookApp s3_fs:92] S3contents.S3FS: <s3-location>/a*****/demo.ipynb
is a file: True
[D 2019-04-22 14:55:40.862 SingleUserNotebookApp s3_fs:92] S3contents.S3FS: <s3-location>/a*****/test.ipynb
is a file: True
[I 2019-04-22 14:55:40.880 SingleUserNotebookApp log:158] 200 GET /user/a***/api/contents?type=directory&_=9 (a@::ffff:10.167.97.1) 368.39ms
[I 2019-04-22 14:56:06.128 JupyterHub log:158] 302 GET / -> /hub (@::ffff:10.25.14.86) 0.58ms
[I 2019-04-22 14:56:06.317 JupyterHub log:158] 302 GET /hub -> /hub/ (@::ffff:10.25.14.86) 0.52ms
[I 2019-04-22 14:56:06.503 JupyterHub log:158] 302 GET /hub/ -> /hub/login (@::ffff:10.25.14.86) 0.58ms
[I 2019-04-22 14:56:06.691 JupyterHub log:158] 200 GET /hub/login (@::ffff:10.25.14.86) 1.58ms
[I 2019-04-22 14:56:12.103 JupyterHub base:499] User logged in: a
[I 2019-04-22 14:56:12.104 JupyterHub log:158] 302 POST /hub/login?next= -> /user/a***/ (a*****@::ffff:10.25.14.86) 986.60ms
[I 2019-04-22 14:56:12.295 JupyterHub log:158] 302 GET /user/a*****/ -> /hub/user/a*****/ (@::ffff:10.25.14.86) 0.53ms
[E 2019-04-22 14:56:12.492 JupyterHub base:1001] Preventing implicit spawn for a***** because last spawn failed: 'getpwnam(): name not found: a*****'
@KSriHarsha591 did you solve it?