Home
last modified time | relevance | path

Searched refs:ndn (Results 1 – 25 of 91) sorted by relevance

1234

/netbsd/external/bsd/openldap/dist/servers/slapd/slapi/
H A Dslapi_dn.c185 if ( ndn != NULL ) { in slapi_sdn_set_ndn_byval()
186 sdn->ndn.bv_val = slapi_ch_strdup( ndn ); in slapi_sdn_set_ndn_byval()
187 sdn->ndn.bv_len = strlen( ndn ); in slapi_sdn_set_ndn_byval()
200 if ( ndn != NULL ) { in slapi_sdn_set_ndn_byref()
201 sdn->ndn.bv_val = (char *)ndn; in slapi_sdn_set_ndn_byref()
202 sdn->ndn.bv_len = strlen( ndn ); in slapi_sdn_set_ndn_byref()
268 (struct berval *)&sdn1->ndn, (void *)&sdn2->ndn ); in slapi_sdn_compare()
283 return dnIsSuffix( &sdn->ndn, &suffix_sdn->ndn ); in slapi_sdn_issuffix()
293 dnParent( (struct berval *)&child->ndn, &child_parent.ndn ); in slapi_sdn_isparent()
305 dnParent( (struct berval *)&child->ndn, &child_grandparent.ndn ); in slapi_sdn_isgrandparent()
[all …]
/netbsd/external/bsd/openldap/dist/servers/slapd/back-asyncmeta/
H A Dcandidates.c69 if ( dnIsSuffix( ndn, &ms->ms_dn ) ) { in asyncmeta_subtree_match()
75 if ( dnIsSuffix( ndn, &ms->ms_dn ) && in asyncmeta_subtree_match()
76 ( ndn->bv_len > ms->ms_dn.bv_len || scope != LDAP_SCOPE_BASE ) ) in asyncmeta_subtree_match()
84 if ( regexec( &ms->ms_regex, ndn->bv_val, 0, NULL, 0 ) == 0 ) { in asyncmeta_subtree_match()
102 struct berval *ndn, in asyncmeta_is_candidate() argument
106 int d = ndn->bv_len - mt->mt_nsuffix.bv_len; in asyncmeta_is_candidate()
109 if ( !dnIsSuffix( ndn, &mt->mt_nsuffix ) ) { in asyncmeta_is_candidate()
150 rdn.bv_val = ndn->bv_val; in asyncmeta_is_candidate()
167 if ( !dnIsSuffix( &mt->mt_nsuffix, ndn ) ) { in asyncmeta_is_candidate()
203 struct berval *ndn ) in asyncmeta_select_unique_candidate() argument
[all …]
H A Ddncache.c98 struct berval *ndn ) in asyncmeta_dncache_get_target() argument
105 assert( ndn != NULL ); in asyncmeta_dncache_get_target()
107 tmp_entry.dn = *ndn; in asyncmeta_dncache_get_target()
142 struct berval *ndn, in asyncmeta_dncache_update_entry() argument
151 assert( ndn != NULL ); in asyncmeta_dncache_update_entry()
162 tmp_entry.dn = *ndn; in asyncmeta_dncache_update_entry()
179 entry->dn.bv_len = ndn->bv_len; in asyncmeta_dncache_update_entry()
181 AC_MEMCPY( entry->dn.bv_val, ndn->bv_val, ndn->bv_len ); in asyncmeta_dncache_update_entry()
200 struct berval *ndn ) in asyncmeta_dncache_delete_entry() argument
206 assert( ndn != NULL ); in asyncmeta_dncache_delete_entry()
[all …]
H A Dbind.c637 struct berval ndn; in asyncmeta_back_proxy_authz_cred() local
662 ndn = op->o_req_ndn; in asyncmeta_back_proxy_authz_cred()
668 ndn = op->o_ndn; in asyncmeta_back_proxy_authz_cred()
697 if ( !BER_BVISNULL( &ndn ) && !BER_BVISEMPTY( &ndn ) ) { in asyncmeta_back_proxy_authz_cred()
735 authcDN = ndn; in asyncmeta_back_proxy_authz_cred()
791 ndn.bv_val, ndn.bv_len + 1 ); in asyncmeta_back_proxy_authz_cred()
983 ndn; in asyncmeta_back_proxy_authz_ctrl() local
1002 ndn = op->o_req_ndn; in asyncmeta_back_proxy_authz_ctrl()
1009 ndn = op->o_ndn; in asyncmeta_back_proxy_authz_ctrl()
1057 authcDN = ndn; in asyncmeta_back_proxy_authz_ctrl()
[all …]
/netbsd/external/bsd/openldap/dist/servers/slapd/back-meta/
H A Ddncache.c98 struct berval *ndn ) in meta_dncache_get_target() argument
105 assert( ndn != NULL ); in meta_dncache_get_target()
107 tmp_entry.dn = *ndn; in meta_dncache_get_target()
142 struct berval *ndn, in meta_dncache_update_entry() argument
151 assert( ndn != NULL ); in meta_dncache_update_entry()
162 tmp_entry.dn = *ndn; in meta_dncache_update_entry()
179 entry->dn.bv_len = ndn->bv_len; in meta_dncache_update_entry()
181 AC_MEMCPY( entry->dn.bv_val, ndn->bv_val, ndn->bv_len ); in meta_dncache_update_entry()
206 struct berval *ndn ) in meta_dncache_delete_entry() argument
212 assert( ndn != NULL ); in meta_dncache_delete_entry()
[all …]
H A Dcandidates.c68 if ( dnIsSuffix( ndn, &ms->ms_dn ) ) { in meta_subtree_match()
74 if ( dnIsSuffix( ndn, &ms->ms_dn ) && in meta_subtree_match()
83 if ( regexec( &ms->ms_regex, ndn->bv_val, 0, NULL, 0 ) == 0 ) { in meta_subtree_match()
101 struct berval *ndn, in meta_back_is_candidate() argument
105 int d = ndn->bv_len - mt->mt_nsuffix.bv_len; in meta_back_is_candidate()
108 if ( !dnIsSuffix( ndn, &mt->mt_nsuffix ) ) { in meta_back_is_candidate()
124 int match = ( meta_subtree_match( mt, ndn, scope ) != NULL ); in meta_back_is_candidate()
149 rdn.bv_val = ndn->bv_val; in meta_back_is_candidate()
166 if ( !dnIsSuffix( &mt->mt_nsuffix, ndn ) ) { in meta_back_is_candidate()
202 struct berval *ndn ) in meta_back_select_unique_candidate() argument
[all …]
/netbsd/external/bsd/openldap/dist/servers/slapd/back-monitor/
H A Dproto-back-monitor.h56 struct berval *ndn,
61 struct berval *ndn,
67 struct berval *ndn,
116 struct berval *ndn,
141 struct berval *ndn ));
165 struct berval *ndn ));
194 struct berval *ndn,
221 struct berval *ndn,
229 struct berval *ndn,
246 struct berval *ndn,
[all …]
H A Dcache.c147 struct berval *ndn, in monitor_cache_get() argument
153 assert( ndn != NULL ); in monitor_cache_get()
158 tmp_mc.mc_ndn = *ndn; in monitor_cache_get()
186 struct berval *ndn, in monitor_cache_remove() argument
193 assert( ndn != NULL ); in monitor_cache_remove()
198 dnParent( ndn, &pndn ); in monitor_cache_remove()
203 tmp_mc.mc_ndn = *ndn; in monitor_cache_remove()
244 ndn->bv_val ); in monitor_cache_remove()
255 tmp_mc.mc_ndn = *ndn; in monitor_cache_remove()
295 struct berval *ndn, in monitor_cache_dn2entry() argument
[all …]
H A Dinit.c690 ndn.bv_val ); in monitor_back_register_entry_parent()
859 BER_BVZERO( ndn ); in monitor_search2ndn_cb()
884 BER_BVZERO( ndn ); in monitor_search2ndn()
1011 ndn = *ndn_in; in monitor_back_register_entry_attrs()
1196 ndn->bv_val ); in monitor_back_unregister_entry()
1221 ndn->bv_val ); in monitor_back_unregister_entry()
1347 ndn.bv_val ); in monitor_back_unregister_entry_parent()
1460 ndn = *ndn_in; in monitor_back_unregister_entry_attrs()
1502 ndn.bv_val ); in monitor_back_unregister_entry_attrs()
1631 struct berval *ndn, in monitor_back_get_subsys_by_dn() argument
[all …]
H A Dback-monitor.h271 struct berval *ndn, Entry *, Entry ** );
283 typedef int (monitor_cbfunc)( struct berval *ndn, monitor_callback_t *cb,
286 typedef int (monitor_cbafunc)( struct berval *ndn, Attribute *a,
293 monitor_subsys_t * (*get_subsys_by_dn)( struct berval *ndn, int sub );
308 int (*unregister_entry)( struct berval *ndn );
320 Entry * (*entry_get_unlocked)( struct berval *ndn );
/netbsd/external/cddl/osnet/dist/uts/common/fs/zfs/
H A Ddnode.c717 ndn->dn_objset = odn->dn_objset; in dnode_move_impl()
718 ndn->dn_object = odn->dn_object; in dnode_move_impl()
719 ndn->dn_dbuf = odn->dn_dbuf; in dnode_move_impl()
721 ndn->dn_phys = odn->dn_phys; in dnode_move_impl()
722 ndn->dn_type = odn->dn_type; in dnode_move_impl()
764 ndn->dn_bonus = odn->dn_bonus; in dnode_move_impl()
766 ndn->dn_zio = odn->dn_zio; in dnode_move_impl()
783 ndn->dn_handle->dnh_dnode = ndn; in dnode_move_impl()
785 ndn->dn_zfetch.zf_dnode = ndn; in dnode_move_impl()
838 ndn->dn_moved = 1; in dnode_move_impl()
[all …]
/netbsd/external/bsd/openldap/dist/servers/slapd/
H A Dslapdn.c57 ndn = BER_BVNULL; in slapdn() local
67 rc = dnNormalize( 0, NULL, NULL, &dn, &ndn, NULL ); in slapdn()
71 rc = dnPrettyNormal( NULL, &dn, &pdn, &ndn, NULL ); in slapdn()
91 printf( "%s\n", ndn.bv_val ); in slapdn()
99 ndn.bv_val, pdn.bv_val ); in slapdn()
103 ch_free( ndn.bv_val ); in slapdn()
H A Dslapmodify.c148 struct berval ndn = BER_BVNULL; in slapmodify() local
220 if( BER_BVISEMPTY( &ndn ) && in slapmodify()
226 bd = select_backend( &ndn, nosubordinates ); in slapmodify()
248 bd = select_backend( &ndn, nosubordinates ); in slapmodify()
283 ber_dupbv( &e->e_nname, &ndn ); in slapmodify()
289 id = be->be_dn2id_get( be, &ndn ); in slapmodify()
302 progname, ndn.bv_val, lineno ); in slapmodify()
584 rc = be->be_entry_delete( be, &ndn, &bvtext ); in slapmodify()
601 request, ndn.bv_val, (long) id ); in slapmodify()
605 request, ndn.bv_val ); in slapmodify()
[all …]
H A Dacl.c778 ndn = e->e_nname; in acl_mask_dn()
782 ndn = *opndn; in acl_mask_dn()
790 dnParent( &ndn, &ndn ); in acl_mask_dn()
793 if ( BER_BVISEMPTY( &ndn ) || !dn_match( &ndn, &selfndn ) ) in acl_mask_dn()
975 struct berval ndn; in acl_mask_dn() local
986 ndn = *opndn; in acl_mask_dn()
991 dnParent( &ndn, &ndn ); in acl_mask_dn()
1240 ndn = op->o_ndn; in slap_acl_mask()
1549 ndn = op->o_ndn; in slap_acl_mask()
1642 bv = ndn; in slap_acl_mask()
[all …]
/netbsd/external/bsd/openldap/dist/servers/slapd/back-wt/
H A Ddn2id.c115 struct berval *ndn) in wt_dn2id_delete() argument
120 Debug( LDAP_DEBUG_TRACE, "=> wt_dn2id_delete %s\n", ndn->bv_val ); in wt_dn2id_delete()
132 cursor->set_key(cursor, ndn->bv_val); in wt_dn2id_delete()
144 ndn->bv_val, rc ); in wt_dn2id_delete()
156 struct berval *ndn, in wt_dn2id() argument
165 ndn->bv_val ); in wt_dn2id()
167 if ( ndn->bv_len == 0 ) { in wt_dn2id()
183 cursor->set_key(cursor, ndn->bv_val); in wt_dn2id()
258 struct berval *ndn, in wt_dn2idl() argument
274 ndn->bv_val ); in wt_dn2idl()
[all …]
H A Ddn2entry.c40 struct berval *ndn, in wt_dn2entry() argument
51 if( ndn->bv_len == 0 ){ in wt_dn2entry()
67 cursor->set_key(cursor, ndn->bv_val); in wt_dn2entry()
113 struct berval *ndn, in wt_dn2pentry() argument
119 if (be_issuffix( be, ndn )) { in wt_dn2pentry()
124 dnParent( ndn, &pdn ); in wt_dn2pentry()
H A Dproto-wt.h116 struct berval *ndn,
130 struct berval *ndn);
137 struct berval *ndn,
142 struct berval *ndn,
/netbsd/external/bsd/openldap/dist/servers/slapd/overlays/
H A Drwmdn.c53 struct berval *ndn ) in rwm_dn_massage_normalize() argument
64 if ( mdn.bv_val == in->bv_val && !BER_BVISNULL( ndn ) ) { in rwm_dn_massage_normalize()
68 rc = dnNormalize( 0, NULL, NULL, &mdn, ndn, NULL ); in rwm_dn_massage_normalize()
123 struct berval *ndn ) in rwm_dn_massage_pretty_normalize() argument
135 if ( BER_BVISNULL( ndn ) ) { in rwm_dn_massage_pretty_normalize()
136 rc = dnNormalize( 0, NULL, NULL, &mdn, ndn, NULL ); in rwm_dn_massage_pretty_normalize()
141 rc = dnPrettyNormal( NULL, &mdn, pdn, ndn, NULL ); in rwm_dn_massage_pretty_normalize()
H A Dunique.c53 struct berval ndn; member
77 struct berval *ndn; member
207 &uri->ndn, in unique_new_domain_uri()
1005 uq.ndn = &op->o_req_ndn; in unique_search()
1095 if ( uri->ndn.bv_val in unique_add()
1172 uri->ndn.bv_val ? in unique_add()
1173 &uri->ndn : in unique_add()
1253 if ( uri->ndn.bv_val in unique_modify()
1315 &uri->ndn : in unique_modify()
1391 if ( uri->ndn.bv_val in unique_modrdn()
[all …]
H A Drwmmap.c908 ndn = BER_BVNULL; in rwm_referral_rewrite() local
959 ndn = olddn; in rwm_referral_rewrite()
961 &dn, &ndn ); in rwm_referral_rewrite()
1009 ch_free( ndn.bv_val ); in rwm_referral_rewrite()
1067 ndn = BER_BVNULL; in rwm_dnattr_rewrite() local
1103 ndn = (*pa_nvals)[i]; in rwm_dnattr_rewrite()
1109 ndn = in[i]; in rwm_dnattr_rewrite()
1149 if ( !BER_BVISNULL( &ndn ) && ndn.bv_val != (*pa_nvals)[i].bv_val ) { in rwm_dnattr_rewrite()
1151 (*pa_nvals)[i] = ndn; in rwm_dnattr_rewrite()
1288 if ( !BER_BVISNULL( &ndn ) && a_nvals[i].bv_val != ndn.bv_val ) { in rwm_dnattr_result_rewrite()
[all …]
/netbsd/external/bsd/openldap/dist/contrib/slapd-modules/allop/
H A Dallop.c79 ndn; in allop_db_config() local
103 BER_BVZERO( &ndn ); in allop_db_config()
106 ber_str2bv( "", 0, 1, &ndn ); in allop_db_config()
112 rc = dnNormalize( 0, NULL, NULL, &dn, &ndn, NULL ); in allop_db_config()
120 if ( BER_BVISNULL( &ndn ) ) { in allop_db_config()
137 ao->ao_ndn = ndn; in allop_db_config()
/netbsd/external/bsd/openldap/dist/contrib/slapd-modules/samba4/
H A Dpguid.c206 struct berval ndn; member
262 mod->ndn.bv_len = rs->sr_entry->e_nname.bv_len; in pguid_repair_cb()
263 mod->ndn.bv_val = (char *)&mod[1]; in pguid_repair_cb()
265 mod->pguid.bv_val = (char *)&mod->ndn.bv_val[mod->ndn.bv_len + 1]; in pguid_repair_cb()
266 lutil_strncopy( mod->ndn.bv_val, rs->sr_entry->e_nname.bv_val, rs->sr_entry->e_nname.bv_len ); in pguid_repair_cb()
358 op->o_req_dn = pmod->ndn; in pguid_repair()
359 op->o_req_ndn = pmod->ndn; in pguid_repair()
366 op->o_log_prefix, pmod->ndn.bv_val ); in pguid_repair()
371 op->o_log_prefix, pmod->ndn.bv_val, rs2.sr_err ); in pguid_repair()
H A Drdnval.c187 struct berval *ndn, in rdnval_rdn2vals() argument
213 if ( ldap_bv2rdn_x( ndn, &nrdn, in rdnval_rdn2vals()
219 op->o_log_prefix, ndn->bv_val ); in rdnval_rdn2vals()
408 struct berval ndn; member
455 mod->ndn.bv_len = rs->sr_entry->e_nname.bv_len; in rdnval_repair_cb()
456 mod->ndn.bv_val = (char *)&mod[1]; in rdnval_repair_cb()
457 lutil_strncopy( mod->ndn.bv_val, rs->sr_entry->e_nname.bv_val, rs->sr_entry->e_nname.bv_len ); in rdnval_repair_cb()
550 op->o_req_dn = rmod->ndn; in rdnval_repair()
551 op->o_req_ndn = rmod->ndn; in rdnval_repair()
560 op->o_log_prefix, rmod->ndn.bv_val ); in rdnval_repair()
[all …]
H A Dvernum.c193 struct berval ndn; member
227 mod->ndn.bv_len = rs->sr_entry->e_nname.bv_len; in vernum_repair_cb()
228 mod->ndn.bv_val = (char *)&mod[1]; in vernum_repair_cb()
229 lutil_strncopy( mod->ndn.bv_val, rs->sr_entry->e_nname.bv_val, rs->sr_entry->e_nname.bv_len ); in vernum_repair_cb()
324 op->o_req_dn = rmod->ndn; in vernum_repair()
325 op->o_req_ndn = rmod->ndn; in vernum_repair()
334 op->o_log_prefix, rmod->ndn.bv_val ); in vernum_repair()
339 op->o_log_prefix, rmod->ndn.bv_val, rs2.sr_err ); in vernum_repair()
/netbsd/external/bsd/openldap/dist/servers/slapd/back-sql/
H A Dentry-id.c120 struct berval *ndn, in backsql_dn2id() argument
157 ndn->bv_val, ndn->bv_len, BACKSQL_MAX_DN_LEN ); in backsql_dn2id()
192 ndn->bv_val, bi->sql_id_query ); in backsql_dn2id()
198 ndn->bv_val, bi->sql_id_query ); in backsql_dn2id()
204 realndn = *ndn; in backsql_dn2id()
209 ndn->bv_val, realndn.bv_val ); in backsql_dn2id()
230 ndn->bv_val, upperdn ); in backsql_dn2id()
240 ndn->bv_val, upperdn ); in backsql_dn2id()
253 ndn->bv_val, tbbDN.bv_val ); in backsql_dn2id()
334 struct berval pdn = *ndn; in backsql_dn2id()
[all …]

1234