Add per-source innetgr function pointer and use it in netgr_matches().

This will be used to implement LDAP-specific netgroup lookups when
netgroup_base is set in ldap.conf.
This commit is contained in:
Todd C. Miller
2023-03-08 13:44:22 -07:00
parent d2582c2cdb
commit 0aad96bba1
11 changed files with 60 additions and 23 deletions

View File

@@ -33,6 +33,8 @@ struct sudo_nss {
struct sudoers_parse_tree *(*parse)(struct sudo_nss *nss);
int (*query)(struct sudo_nss *nss, struct passwd *pw);
int (*getdefs)(struct sudo_nss *nss);
int (*innetgr)(struct sudo_nss *nss, const char *netgr, const char *host,
const char *user, const char *domain);
void *handle;
struct sudoers_parse_tree *parse_tree;
bool ret_if_found;