File openldap-2.3.37-libldap-suid.diff of Package openldap2.18498

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);
+        }
 }
openSUSE Build Service is sponsored by