summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-01-16 20:18:03 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-01-16 20:18:03 +0000
commita16d0963f1af1dbfd71538e1365b0b86210eed4e (patch)
treee60cc725a59267b1656b8a0c5c981e19896eb885 /etc
parent2dfdb0287c4662b5b94472aba0a19317baf0d69e (diff)
downloadpfsense-a16d0963f1af1dbfd71538e1365b0b86210eed4e.zip
pfsense-a16d0963f1af1dbfd71538e1365b0b86210eed4e.tar.gz
Conditional checks use ==, not = !
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/auth.inc4
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;
OpenPOWER on IntegriCloud