mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-07 14:18:15 +08:00
ITS#4750 only read LDAP_CONF_FILE if geteuid() != getuid()
This commit is contained in:
parent
79e489619a
commit
0bd6ce1062
@ -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);
|
||||
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user