mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
* Admin/Preferences/ADS: give explicit error, that AD requires SSL or TLS to change passwords (not just failing with unspecific error)
This commit is contained in:
parent
5e0c017129
commit
8325352e88
@ -103,10 +103,15 @@ class auth_ads implements auth_backend
|
||||
*/
|
||||
function change_password($old_passwd, $new_passwd, $account_id=0)
|
||||
{
|
||||
if (!($adldap = accounts_ads::get_adldap()) || !($adldap->getUseSSL() || $adldap->getUseTLS()))
|
||||
if (!($adldap = accounts_ads::get_adldap()))
|
||||
{
|
||||
error_log(__METHOD__."('$old_passwd', '$new_passwd', $account_id) adldap=".array2string($adldap)." returning false");
|
||||
return false; // Cant change passwd in ADS
|
||||
error_log(__METHOD__."(\$old_passwd, \$new_passwd, $account_id) accounts_ads::get_adldap() returned false");
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!($adldap->getUseSSL() || $adldap->getUseTLS()))
|
||||
{
|
||||
throw new egw_exception(lang('Failed to change password. Please contact your administrator.').' '.lang('Active directory requires SSL or TLS to change passwords!'));
|
||||
}
|
||||
|
||||
if(!$account_id || $GLOBALS['egw_info']['flags']['currentapp'] == 'login')
|
||||
|
@ -40,6 +40,7 @@ action common de Aktion
|
||||
action when category is an email address groupdav de Aktion wenn Kategorie eine E-Mail Adresse ist
|
||||
actions common de Befehle
|
||||
active common de Aktiv
|
||||
active directory requires ssl or tls to change passwords! common de Active Directory benötigt eine SSL oder TLS Verbindung um Passwörter zu ändern!
|
||||
add common de Hinzufügen
|
||||
add %1 category for common de %1 Kategorie hinzufügen für
|
||||
add category common de Kategorie hinzufügen
|
||||
|
@ -40,6 +40,7 @@ action common en Action
|
||||
action when category is an email address groupdav en Action when category is an EMail address
|
||||
actions common en Actions
|
||||
active common en Active
|
||||
active directory requires ssl or tls to change passwords! common en Active directory requires SSL or TLS to change passwords!
|
||||
add common en Add
|
||||
add %1 category for common en Add %1 category for
|
||||
add category common en Add category
|
||||
|
Loading…
Reference in New Issue
Block a user