Disable netgroup_query when netgroup_base is not set.
The logic was inverted when support for netgroup_query was added. This supercedes PR #341.
This commit is contained in:
@@ -599,8 +599,10 @@ sudo_ldap_read_config(const struct sudoers_context *ctx)
|
||||
debug_return_bool(false);
|
||||
}
|
||||
}
|
||||
if (!STAILQ_EMPTY(&ldap_conf.netgroup_base))
|
||||
if (STAILQ_EMPTY(&ldap_conf.netgroup_base)) {
|
||||
/* netgroup_query is only valid in conjunction with netgroup_base */
|
||||
ldap_conf.netgroup_query = false;
|
||||
}
|
||||
|
||||
DPRINTF1("LDAP Config Summary");
|
||||
DPRINTF1("===================");
|
||||
|
Reference in New Issue
Block a user