~ttx/openldap/lucid-gssapi-495418

« back to all changes in this revision

Viewing changes to servers/slapd/back-meta/init.c

  • Committer: Bazaar Package Importer
  • Author(s): Mathias Gug
  • Date: 2009-03-06 17:34:21 UTC
  • mto: (0.3.1 squeeze)
  • mto: This revision was merged to the branch mainline in revision 12.
  • Revision ID: james.westby@ubuntu.com-20090306173421-n2o3ca73v9tmrdiy
Tags: upstream-2.4.15
ImportĀ upstreamĀ versionĀ 2.4.15

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $OpenLDAP: pkg/ldap/servers/slapd/back-meta/init.c,v 1.58.2.12 2009/01/30 19:07:40 quanah Exp $ */
 
1
/* $OpenLDAP: pkg/ldap/servers/slapd/back-meta/init.c,v 1.58.2.13 2009/02/17 19:14:41 quanah Exp $ */
2
2
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
3
3
 *
4
4
 * Copyright 1999-2009 The OpenLDAP Foundation.
170
170
                slap_bindconf   sb = { BER_BVNULL };
171
171
                metatarget_t    *mt = mi->mi_targets[ i ];
172
172
 
 
173
                struct berval mapped;
 
174
 
173
175
                ber_str2bv( mt->mt_uri, 0, 0, &sb.sb_uri );
174
176
                sb.sb_version = mt->mt_version;
175
177
                sb.sb_method = LDAP_AUTH_SIMPLE;
224
226
                                not_always_anon_non_prescriptive = 1;
225
227
                        }
226
228
                }
 
229
 
 
230
                BER_BVZERO( &mapped );
 
231
                ldap_back_map( &mt->mt_rwmap.rwm_at, 
 
232
                        &slap_schema.si_ad_entryDN->ad_cname, &mapped,
 
233
                        BACKLDAP_REMAP );
 
234
                if ( BER_BVISNULL( &mapped ) || mapped.bv_val[0] == '\0' ) {
 
235
                        mt->mt_rep_flags |= REP_NO_ENTRYDN;
 
236
                }
 
237
 
 
238
                BER_BVZERO( &mapped );
 
239
                ldap_back_map( &mt->mt_rwmap.rwm_at, 
 
240
                        &slap_schema.si_ad_subschemaSubentry->ad_cname, &mapped,
 
241
                        BACKLDAP_REMAP );
 
242
                if ( BER_BVISNULL( &mapped ) || mapped.bv_val[0] == '\0' ) {
 
243
                        mt->mt_rep_flags |= REP_NO_SUBSCHEMA;
 
244
                }
227
245
        }
228
246
 
229
247
        if ( not_always == 0 ) {