mirror of
https://github.com/YunoHost-Apps/coin_ynh.git
synced 2024-09-03 18:16:26 +02:00
Merge pull request #13 from YunoHost-Apps/map_attribute
Map user attribute from LDAP
This commit is contained in:
commit
e871b7223a
1 changed files with 6 additions and 0 deletions
|
@ -70,6 +70,12 @@ AUTHENTICATION_BACKENDS = (
|
||||||
)
|
)
|
||||||
AUTH_LDAP_SERVER_URI = "ldap://localhost:389"
|
AUTH_LDAP_SERVER_URI = "ldap://localhost:389"
|
||||||
AUTH_LDAP_USER_SEARCH = LDAPSearch("uid=YNH_APP_ARG_ADMIN,ou=users,dc=yunohost,dc=org", ldap.SCOPE_SUBTREE, "(uid=%(user)s)")
|
AUTH_LDAP_USER_SEARCH = LDAPSearch("uid=YNH_APP_ARG_ADMIN,ou=users,dc=yunohost,dc=org", ldap.SCOPE_SUBTREE, "(uid=%(user)s)")
|
||||||
|
AUTH_LDAP_USER_ATTR_MAP = {
|
||||||
|
"username": "uid",
|
||||||
|
"first_name": "givenName",
|
||||||
|
"last_name": "sn",
|
||||||
|
"email": "mail",
|
||||||
|
}
|
||||||
AUTH_LDAP_USER_FLAGS_BY_GROUP = {
|
AUTH_LDAP_USER_FLAGS_BY_GROUP = {
|
||||||
"is_active": "cn=sftpusers,ou=groups,dc=yunohost,dc=org",
|
"is_active": "cn=sftpusers,ou=groups,dc=yunohost,dc=org",
|
||||||
"is_staff": "cn=sftpusers,ou=groups,dc=yunohost,dc=org",
|
"is_staff": "cn=sftpusers,ou=groups,dc=yunohost,dc=org",
|
||||||
|
|
Loading…
Reference in a new issue