aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/auth/auth_ldap.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/auth/auth_ldap.php')
-rw-r--r--phpBB/includes/auth/auth_ldap.php23
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