summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-02-20 01:23:22 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-02-20 01:23:22 +0000
commit03db004266b6a266d26e812442877428fcf16d55 (patch)
tree64e8627ed3b57576d70187d203be01403e5f7790 /etc
parent8da7252b0f97c91ec9b6e0c01e0e7893f118e2e7 (diff)
downloadpfsense-03db004266b6a266d26e812442877428fcf16d55.zip
pfsense-03db004266b6a266d26e812442877428fcf16d55.tar.gz
Remove dead code.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/auth.inc21
1 files changed, 0 insertions, 21 deletions
diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc
index b142a6e..3d0491d 100644
--- a/etc/inc/auth.inc
+++ b/etc/inc/auth.inc
@@ -377,27 +377,6 @@ function isSystemAdmin($username = "") {
if(!function_exists("ldap_connect"))
return;
-/* if($config['system']['webgui']['backend'] == "ldap") {
- log_error("Calling LDAP_GET_GROUPS from the second section");
- $groups = ldap_get_groups($username);
- if(is_array($groups)){
- if(in_array("admins", $groups)) {
- $_SESSION['isSystemAdmin'] = true;
- return true;
- }
- }
- }
- if($config['system']['webgui']['backend'] == "ldapother") {
- log_error("Calling LDAP_GET_GROUPS from the first section");
- $groups = ldap_get_groups($username);
- if(is_array($groups)){
- if(in_array("admins", $groups)) {
- $_SESSION['isSystemAdmin'] = true;
- return true;
- }
- }
- } */
-
if ($username == "") {
$_SESSION['isSystemAdmin'] = false;
return 0;
OpenPOWER on IntegriCloud