forked from jengelh/openldap2
19 lines
492 B
Diff
19 lines
492 B
Diff
|
Index: libraries/libldap/init.c
|
||
|
===================================================================
|
||
|
--- libraries/libldap/init.c.orig
|
||
|
+++ libraries/libldap/init.c
|
||
|
@@ -579,6 +579,7 @@ void ldap_int_initialize( struct ldapopt
|
||
|
#endif
|
||
|
|
||
|
openldap_ldap_init_w_sysconf(LDAP_CONF_FILE);
|
||
|
+ if( getuid() == geteuid() ){
|
||
|
openldap_ldap_init_w_userconf(LDAP_USERRC_FILE);
|
||
|
|
||
|
{
|
||
|
@@ -608,4 +609,5 @@ void ldap_int_initialize( struct ldapopt
|
||
|
}
|
||
|
|
||
|
openldap_ldap_init_w_env(gopts, NULL);
|
||
|
+ }
|
||
|
}
|