From bca8d5f201735d35b29f71f07a05ca40eee4e93b Mon Sep 17 00:00:00 2001 From: John Gaunt Date: Thu, 19 May 2022 16:09:21 -0400 Subject: [PATCH] typo --- seafile-ldap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seafile-ldap.py b/seafile-ldap.py index f1521b3..fd4d0d7 100644 --- a/seafile-ldap.py +++ b/seafile-ldap.py @@ -289,7 +289,7 @@ seafileGroups = request('admin/groups/', seafileURL, seafileToken)['response'][' for seafileGroup in seafileGroups: # need to check if group exists in ad first and if not delete it logger.debug("Searching for ldap group {0}.".format(seafileGroup)) - ldap.search(ldapBase, '(samaccountname={1})'.format(seafileGroup), attributes=['*']) + ldap.search(ldapBase, '(samaccountname={0})'.format(seafileGroup), attributes=['*']) count = len(ldap.entries) logger.debug("Found {0} LDAP group.".format(count))