/[smeserver]/rpms/openldap/sme9/openldap-userconfig-setgid.patch
ViewVC logotype

Annotation of /rpms/openldap/sme9/openldap-userconfig-setgid.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Tue Nov 11 00:46:15 2014 UTC (9 years, 7 months ago) by vip-ire
Branch: MAIN
CVS Tags: openldap-2_4_39-8_el6_sme, HEAD
Import openldap

1 vip-ire 1.1 Normally, skips reading of user configuration file when running with different effective UID.
2     This patch adds the same behavior for GID.
3    
4     Author: Nalin Dahyabhai <nalin@redhat.com>
5    
6     diff --git a/libraries/libldap/init.c b/libraries/libldap/init.c
7     index e6b17b4..fbf4829 100644
8     --- a/libraries/libldap/init.c
9     +++ b/libraries/libldap/init.c
10     @@ -678,7 +678,7 @@ void ldap_int_initialize( struct ldapoptions *gopts, int *dbglvl )
11     openldap_ldap_init_w_sysconf(LDAP_CONF_FILE);
12    
13     #ifdef HAVE_GETEUID
14     - if ( geteuid() != getuid() )
15     + if ( geteuid() != getuid() || getegid() != getgid() )
16     return;
17     #endif
18    

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed