This commit is contained in:
2022-05-19 16:09:21 -04:00
parent b5a074bfa2
commit bca8d5f201

View File

@@ -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))