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/amue.conf

37 lines
1.4 KiB
Plaintext

# do not remove this line, it imports db configuration from dbconfig-common
. /etc/amue-authentic2/db.conf
export REGISTRATION_OPEN=0
export A2_CAN_RESET_PASSWORD=0
export A2_HOMEPAGE_URL=http://www.amue.fr/
export CACHE_BACKEND='{"BACKEND": "django.core.cache.backends.memcached.MemcachedCache", "LOCATION": "127.0.0.1:11211"}'
export USE_X_FORWARDER_HOST=1
export ALLOWED_HOSTS="idptest.amue.fr:idp.amue.fr"
export 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": "",
"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"]
]
}]'