mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Conditional checks use ==, not = !
This commit is contained in:
parent
2dfdb0287c
commit
a16d0963f1
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user