This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
amue-authentic2/config/authentic2/config.py

41 lines
1.3 KiB
Python

import os
REGISTRATION_OPEN=False
A2_CAN_RESET_PASSWORD=False
A2_HOMEPAGE_URL='http://www.amue.fr/'
CACHE_BACKEND={
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': '127.0.0.1:11211'
}
USE_X_FORWARDED_HOST=True
ALLOWED_HOSTS='idptest.amue.fr:idp.amue.fr'
LDAP_AUTH_SETTINGS=[
{
"url": "ldap://194.167.237.11",
"realm": "amue.fr",
"basedn": "OU=AMUE,DC=wan,DC=amue,DC=fr",
"binddn": "ldap.read@amue.fr",
"bindpw": os.environ['AMUE_LDAP_PASSWORD'],
"user_filter": "sAMAccountName=%s",
"active_directory": True,
"attributes": [
"sAMAccountName",
"mail",
"sn",
"givenName",
"userPrincipalName"],
"email_field": "mail",
"fname_field": "givenName",
"lname_field": "sn",
"username_template": "{sAMAccountName[0]}@{realm}",
"external_id_tuples": [["sAMAccountName:noquote"],["dn:noquote"]],
"mandatory_attributes_values": {
"eduPersonAffiliation": ["employee"],
"eduPersonScopedAffiliation": ["employee@amue.fr"]
},
"attribute_mappings": [
["userPrincipalName", "eduPersonPrincipalName"]
]
}
]