From 98ed951ae2727298729600d13b01612d6635797f Mon Sep 17 00:00:00 2001 From: Felipe Vieira Date: Wed, 7 Dec 2011 14:31:05 +0000 Subject: [PATCH] =?UTF-8?q?ajustando=20cria=C3=A7=C3=A3o=20automatica=20do?= =?UTF-8?q?=20profile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sigi/settings.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sigi/settings.py b/sigi/settings.py index 1e88c92..e0aad03 100644 --- a/sigi/settings.py +++ b/sigi/settings.py @@ -84,9 +84,9 @@ AUTH_LDAP_USER_ATTR_MAP = { } # Populate the Django user_profile from the LDAP directory. -#AUTH_LDAP_PROFILE_ATTR_MAP = { -# "employee_number": "employeeNumber" -#} +AUTH_LDAP_PROFILE_ATTR_MAP = { + "nome_completo": "cn" +} #AUTH_LDAP_PROFILE_FLAGS_BY_GROUP = { # "is_awesome": "cn=awesome,ou=django,ou=groups,dc=example,dc=com", @@ -100,6 +100,8 @@ AUTH_LDAP_MIRROR_GROUPS = True AUTH_LDAP_CACHE_GROUPS = True AUTH_LDAP_GROUP_CACHE_TIMEOUT = 3600 +AUTH_PROFILE_MODULE = 'sigi.Servidor' + # Keep ModelBackend around for per-user permissions and maybe a local superuser. AUTHENTICATION_BACKENDS = ( 'django_auth_ldap.backend.LDAPBackend',