diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-01-16 20:18:03 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-01-16 20:18:03 +0000 |
commit | a16d0963f1af1dbfd71538e1365b0b86210eed4e (patch) | |
tree | e60cc725a59267b1656b8a0c5c981e19896eb885 | |
parent | 2dfdb0287c4662b5b94472aba0a19317baf0d69e (diff) | |
download | pfsense-a16d0963f1af1dbfd71538e1365b0b86210eed4e.zip pfsense-a16d0963f1af1dbfd71538e1365b0b86210eed4e.tar.gz |
Conditional checks use ==, not = !
-rw-r--r-- | etc/inc/auth.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc index 3cee79b..05d8780 100644 --- a/etc/inc/auth.inc +++ b/etc/inc/auth.inc @@ -71,7 +71,7 @@ function getAllowedGroups($logged_in_user) { $local_user = false; foreach($config['system']['user'] as $username) - if($username['name'] = $logged_in_user) + if($username['name'] == $logged_in_user) $local_user = true; /* return ldap groups if we are in ldap mode */ @@ -778,7 +778,7 @@ function ldap_get_groups($username) { $search = ldap_search($ldap, $ldapsearchbase, $ldapfilter); if(!$search) { - log_error("ERROR! Could not locate User group container for username {}$username}."); + log_error("ERROR! Could not locate User group container for username {$username}."); log_error(" Please ensure that the needed container is defined in the ldap auth containers setting feature."); $status = htpasswd_backed($username, $passwd); return $status; |