2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 06:15:37 +00:00

add sudo_ldap_close

This commit is contained in:
Todd C. Miller
2004-12-03 18:57:48 +00:00
parent 7d488657f0
commit 1936aeb299
4 changed files with 16 additions and 1 deletions

4
sudo.c
View File

@@ -283,8 +283,10 @@ main(argc, argv, envp)
cmnd_status = set_cmnd(sudo_mode);
#ifdef HAVE_LDAP
if (ld != NULL)
if (ld != NULL) {
validated = sudo_ldap_check(ld, pwflag);
sudo_ldap_close(ld);
}
/* Fallback to sudoers if we are allowed to and we aren't validated. */
if (!def_ignore_local_sudoers && !ISSET(validated, VALIDATE_OK))
#endif