This commit is contained in:
kakwa 2019-02-09 12:05:09 +01:00
parent b9437abefb
commit bbfe96d4f7
1 changed files with 6 additions and 2 deletions

View File

@ -22,6 +22,7 @@ if sys.version < '3':
PYTHON_LDAP_MAJOR_VERSION = ldap.__version__[0]
class CaFileDontExist(Exception):
def __init__(self, cafile):
self.cafile = cafile
@ -494,7 +495,10 @@ class Backend(ldapcherry.backend.Backend):
'backend': self.backend_name
}
)
ldif = modlist.modifyModlist({}, {attr: self._modlist(content)})
ldif = modlist.modifyModlist(
{},
{attr: self._modlist(content)}
)
try:
ldap_client.modify_s(group, ldif)
# if already member, not a big deal, just log it and continue