/[smeserver]/rpms/openldap/sme9/openldap-memberof-disallow-global.patch
ViewVC logotype

Annotation of /rpms/openldap/sme9/openldap-memberof-disallow-global.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 (10 years ago) by vip-ire
Branch: MAIN
CVS Tags: openldap-2_4_39-8_el6_sme, HEAD
Import openldap

1 vip-ire 1.1 Disallow memberof overlay setting on the frontend database.
2    
3     If this bug gets a resolution upstream, this patch should be replaced.
4    
5     Author: Jan Vcelak <jvcelak@redhat.com>
6     Resolves: #730745
7     Upstream ITS: #7249
8    
9     diff a/servers/slapd/overlays/memberof.c b/servers/slapd/overlays/memberof.c
10     --- a/servers/slapd/overlays/memberof.c
11     +++ b/servers/slapd/overlays/memberof.c
12     @@ -1517,6 +1517,16 @@ memberof_db_init(
13     slap_overinst *on = (slap_overinst *)be->bd_info;
14     memberof_t *mo;
15    
16     + if ( SLAP_ISGLOBALOVERLAY( be ) ) {
17     + /* do not allow memberof to be a global overlay now */
18     + if ( cr ){
19     + snprintf( cr->msg, sizeof(cr->msg),
20     + "memberof overlay cannot be global" );
21     + Debug( LDAP_DEBUG_ANY, "%s\n", cr->msg, 0, 0 );
22     + }
23     + return 1;
24     + }
25     +
26     mo = (memberof_t *)ch_calloc( 1, sizeof( memberof_t ) );
27    
28     /* safe default */

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