mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-24 19:58:54 +00:00
Merge pull request #137 from Zentyal/jag/change-passsword-exceptions
Return appropiate error code when changing AD password with incorrect…
This commit is contained in:
commit
a1d07c59af
1 file changed
+9
-1
@@ -737,7 +737,15 @@ groupObjectClasses: (NSArray *) newGroupObjectClasses
|
|||||||
}
|
}
|
||||||
NS_HANDLER
|
NS_HANDLER
|
||||||
{
|
{
|
||||||
[self logWithFormat: @"%@", localException];
|
if ([[localException name] isEqual: @"LDAPException"] &&
|
||||||
|
([[[localException userInfo] objectForKey: @"error_code"] intValue] == LDAP_CONSTRAINT_VIOLATION))
|
||||||
|
{
|
||||||
|
*perr = PolicyInsufficientPasswordQuality;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
[self logWithFormat: @"%@", localException];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
NS_ENDHANDLER ;
|
NS_ENDHANDLER ;
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user