Fix special handling of ipa_hostname that was lost in sudo 1.8.24.
We now include the long and short hostname in sudo parser container.
This commit is contained in:
@@ -554,7 +554,6 @@ sudo_sss_open(struct sudo_nss *nss)
|
||||
sudo_warnx(U_("%s: %s"), __func__, U_("unable to allocate memory"));
|
||||
debug_return_int(ENOMEM);
|
||||
}
|
||||
init_parse_tree(&handle->parse_tree);
|
||||
|
||||
/* Load symbols */
|
||||
handle->ssslib = sudo_dso_load(path, SUDO_DSO_LAZY);
|
||||
@@ -612,8 +611,6 @@ sudo_sss_open(struct sudo_nss *nss)
|
||||
debug_return_int(EFAULT);
|
||||
}
|
||||
|
||||
nss->handle = handle;
|
||||
|
||||
/*
|
||||
* If runhost is the same as the local host, check for ipa_hostname
|
||||
* in sssd.conf and use it in preference to user_runhost.
|
||||
@@ -625,6 +622,10 @@ sudo_sss_open(struct sudo_nss *nss)
|
||||
}
|
||||
}
|
||||
|
||||
/* The "parse tree" contains userspecs, defaults, aliases and hostnames. */
|
||||
init_parse_tree(&handle->parse_tree, handle->ipa_host, handle->ipa_shost);
|
||||
nss->handle = handle;
|
||||
|
||||
sudo_debug_printf(SUDO_DEBUG_DEBUG, "handle=%p", handle);
|
||||
|
||||
debug_return_int(0);
|
||||
|
Reference in New Issue
Block a user