diff options
author | Nils Adermann <naderman@naderman.de> | 2005-12-16 19:05:51 +0000 |
---|---|---|
committer | Nils Adermann <naderman@naderman.de> | 2005-12-16 19:05:51 +0000 |
commit | 7342652804ed245c89185e2c77e40ce03ab00270 (patch) | |
tree | 77d9bb5ccd8dd17f1e86db64b84c5829fa5d8ac9 /phpBB/includes/auth/auth_ldap.php | |
parent | 67dfce31a93d43957355a50013d3100663dc567b (diff) | |
download | forums-7342652804ed245c89185e2c77e40ce03ab00270.tar forums-7342652804ed245c89185e2c77e40ce03ab00270.tar.gz forums-7342652804ed245c89185e2c77e40ce03ab00270.tar.bz2 forums-7342652804ed245c89185e2c77e40ce03ab00270.tar.xz forums-7342652804ed245c89185e2c77e40ce03ab00270.zip |
- Apache auth plugin is working again
- LDAP auth plugin now supports OpenLDAP
- fixed Authentication settings in ACP
- preparatory ACP changes for the search
git-svn-id: file:///svn/phpbb/trunk@5340 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/auth/auth_ldap.php')
-rw-r--r-- | phpBB/includes/auth/auth_ldap.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/phpBB/includes/auth/auth_ldap.php b/phpBB/includes/auth/auth_ldap.php index b1150658bd..2eedd5a17b 100644 --- a/phpBB/includes/auth/auth_ldap.php +++ b/phpBB/includes/auth/auth_ldap.php @@ -36,6 +36,8 @@ function login_ldap(&$username, &$password) return 'Could not connect to LDAP server'; } + @ldap_set_option($ldap, LDAP_OPT_PROTOCOL_VERSION, 3); + $search = @ldap_search($ldap, $config['ldap_base_dn'], $config['ldap_uid'] . '=' . $username, array($config['ldap_uid'])); $result = @ldap_get_entries($ldap, $search); @@ -79,15 +81,15 @@ function admin_ldap(&$new) <dl> <dt><label for="ldap_server">' . $user->lang['LDAP_SERVER'] . ':</label><br /><span>' . $user->lang['LDAP_SERVER_EXPLAIN'] . '</span></dt> - <dd><input type="text" id="ldap_server" size="40" name="ldap_server" value="' . $new['ldap_server'] . '" /></dd> + <dd><input type="text" id="ldap_server" size="40" name="config[ldap_server]" value="' . $new['ldap_server'] . '" /></dd> </dl> <dl> <dt><label for="ldap_dn">' . $user->lang['LDAP_DN'] . ':</label><br /><span>' . $user->lang['LDAP_DN_EXPLAIN'] . '</span></dt> - <dd><input type="text" id="ldap_dn" size="40" name="ldap_base_dn" value="' . $new['ldap_base_dn'] . '" /></dd> + <dd><input type="text" id="ldap_dn" size="40" name="config[ldap_base_dn]" value="' . $new['ldap_base_dn'] . '" /></dd> </dl> <dl> <dt><label for="ldap_uid">' . $user->lang['LDAP_UID'] . ':</label><br /><span>' . $user->lang['LDAP_UID_EXPLAIN'] . '</span></dt> - <dd><input type="text" id="ldap_uid" size="40" name="ldap_uid" value="' . $new['ldap_uid'] . '" /></dd> + <dd><input type="text" id="ldap_uid" size="40" name="config[ldap_uid]" value="' . $new['ldap_uid'] . '" /></dd> </dl> '; |