always check with "passwd_forbid_name" enabled, if setting of password failed

This commit is contained in:
Ralf Becker 2013-07-16 14:57:43 +00:00
parent b9cefd3755
commit 4e3c34f257

View File

@ -224,7 +224,7 @@ class auth_ads implements auth_backend
// if admin has nothing configured use windows default of 3 char classes, 7 chars min and name-part-check
$GLOBALS['egw_info']['server']['force_pwd_strength'] ? $GLOBALS['egw_info']['server']['force_pwd_strength'] : 3,
$GLOBALS['egw_info']['server']['force_pwd_length'] ? $GLOBALS['egw_info']['server']['force_pwd_length'] : 7,
$GLOBALS['egw_info']['server']['passwd_forbid_name'] ? $GLOBALS['egw_info']['server']['passwd_forbid_name'] : 'yes',
'yes', // always check with "passwd_forbid_name" enabled
$account_id);
$msg = $e->getMessage();
$msg = strtr($msg, $tr=array( // translate possible adLDAP and LDAP error