From 5740d51d7e6a9b0d2bc859dc971cf5550b4dac5c Mon Sep 17 00:00:00 2001 From: John Gaunt Date: Tue, 12 Oct 2021 10:39:21 -0400 Subject: [PATCH] added comments for code plans --- seafile-ldap.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/seafile-ldap.py b/seafile-ldap.py index 5903a1f..1d54dcd 100644 --- a/seafile-ldap.py +++ b/seafile-ldap.py @@ -41,4 +41,15 @@ try: print(entry) except core.exceptions.LDAPBindError as e: # If the LDAP bind failed for reasons such as authentication failure. - print('LDAP Bind Failed: ', e) \ No newline at end of file + print('LDAP Bind Failed: ', e) + + +# sync ad users with seafile, if disabled or deleted ad user, disable in seafile + + +# get ad groups and import them into seafile +# loop through each group and list members +# compare members to users in seafile group +# add users to group if missing and in the seafile group +# remove members in not in group or seafile group +# remove seafile groups if ad group is removed