Lines Matching refs:mapping

75 	struct ldapmapping	*mapping;  in rwm_map_init()  local
83 mapping = (struct ldapmapping *)ch_calloc( 2, in rwm_map_init()
85 if ( mapping == NULL ) { in rwm_map_init()
92 rc = slap_str2ad( "objectClass", &mapping[0].m_src_ad, &text ); in rwm_map_init()
94 ch_free( mapping ); in rwm_map_init()
98 mapping[0].m_dst_ad = mapping[0].m_src_ad; in rwm_map_init()
99 ber_dupbv( &mapping[0].m_src, &mapping[0].m_src_ad->ad_cname ); in rwm_map_init()
100 ber_dupbv( &mapping[0].m_dst, &mapping[0].m_src ); in rwm_map_init()
102 mapping[1].m_src = mapping[0].m_src; in rwm_map_init()
103 mapping[1].m_dst = mapping[0].m_dst; in rwm_map_init()
104 mapping[1].m_src_ad = mapping[0].m_src_ad; in rwm_map_init()
105 mapping[1].m_dst_ad = mapping[1].m_src_ad; in rwm_map_init()
107 ldap_avl_insert( &lm->map, (caddr_t)&mapping[0], in rwm_map_init()
109 ldap_avl_insert( &lm->remap, (caddr_t)&mapping[1], in rwm_map_init()
112 *m = mapping; in rwm_map_init()
159 struct ldapmapping *mapping; in rwm_map() local
169 ( void )rwm_mapping( map, s, &mapping, remap ); in rwm_map()
170 if ( mapping != NULL ) { in rwm_map()
171 if ( !BER_BVISNULL( &mapping->m_dst ) ) { in rwm_map()
172 *bv = mapping->m_dst; in rwm_map()
394 struct ldapmapping *mapping;
396 if ( rwm_mapping( at_map, &an[i].an_name, &mapping, remap ) ) {
400 if ( !mapping ) {
403 } else if ( !BER_BVISNULL( &mapping->m_dst ) ) {
404 na[ j++ ] = mapping->m_dst.bv_val;
433 struct ldapmapping *mapping = NULL; in map_attr_value() local
435 rwm_mapping( &dc->rwmap->rwm_at, &ad->ad_cname, &mapping, remap ); in map_attr_value()
436 if ( mapping == NULL ) { in map_attr_value()
444 *mapped_attr = mapping->m_dst; in map_attr_value()
451 …|| ( mapping != NULL && mapping->m_dst_ad->ad_type->sat_syntax == slap_schema.si_syn_distinguished… in map_attr_value()
509 if ( mapping != NULL ) { in map_attr_value()
510 assert( mapping->m_dst_ad != NULL ); in map_attr_value()
511 *adp = mapping->m_dst_ad; in map_attr_value()
1302 struct ldapmapping *mapping = v_mapping; in rwm_mapping_dst_free() local
1304 if ( BER_BVISEMPTY( &mapping[0].m_dst ) ) { in rwm_mapping_dst_free()
1305 rwm_mapping_free( &mapping[ -1 ] ); in rwm_mapping_dst_free()
1312 struct ldapmapping *mapping = v_mapping; in rwm_mapping_free() local
1314 if ( !BER_BVISNULL( &mapping[0].m_src ) ) { in rwm_mapping_free()
1315 ch_free( mapping[0].m_src.bv_val ); in rwm_mapping_free()
1318 if ( mapping[0].m_flags & RWMMAP_F_FREE_SRC ) { in rwm_mapping_free()
1319 if ( mapping[0].m_flags & RWMMAP_F_IS_OC ) { in rwm_mapping_free()
1320 if ( mapping[0].m_src_oc ) { in rwm_mapping_free()
1321 ch_free( mapping[0].m_src_oc ); in rwm_mapping_free()
1325 if ( mapping[0].m_src_ad ) { in rwm_mapping_free()
1326 ch_free( mapping[0].m_src_ad ); in rwm_mapping_free()
1331 if ( !BER_BVISNULL( &mapping[0].m_dst ) ) { in rwm_mapping_free()
1332 ch_free( mapping[0].m_dst.bv_val ); in rwm_mapping_free()
1335 if ( mapping[0].m_flags & RWMMAP_F_FREE_DST ) { in rwm_mapping_free()
1336 if ( mapping[0].m_flags & RWMMAP_F_IS_OC ) { in rwm_mapping_free()
1337 if ( mapping[0].m_dst_oc ) { in rwm_mapping_free()
1338 ch_free( mapping[0].m_dst_oc ); in rwm_mapping_free()
1342 if ( mapping[0].m_dst_ad ) { in rwm_mapping_free()
1343 ch_free( mapping[0].m_dst_ad ); in rwm_mapping_free()
1348 ch_free( mapping ); in rwm_mapping_free()