Normally, skips reading of user configuration file when running with different effective UID. This patch adds the same behavior for GID. Author: Nalin Dahyabhai diff -uNPrp openldap-2.4.23.old/libraries/libldap/init.c openldap-2.4.23.new/libraries/libldap/init.c --- openldap-2.4.23.old/libraries/libldap/init.c 2010-04-13 22:22:57.000000000 +0200 +++ openldap-2.4.23.new/libraries/libldap/init.c 2010-08-24 17:25:07.207682002 +0200 @@ -663,7 +663,7 @@ void ldap_int_initialize( struct ldapopt openldap_ldap_init_w_sysconf(LDAP_CONF_FILE); #ifdef HAVE_GETEUID - if ( geteuid() != getuid() ) + if ( geteuid() != getuid() || getegid() != getgid() ) return; #endif