2004-09-09 09:42:43 +00:00
|
|
|
Don't read the user's configuration file if we're running in a setuid
|
|
|
|
or setgid application.
|
2009-02-17 11:20:45 +00:00
|
|
|
diff -up openldap-2.4.14/libraries/libldap/init.c.setugid openldap-2.4.14/libraries/libldap/init.c
|
|
|
|
--- openldap-2.4.14/libraries/libldap/init.c.setugid 2009-02-17 08:31:19.000000000 +0100
|
|
|
|
+++ openldap-2.4.14/libraries/libldap/init.c 2009-02-17 08:39:01.000000000 +0100
|
|
|
|
@@ -634,7 +634,7 @@ void ldap_int_initialize( struct ldapopt
|
2004-09-09 09:42:43 +00:00
|
|
|
openldap_ldap_init_w_sysconf(LDAP_CONF_FILE);
|
|
|
|
|
2009-02-17 11:20:45 +00:00
|
|
|
#ifdef HAVE_GETEUID
|
|
|
|
- if ( geteuid() != getuid() )
|
2009-04-09 14:03:02 +00:00
|
|
|
+ if ( geteuid() != getuid() || getegid() != getgid() )
|
2009-02-17 11:20:45 +00:00
|
|
|
return;
|
|
|
|
#endif
|
2004-09-09 09:42:43 +00:00
|
|
|
|