sudo_ldap_check_non_unix_group: pass nss pointer to netgr_matches()
This allows us to use the LDAP-specific version of innetgr() when possible. Also enable "use_netgroups" by default even on systems without innetgr() since we can now query netgroups directly via LDAP.
This commit is contained in:
@@ -671,7 +671,7 @@ sudo_getdomainname(void)
|
||||
* in which case that argument is not checked...
|
||||
*/
|
||||
bool
|
||||
netgr_matches(struct sudo_nss *nss, const char *netgr,
|
||||
netgr_matches(const struct sudo_nss *nss, const char *netgr,
|
||||
const char *lhost, const char *shost, const char *user)
|
||||
{
|
||||
const char *domain;
|
||||
|
Reference in New Issue
Block a user