mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
action in ldap_operation_error
This commit is contained in:
parent
f05cc2c66a
commit
89aef100f0
2 changed files with 5 additions and 5 deletions
|
@ -19,7 +19,7 @@
|
|||
"invalid_token": "Invalid token - please authenticate",
|
||||
"invalid_usage": "Invalid usage, pass --help to see help",
|
||||
"ldap_attribute_already_exists": "Attribute '{attribute}' already exists with value '{value}'",
|
||||
"ldap_operation_error": "An error occurred during LDAP operation",
|
||||
"ldap_operation_error": "An error occurred during LDAP '{action}' operation",
|
||||
"ldap_server_down": "Unable to reach LDAP server",
|
||||
"logged_in": "Logged in",
|
||||
"logged_out": "Logged out",
|
||||
|
|
|
@ -155,7 +155,7 @@ class Authenticator(BaseAuthenticator):
|
|||
attrs,
|
||||
e,
|
||||
)
|
||||
raise MoulinetteError("ldap_operation_error")
|
||||
raise MoulinetteError("ldap_operation_error", action="search")
|
||||
|
||||
result_list = []
|
||||
if not attrs or "dn" not in attrs:
|
||||
|
@ -191,7 +191,7 @@ class Authenticator(BaseAuthenticator):
|
|||
attr_dict,
|
||||
e,
|
||||
)
|
||||
raise MoulinetteError("ldap_operation_error")
|
||||
raise MoulinetteError("ldap_operation_error", action="add")
|
||||
else:
|
||||
return True
|
||||
|
||||
|
@ -215,7 +215,7 @@ class Authenticator(BaseAuthenticator):
|
|||
rdn,
|
||||
e,
|
||||
)
|
||||
raise MoulinetteError("ldap_operation_error")
|
||||
raise MoulinetteError("ldap_operation_error", action="remove")
|
||||
else:
|
||||
return True
|
||||
|
||||
|
@ -253,7 +253,7 @@ class Authenticator(BaseAuthenticator):
|
|||
new_rdn,
|
||||
e,
|
||||
)
|
||||
raise MoulinetteError("ldap_operation_error")
|
||||
raise MoulinetteError("ldap_operation_error", action="update")
|
||||
else:
|
||||
return True
|
||||
|
||||
|
|
Loading…
Reference in a new issue