• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/OpenLDAP-499.27/OpenLDAP/servers/slapd/overlays/

Lines Matching refs:mapping

1 /* rwmmap.c - rewrite/mapping routines */
70 struct ldapmapping *mapping;
78 mapping = (struct ldapmapping *)ch_calloc( 2,
80 if ( mapping == NULL ) {
87 rc = slap_str2ad( "objectClass", &mapping[0].m_src_ad, &text );
89 ch_free( mapping );
93 mapping[0].m_dst_ad = mapping[0].m_src_ad;
94 ber_dupbv( &mapping[0].m_src, &mapping[0].m_src_ad->ad_cname );
95 ber_dupbv( &mapping[0].m_dst, &mapping[0].m_src );
97 mapping[1].m_src = mapping[0].m_src;
98 mapping[1].m_dst = mapping[0].m_dst;
99 mapping[1].m_src_ad = mapping[0].m_src_ad;
100 mapping[1].m_dst_ad = mapping[1].m_src_ad;
102 avl_insert( &lm->map, (caddr_t)&mapping[0],
104 avl_insert( &lm->remap, (caddr_t)&mapping[1],
107 *m = mapping;
154 struct ldapmapping *mapping;
156 /* map->map may be NULL when mapping is configured,
164 ( void )rwm_mapping( map, s, &mapping, remap );
165 if ( mapping != NULL ) {
166 if ( !BER_BVISNULL( &mapping->m_dst ) ) {
167 *bv = mapping->m_dst;
292 /* if no oc_map mapping was found and at_map required
386 struct ldapmapping *mapping;
388 if ( rwm_mapping( at_map, &an[i].an_name, &mapping, remap ) ) {
392 if ( !mapping ) {
395 } else if ( !BER_BVISNULL( &mapping->m_dst ) ) {
396 na[ j++ ] = mapping->m_dst.bv_val;
425 struct ldapmapping *mapping = NULL;
427 rwm_mapping( &dc->rwmap->rwm_at, &ad->ad_cname, &mapping, remap );
428 if ( mapping == NULL ) {
436 *mapped_attr = mapping->m_dst;
443 || ( mapping != NULL && mapping->m_dst_ad->ad_type->sat_syntax == slap_schema.si_syn_distinguishedName ) )
501 if ( mapping != NULL ) {
502 assert( mapping->m_dst_ad != NULL );
503 *adp = mapping->m_dst_ad;
1294 struct ldapmapping *mapping = v_mapping;
1296 if ( BER_BVISEMPTY( &mapping[0].m_dst ) ) {
1297 rwm_mapping_free( &mapping[ -1 ] );
1304 struct ldapmapping *mapping = v_mapping;
1306 if ( !BER_BVISNULL( &mapping[0].m_src ) ) {
1307 ch_free( mapping[0].m_src.bv_val );
1310 if ( mapping[0].m_flags & RWMMAP_F_FREE_SRC ) {
1311 if ( mapping[0].m_flags & RWMMAP_F_IS_OC ) {
1312 if ( mapping[0].m_src_oc ) {
1313 ch_free( mapping[0].m_src_oc );
1317 if ( mapping[0].m_src_ad ) {
1318 ch_free( mapping[0].m_src_ad );
1323 if ( !BER_BVISNULL( &mapping[0].m_dst ) ) {
1324 ch_free( mapping[0].m_dst.bv_val );
1327 if ( mapping[0].m_flags & RWMMAP_F_FREE_DST ) {
1328 if ( mapping[0].m_flags & RWMMAP_F_IS_OC ) {
1329 if ( mapping[0].m_dst_oc ) {
1330 ch_free( mapping[0].m_dst_oc );
1334 if ( mapping[0].m_dst_ad ) {
1335 ch_free( mapping[0].m_dst_ad );
1340 ch_free( mapping );