Browse Source

ajustando criação automatica do profile

diagnosticos
Felipe Vieira 13 years ago
parent
commit
98ed951ae2
  1. 8
      sigi/settings.py

8
sigi/settings.py

@ -84,9 +84,9 @@ AUTH_LDAP_USER_ATTR_MAP = {
} }
# Populate the Django user_profile from the LDAP directory. # Populate the Django user_profile from the LDAP directory.
#AUTH_LDAP_PROFILE_ATTR_MAP = { AUTH_LDAP_PROFILE_ATTR_MAP = {
# "employee_number": "employeeNumber" "nome_completo": "cn"
#} }
#AUTH_LDAP_PROFILE_FLAGS_BY_GROUP = { #AUTH_LDAP_PROFILE_FLAGS_BY_GROUP = {
# "is_awesome": "cn=awesome,ou=django,ou=groups,dc=example,dc=com", # "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_CACHE_GROUPS = True
AUTH_LDAP_GROUP_CACHE_TIMEOUT = 3600 AUTH_LDAP_GROUP_CACHE_TIMEOUT = 3600
AUTH_PROFILE_MODULE = 'sigi.Servidor'
# Keep ModelBackend around for per-user permissions and maybe a local superuser. # Keep ModelBackend around for per-user permissions and maybe a local superuser.
AUTHENTICATION_BACKENDS = ( AUTHENTICATION_BACKENDS = (
'django_auth_ldap.backend.LDAPBackend', 'django_auth_ldap.backend.LDAPBackend',

Loading…
Cancel
Save