|
|
|
@ -245,8 +245,7 @@ class VariableUrUserPw(Variable, LdapHelper):
|
|
|
|
|
except ldap.INVALID_CREDENTIALS:
|
|
|
|
|
raise VariableError(_("Wrong password"))
|
|
|
|
|
except ldap.LDAPError as e:
|
|
|
|
|
errMessage = e[0]['desc']
|
|
|
|
|
raise VariableError(errMessage)
|
|
|
|
|
raise VariableError(f"{e.args[0]['desc']}; {e.args[0]['info']}")
|
|
|
|
|
return True
|
|
|
|
|
|
|
|
|
|
def check(self, value):
|
|
|
|
@ -722,7 +721,7 @@ class VariableClClientRsyncProfileSet(ReadonlyVariable):
|
|
|
|
|
type = "bool"
|
|
|
|
|
value = "off"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#TODO ProfileSyncer likely doesn't work in py3
|
|
|
|
|
class VariableClClientSyncReplicationSet(SyncHelper, ReadonlyVariable):
|
|
|
|
|
"""
|
|
|
|
|
Нужно ли синхронизировать текущий профиль с удаленным доменом
|
|
|
|
|