From d8c8dee86805aae63b2b790476e5d2c9558f194d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ses=C3=B3stris=20Vieira?= Date: Wed, 24 Mar 2021 16:42:47 -0300 Subject: [PATCH] =?UTF-8?q?Ajuste=20no=20scipt=20de=20sincroniza=C3=A7?= =?UTF-8?q?=C3=A3o=20do=20LDAP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sigi/apps/servidores/management/commands/sync_ldap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sigi/apps/servidores/management/commands/sync_ldap.py b/sigi/apps/servidores/management/commands/sync_ldap.py index 530d8a6..3adf186 100644 --- a/sigi/apps/servidores/management/commands/sync_ldap.py +++ b/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: