From: Todd C. Miller Date: Tue, 1 Jan 2008 21:42:28 +0000 (+0000) Subject: Print nsswitch.conf, ldap.conf and ldap.secret paths in -V output. X-Git-Tag: SUDO_1_7_0~274 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=156c94975063b127f5c617e7ee2beec4f4318513;p=sudo Print nsswitch.conf, ldap.conf and ldap.secret paths in -V output. --- diff --git a/sudo.c b/sudo.c index 7a3b45937..7d6c37413 100644 --- a/sudo.c +++ b/sudo.c @@ -229,6 +229,13 @@ main(argc, argv, envp) if (getuid() == 0) { putchar('\n'); (void) printf("Sudoers path: %s\n", _PATH_SUDOERS); +#ifdef HAVE_LDAP +# ifdef _PATH_NSSWITCH_CONF + (void) printf("nsswitch path: %s\n", _PATH_NSSWITCH_CONF); +# endif + (void) printf("ldap.conf path: %s\n", _PATH_LDAP_CONF); + (void) printf("ldap.secret path: %s\n", _PATH_LDAP_SECRET); +#endif dump_auth_methods(); dump_defaults(); dump_interfaces();