diff --git a/src/opnsense/mvc/app/library/OPNsense/Auth/LDAP.php b/src/opnsense/mvc/app/library/OPNsense/Auth/LDAP.php index 1bcb2391a..422dab934 100644 --- a/src/opnsense/mvc/app/library/OPNsense/Auth/LDAP.php +++ b/src/opnsense/mvc/app/library/OPNsense/Auth/LDAP.php @@ -542,7 +542,7 @@ class LDAP extends Base implements IAuthConnector } if (!$this->ldapSyncMemberOf) { - $membersOf = $default_groups; + $sync_groups = $default_groups; } elseif ($this->ldapSyncMemberOfConstraint) { // Filter "memberOf" results to those recorded in ldapAuthcontainers, where // the first part of the member is considered the group name, the rest should be an exact