From 958cc512bbabc46faf752859605e4c7dea3da32a Mon Sep 17 00:00:00 2001 From: John Gaunt Date: Tue, 2 Nov 2021 13:05:37 -0400 Subject: [PATCH] more logging --- seafile-ldap.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/seafile-ldap.py b/seafile-ldap.py index d7092a7..45d2a38 100644 --- a/seafile-ldap.py +++ b/seafile-ldap.py @@ -170,7 +170,9 @@ for ldapUser in ldapUsers: logger.debug("Query: {0}".format(query)) cursor.execute(query) row_count = cursor.rowcount + logger.debug("Found {0} SQL LDAP users".format(cursor.rowcount)) sqlLDAPuser = cursor.fetchall() + logger.debug("User: {0} - Active: {1}".format(sqlLDAPuser[1], bool(sqlLDAPuser[4]))) if row_count == 1: # User is in the sql table # are they active