diff options
author | Paul S. Owen <psotfx@users.sourceforge.net> | 2002-08-07 01:11:38 +0000 |
---|---|---|
committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2002-08-07 01:11:38 +0000 |
commit | 42d197b780a9cf7a8140608bc8afe834445fad12 (patch) | |
tree | 443e943db34f54bcb90486a429c21236f40965da /phpBB/includes/auth/auth_ldap.php | |
parent | 284dc92e0864106b2d5f1598259967bc78973d21 (diff) | |
download | forums-42d197b780a9cf7a8140608bc8afe834445fad12.tar forums-42d197b780a9cf7a8140608bc8afe834445fad12.tar.gz forums-42d197b780a9cf7a8140608bc8afe834445fad12.tar.bz2 forums-42d197b780a9cf7a8140608bc8afe834445fad12.tar.xz forums-42d197b780a9cf7a8140608bc8afe834445fad12.zip |
Fix errors, add admin output for ldap
git-svn-id: file:///svn/phpbb/trunk@2836 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/auth/auth_ldap.php')
-rw-r--r-- | phpBB/includes/auth/auth_ldap.php | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/phpBB/includes/auth/auth_ldap.php b/phpBB/includes/auth/auth_ldap.php index 0957b56949..b09f6aeb33 100644 --- a/phpBB/includes/auth/auth_ldap.php +++ b/phpBB/includes/auth/auth_ldap.php @@ -32,7 +32,7 @@ function login_ldap(&$username, &$password) WHERE username = '" . str_replace("\'", "''", $username) . "'"; $result = $db->sql_query($sql); - return ( $row = $db->sql_fetchrow($result) ? $row : false; + return ( $row = $db->sql_fetchrow($result) ) ? $row : false; } } @@ -41,4 +41,25 @@ function login_ldap(&$username, &$password) return false; } +function admin_ldap(&$new) +{ + global $lang; + +?> + <tr> + <td class="row1"><?php echo $lang['LDAP_server']; ?>:<br /><span class="gensmall"><?php echo $lang['LDAP_server_explain']; ?></span></td> + <td class="row2"><input type="text" size="40" name="ldap_server" value="<?php echo $new['ldap_server']; ?>" /></td> + </tr> + <tr> + <td class="row1"><?php echo $lang['LDAP_dn']; ?>:<br /><span class="gensmall"><?php echo $lang['LDAP_dn_explain']; ?></span></td> + <td class="row2"><input type="text" size="40" name="ldap_base_dn" value="<?php echo $new['ldap_base_dn']; ?>" /></td> + </tr> + <tr> + <td class="row1"><?php echo $lang['LDAP_uid']; ?>:<br /><span class="gensmall"><?php echo $lang['LDAP_uid_explain']; ?></span></td> + <td class="row2"><input type="text" size="40" name="ldap_uid" value="<?php echo $new['ldap_uid']; ?>" /></td> + </tr> +<?php + +} + ?>
\ No newline at end of file |