viewgit/inc/functions.php:22 Function utf8_encode() is deprecated [8192]
Filename | |
---|---|
src/models/SigninModel.php |
diff --git a/src/models/SigninModel.php b/src/models/SigninModel.php index 21fc5ab47..f53535265 100755 --- a/src/models/SigninModel.php +++ b/src/models/SigninModel.php @@ -58,7 +58,7 @@ class SigninModel extends Model $have_ldap_mapping = false; $valid_password = false; if (C\nsdefined("USE_LDAP") && C\USE_LDAP) { - $have_ldap_mapping = function_exists(C\LDAP_LOCAL_NAME); + $have_ldap_mapping = function_exists(C\LDAP_LOCAL_USER); $use_ldap = true; $num_controllers = count(C\LDAP_CONTROLLERS); $domain_controller = C\LDAP_CONTROLLERS[rand(0, @@ -77,7 +77,7 @@ class SigninModel extends Model $filter = "samaccountname=" . $ldap_name; $filter = "(&(objectCategory=person)({$filter}))"; if ($results = ldap_search($connection, - C\LDAP_BASE_DOMAIN, $filter, $fields)) { + C\LDAP_BASE_DN, $filter, $fields)) { $entries = ldap_get_entries($connection, $results); $email = $entries[0]['mail'][0] ?? ""; $display_name = $entries[0]['displayname'][0] ?? "";