DEBUG = True TEMPLATE_DEBUG = DEBUG ALLOWED_HOSTS = [ '.federez.net', ] DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': '/srv/webldap/db', } } # Make this unique, and don't share it with anybody. SECRET_KEY = '' # Absolute paths to template directories TEMPLATE_DIRS = ( '/srv/webldap/templates', ) # SMTP relay (host and port) to use for confirmation mails EMAIL_HOST = 'localhost' EMAIL_PORT = 25 # Email `From` field EMAIL_FROM = 'admin@federez.net' # Number of hours a token remains valid after having been created. Numeric and string # versions should have the same meaning. REQ_EXPIRE_HRS = 48 REQ_EXPIRE_STR = '48 heures' # LDAP server URI (protocol and address) LDAP_URI = 'ldap://localhost' # Whether to use STARTTLS LDAP_STARTTLS = False # Certificate used with LDAPS or STARTTLS LDAP_CACERT = '' # LDAP base DN LDAP_BASE = 'dc=federez,dc=net' # LDAP application DN LDAP_WEBLDAP_USER = 'cn=webldap,ou=service-users,dc=federez,dc=net' # LDAP application password LDAP_WEBLDAP_PASSWD = 'secret' # Default LDAP groups and roles for created users LDAP_DEFAULT_GROUPS = [] LDAP_DEFAULT_ROLES = ['member']