def delete_ldap_user(self, ldap_user):
    dn = ldap_user.backend_id
    try:
        self.client.delete_s(dn)
    except ldap.LDAPError as e:
        six.reraise(LDAPBackendError, e)
def delete_ldap_user(self, ldap_user):
    dn = ldap_user.backend_id
    try:
        self.client.delete_s(dn)
    except ldap.LDAPError as e:
        six.reraise(LDAPBackendError, e)