diff options
author | pmichaud <pmichaud@524c5546-5005-0410-9a3e-e25e191bd360> | 2005-09-06 14:17:04 +0000 |
---|---|---|
committer | pmichaud <pmichaud@524c5546-5005-0410-9a3e-e25e191bd360> | 2005-09-06 14:17:04 +0000 |
commit | 7be0401ccddddb703b8f16893f9aa8b2acefa31e (patch) | |
tree | 0a4eb8ff597b6d033c1d54193dd1fe911ab093cb /scripts/authuser.php | |
parent | f06de6329a084934978b25cfda3cf63e7707cbf6 (diff) | |
download | pmwiki.svn-7be0401ccddddb703b8f16893f9aa8b2acefa31e.tar.bz2 |
Fixed bug in setting of $sub.
git-svn-id: svn://pmwiki.org/trunk/pmwiki@823 524c5546-5005-0410-9a3e-e25e191bd360
Diffstat (limited to 'scripts/authuser.php')
-rw-r--r-- | scripts/authuser.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/authuser.php b/scripts/authuser.php index 4bc106bd..0fd63aad 100644 --- a/scripts/authuser.php +++ b/scripts/authuser.php @@ -85,7 +85,7 @@ if ($AuthUser['ldap'] && list($basedn, $attr, $sub) = explode('?', $path); if (!$port) $port=389; if (!$attr) $attr = 'uid'; - if (!$sub) $attr = 'one'; + if (!$sub) $sub = 'one'; $ds = ldap_connect($server, $port); ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3); if (ldap_bind($ds)) { |