Merge pull request #83 from Zentyal/jag/change-passsword-exceptions
Return appropiate error code when changing AD password with incorrect…pull/86/head
commit
b433bac432
|
@ -737,7 +737,14 @@ 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 ;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue