Browse Source

Ajuste no scipt de sincronização do LDAP

pull/11/head
Sesostris Vieira 4 years ago
parent
commit
d8c8dee868
  1. 2
      sigi/apps/servidores/management/commands/sync_ldap.py

2
sigi/apps/servidores/management/commands/sync_ldap.py

@ -58,7 +58,7 @@ class Command(BaseCommand):
return result
def get_ldap_users(self):
filter = "(&(objectclass=user)(memberof=CN=ILB,OU=Grupos,DC=senado,DC=gov,DC=br))"
filter = "(&(objectclass=user)(|(memberof=CN=lgs_ilb,OU=GruposAutomaticosOU,DC=senado,DC=gov,DC=br)(memberof=CN=lgt_ilb,OU=GruposAutomaticosOU,DC=senado,DC=gov,DC=br)(memberof=CN=lge_ilb,OU=GruposAutomaticosOU,DC=senado,DC=gov,DC=br)))"
values = ['sAMAccountName', 'userPrincipalName', 'givenName', 'sn', 'cn']
l = ldap.initialize(AUTH_LDAP_SERVER_URI)
try:

Loading…
Cancel
Save