Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions coldfront/plugins/project_openldap/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,6 @@ def remove_dn_from_openldap(dn, write=True):

try:
conn.delete(dn)
conn.unbind()
conn = openldap_connection(server, PROJECT_OPENLDAP_BIND_USER, PROJECT_OPENLDAP_BIND_PASSWORD)
except Exception as exc_log:
logger.info(exc_log)
finally:
Expand All @@ -191,7 +189,6 @@ def update_posixgroup_description_in_openldap(dn, openldap_description, write=Tr

try:
conn.modify(dn, {"description": [(MODIFY_REPLACE, [openldap_description])]})
conn.unbind()
except Exception as exc_log:
logger.info(exc_log)
finally:
Expand All @@ -211,7 +208,6 @@ def move_dn_in_openldap(current_dn, relative_dn, destination_ou, write=True):

try:
conn.modify_dn(current_dn, relative_dn, new_superior=destination_ou)
conn.unbind()
except Exception as exc_log:
logger.info(exc_log)
finally:
Expand Down