ITS#4750 only read LDAP_CONF_FILE if geteuid() != getuid()

This commit is contained in:
Howard Chu 2008-11-21 02:15:47 +00:00
parent 79e489619a
commit 0bd6ce1062

View File

@ -18,6 +18,10 @@
#include <stdio.h>
#include <ac/stdlib.h>
#ifdef HAVE_GETEUID
#include <ac/unistd.h>
#endif
#include <ac/socket.h>
#include <ac/string.h>
#include <ac/ctype.h>
@ -629,6 +633,12 @@ void ldap_int_initialize( struct ldapoptions *gopts, int *dbglvl )
#endif
openldap_ldap_init_w_sysconf(LDAP_CONF_FILE);
#ifdef HAVE_GETEUID
if ( geteuid() != getuid() )
return;
#endif
openldap_ldap_init_w_userconf(LDAP_USERRC_FILE);
{