summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandi <andi@splitbrain.org>2005-02-08 12:43:28 +0100
committerandi <andi@splitbrain.org>2005-02-08 12:43:28 +0100
commit966ac031cdb81261df09042e65b6a13f280093e4 (patch)
tree7cb66e2c41db7fa5e1c705d1536239c6cab7ee14
parent3ce054b34379d1e62c7f29167cd0f8d8620b936e (diff)
downloadrpg-966ac031cdb81261df09042e65b6a13f280093e4.tar.gz
rpg-966ac031cdb81261df09042e65b6a13f280093e4.tar.bz2
concat bugfix for auth_ldap debug (#126)
darcs-hash:20050208114328-9977f-1428ca435382b65b6bb73ceb771f4febde3a94a1.gz
-rw-r--r--inc/auth_ldap.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/inc/auth_ldap.php b/inc/auth_ldap.php
index 3ae3e49a5..991e53ecd 100644
--- a/inc/auth_ldap.php
+++ b/inc/auth_ldap.php
@@ -30,7 +30,7 @@ function auth_ldap_connect(){
$LDAP_CONNECTION = @ldap_connect($cnf['server']);
if(!$LDAP_CONNECTION){
msg("LDAP: couldn't connect to LDAP server",-1);
- if($cnf['debug']) msg('LDAP errstr: 'htmlspecialchars(ldap_error()),0);
+ if($cnf['debug']) msg('LDAP errstr: '.htmlspecialchars(ldap_error()),0);
return false;
}
if($cnf['version']){
@@ -38,7 +38,7 @@ function auth_ldap_connect(){
LDAP_OPT_PROTOCOL_VERSION,
$cnf['version'])){
msg('Setting LDAP Protocol version '.$cnf['version'].' failed',-1);
- if($cnf['debug']) msg('LDAP errstr: 'htmlspecialchars(ldap_error()),0);
+ if($cnf['debug']) msg('LDAP errstr: '.htmlspecialchars(ldap_error()),0);
}
}
}
@@ -70,7 +70,7 @@ function auth_checkPass($user,$pass){
//try to bind with dn
if(@ldap_bind($conn,$dn,$pass)){
- if($cnf['debug']) msg('LDAP errstr: 'htmlspecialchars(ldap_error()),0);
+ if($cnf['debug']) msg('LDAP errstr: '.htmlspecialchars(ldap_error()),0);
return true;
}
return false;
@@ -107,7 +107,7 @@ function auth_getUserData($user){
//anonymous bind to lookup userdata
if(!@ldap_bind($conn)){
msg("LDAP: can not bind anonymously",-1);
- if($cnf['debug']) msg('LDAP errstr: 'htmlspecialchars(ldap_error()),0);
+ if($cnf['debug']) msg('LDAP errstr: '.htmlspecialchars(ldap_error()),0);
return false;
}
@@ -137,7 +137,7 @@ function auth_getUserData($user){
$sr = @ldap_search($conn, $cnf['grouptree'], $filter);
if(!$sr){
msg("LDAP: Reading group memberships failed",-1);
- if($cnf['debug']) msg('LDAP errstr: 'htmlspecialchars(ldap_error()),0);
+ if($cnf['debug']) msg('LDAP errstr: '.htmlspecialchars(ldap_error()),0);
return false;
}
$result = ldap_get_entries($conn, $sr);