From e126518f6023ea307d979c5947d0f8096d5b9e6b Mon Sep 17 00:00:00 2001 From: Deon George Date: Tue, 30 Jun 2009 19:25:05 +1000 Subject: [PATCH] RELEASE 0.9.6a --- VERSION | 2 +- hooks.php | 4 ++-- lang/recoded/zh-cn.php | 2 +- lang/recoded/zh-tw.php | 2 +- lang/zh-tw.php | 2 +- login.php | 8 +++++--- server_functions.php | 4 ++-- syslog.php | 4 ++-- 8 files changed, 15 insertions(+), 13 deletions(-) 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 @@