14: 2021-07-02 (金) 13:47:07 iseki |
15: 2021-07-02 (金) 19:44:02 iseki |
| #br | | #br |
| | | |
- | **** [[LDAP]] [#n1c54d11] | + | **** [[LDAP]]: ldapauthenticator.LDAPAuthenticator [#n1c54d11] |
| - LDap 認証用. | | - LDap 認証用. |
- | - 書きかけ | |
| - モジュールのInstall | | - モジュールのInstall |
| (jupyterhub) # conda install -c conda-forge jupyterhub-ldapauthenticator -y | | (jupyterhub) # conda install -c conda-forge jupyterhub-ldapauthenticator -y |
| + | |
| + | - jupyterhub_config.py |
| + | 102 # for LDAP |
| + | 103 c.JupyterHub.authenticator_class = 'ldapauthenticator.LDAPAuthenticator' |
| + | 104 #c.LDAPAuthenticator.server_address = '202.26.150.*' |
| + | 105 c.LDAPAuthenticator.server_address = '202.26.144.*' |
| + | 106 c.LDAPAuthenticator.use_ssl = True |
| + | 107 |
| + | 108 ## AD: template 付き |
| + | 109 c.LDAPAuthenticator.lookup_dn = False |
| + | 110 c.LDAPAuthenticator.bind_dn_template = [ |
| + | 111 'cn={username},ou=教員,ou=ユーザー,dc=edutuis,dc=local', |
| + | 112 'cn={username},ou=学生,ou=ユーザー,dc=edutuis,dc=local' |
| + | 113 ] |
| + | 114 c.LDAPAuthenticator.user_search_base = 'dc=edutuis,dc=local' |
| + | 115 c.LDAPAuthenticator.user_attribute = 'sAMAccountName' |
| + | 116 |
| + | 117 ## AD: template なし |
| + | 118 #c.LDAPAuthenticator.lookup_dn = True |
| + | 119 #c.LDAPAuthenticator.user_search_base = 'dc=edutuis,dc=local' |
| + | 120 #c.LDAPAuthenticator.user_attribute = 'sAMAccountName' |
| + | 121 #c.LDAPAuthenticator.lookup_dn_search_user = 'cn=ldapauth,cn=users,dc=edutuis,dc=local' |
| + | 122 #c.LDAPAuthenticator.lookup_dn_search_password = '*****' |
| + | 123 #c.LDAPAuthenticator.lookup_dn_user_dn_attribute = 'cn' |
| + | 124 |
| + | 125 ## NSL: username から dn が探せる場合 |
| + | 126 #c.LDAPAuthenticator.lookup_dn = False |
| + | 127 #c.LDAPAuthenticator.bind_dn_template = 'cn={username},ou=user,dc=nsl,dc=tuis,dc=ac,dc=jp' |
| + | 128 |
| + | 129 ## NSL: ツリーを検索する場合 |
| + | 130 #c.LDAPAuthenticator.lookup_dn = True |
| + | 131 #c.LDAPAuthenticator.user_search_base = 'ou=user,dc=nsl,dc=tuis,dc=ac,dc=jp' |
| + | 132 #c.LDAPAuthenticator.user_attribute = 'uid' |
| + | 133 #c.LDAPAuthenticator.lookup_dn_search_user = 'cn=Manager' |
| + | 134 #c.LDAPAuthenticator.lookup_dn_search_password = '*******' |
| + | 135 #c.LDAPAuthenticator.lookup_dn_user_dn_attribute = 'cn' |
| + | 136 |
| | | |
| *** Server Class [#dded2dd0] | | *** Server Class [#dded2dd0] |