Define LDAPNOINIT before calling ldap_init(), etc. to disable user

ldaprc and system defaults that could affect how LDAP works.
This commit is contained in:
Todd C. Miller
2008-01-01 19:01:42 +00:00
parent 6f2cd1b184
commit cd30e84743
2 changed files with 12 additions and 3 deletions

4
env.c
View File

@@ -261,7 +261,7 @@ _sudo_setenv(var, val, dupcheck)
insert_env(estring, dupcheck, FALSE);
}
#if defined(HAVE_LDAP_SASL_INTERACTIVE_BIND_S) && !defined(HAVE_GSS_KRB5_CCACHE_NAME)
#ifdef HAVE_LDAP
/*
* External version of sudo_setenv() that keeps things in sync with
* the environ pointer.
@@ -318,7 +318,7 @@ sudo_unsetenv(var)
}
}
}
#endif /* HAVE_LDAP_SASL_INTERACTIVE_BIND_S && !HAVE_GSS_KRB5_CCACHE_NAME */
#endif /* HAVE_LDAP */
/*
* Insert str into env.envp, assumes str has an '=' in it.