2015-06-17 20:13:55 +02:00
|
|
|
DEBUG = True
|
2023-01-06 23:48:47 +01:00
|
|
|
REMEMBER_COOKIE_SECURE = True
|
2015-06-17 20:13:55 +02:00
|
|
|
SECRET_KEY = "CHANGE!ME"
|
2023-01-06 23:48:47 +01:00
|
|
|
SESSION_COOKIE_SECURE = True
|
2015-09-28 21:27:56 +02:00
|
|
|
SESSION_TIMEOUT = 3600
|
2015-06-17 20:13:55 +02:00
|
|
|
|
2017-01-21 18:24:14 +01:00
|
|
|
LDAP_CA = "/etc/ldap/ssl/CA.crt"
|
2015-06-17 20:13:55 +02:00
|
|
|
LDAP_URI = "ldaps://ldap.example.com"
|
2016-03-21 23:35:11 +01:00
|
|
|
LDAP_BASE = "dc=example,dc=com"
|
|
|
|
|
2016-02-10 17:03:09 +01:00
|
|
|
ADMINS = [ "cn=admin,ou=people,dc=example,dc=com" ]
|
|
|
|
|
2016-03-22 00:41:31 +01:00
|
|
|
USER_DN = "cn={user},ou=people,dc=example,dc=com"
|
|
|
|
|
|
|
|
USER_ATTRS = {
|
2016-03-20 16:26:14 +01:00
|
|
|
'objectClass' : ['top', 'inetOrgPerson', 'organizationalPerson', 'person', 'posixAccount'],
|
|
|
|
'cn' : '{user}',
|
2023-01-06 23:48:09 +01:00
|
|
|
'gidNumber' : '{gid}',
|
2016-03-20 16:26:14 +01:00
|
|
|
'givenName' : '{gn}',
|
|
|
|
'homeDirectory' : '/home/{user}',
|
|
|
|
'loginShell' : '/bin/bash',
|
2023-01-06 23:48:09 +01:00
|
|
|
'mail' : '{user}@example.com',
|
2016-03-20 16:26:14 +01:00
|
|
|
'sn' : '{sn}',
|
|
|
|
'uid' : '{user}',
|
2016-03-20 17:17:13 +01:00
|
|
|
'uidNumber' : '{uid}',
|
2023-01-06 23:48:09 +01:00
|
|
|
'userPassword' : '{pass}'
|
2016-03-20 16:26:14 +01:00
|
|
|
}
|
|
|
|
|
2020-09-11 10:58:10 +02:00
|
|
|
GROUP_FILTER = "(objectClass=posixGroup)"
|
2016-03-22 00:41:31 +01:00
|
|
|
|
2015-06-17 20:22:52 +02:00
|
|
|
REDIS_HOST = "127.0.0.1"
|
2017-01-21 18:48:33 +01:00
|
|
|
REDIS_PASSWD = "foobared"
|