mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 06:15:37 +00:00
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:
@@ -134,7 +134,7 @@ main(int argc, char *argv[])
|
||||
textdomain("sudoers");
|
||||
|
||||
/* Initialize early, before any "goto done". */
|
||||
init_parse_tree(&merged_tree, NULL, NULL);
|
||||
init_parse_tree(&merged_tree, NULL, NULL, NULL);
|
||||
|
||||
/* Read debug and plugin sections of sudo.conf. */
|
||||
if (sudo_conf_read(NULL, SUDO_CONF_DEBUG|SUDO_CONF_PLUGINS) == -1)
|
||||
@@ -390,7 +390,7 @@ main(int argc, char *argv[])
|
||||
parse_tree = malloc(sizeof(*parse_tree));
|
||||
if (parse_tree == NULL)
|
||||
sudo_fatalx("%s", U_("unable to allocate memory"));
|
||||
init_parse_tree(parse_tree, lhost, shost);
|
||||
init_parse_tree(parse_tree, lhost, shost, NULL);
|
||||
TAILQ_INSERT_TAIL(&parse_trees, parse_tree, entries);
|
||||
|
||||
/* Setup defaults data structures. */
|
||||
|
Reference in New Issue
Block a user