Only use if option of AD is activated. Tiquet: Tickets #3116

(cherry picked from commit 53466027f1)
This commit is contained in:
m-lopez-f 2015-12-22 14:55:30 +01:00
parent 3b5b7f5313
commit 1693037724
1 changed files with 1 additions and 1 deletions

View File

@ -229,7 +229,7 @@ function process_user_login_remote ($login, $pass, $api = false) {
return false;
}
if ($config["auth"] === 'ad'){
if ($config["auth"] === 'ad' && isset($config['ad_advanced_config']) && $config['ad_advanced_config'])){
$return = enterprise_hook ('prepare_permissions_groups_of_user_ad',
array ($login, $pass, false, true));