diff --git a/VERSION b/VERSION index 85b7c69..83d5275 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.9.6 +0.9.6a diff --git a/hooks.php b/hooks.php index f4b0711..14fdf56 100644 --- a/hooks.php +++ b/hooks.php @@ -1,5 +1,5 @@ -isLoginAttrEnabled() ) { // the DN to use when searching for the login_attr user. $ldapserver->auth_type = 'config'; - // search for the "uid" first, this will be an anonymous bind. set_error_handler( 'temp_login_error_handler' ); - $ldapserver->connect(true,true); + if ($ldapserver->login_dn) + $ldapserver->connect(true,false); + else + $ldapserver->connect(true,true); restore_error_handler(); if (!empty($servers[$ldapserver->server_id]['login_class'])) { diff --git a/server_functions.php b/server_functions.php index cce0274..005aad4 100644 --- a/server_functions.php +++ b/server_functions.php @@ -1,5 +1,5 @@