Searched refs:ndn (Results 1 - 25 of 90) sorted by relevance

1234

/netbsd-current/external/bsd/openldap/dist/servers/slapd/back-asyncmeta/
H A Dcandidates.c62 asyncmeta_subtree_match( a_metatarget_t *mt, struct berval *ndn, int scope ) argument
69 if ( dnIsSuffix( ndn, &ms->ms_dn ) ) {
75 if ( dnIsSuffix( ndn, &ms->ms_dn ) &&
76 ( ndn->bv_len > ms->ms_dn.bv_len || scope != LDAP_SCOPE_BASE ) )
84 if ( regexec( &ms->ms_regex, ndn->bv_val, 0, NULL, 0 ) == 0 ) {
102 struct berval *ndn,
106 int d = ndn->bv_len - mt->mt_nsuffix.bv_len;
109 if ( !dnIsSuffix( ndn, &mt->mt_nsuffix ) ) {
125 int match = ( asyncmeta_subtree_match( mt, ndn, scope ) != NULL );
150 rdn.bv_val = ndn
100 asyncmeta_is_candidate( a_metatarget_t *mt, struct berval *ndn, int scope ) argument
[all...]
H A Ddncache.c98 struct berval *ndn )
105 assert( ndn != NULL );
107 tmp_entry.dn = *ndn;
142 struct berval *ndn,
151 assert( ndn != NULL );
162 tmp_entry.dn = *ndn;
173 entry = ch_malloc( sizeof( metadncacheentry_t ) + ndn->bv_len + 1 );
179 entry->dn.bv_len = ndn->bv_len;
181 AC_MEMCPY( entry->dn.bv_val, ndn->bv_val, ndn
140 asyncmeta_dncache_update_entry( a_metadncache_t *cache, struct berval *ndn, int target ) argument
[all...]
H A Dbind.c637 struct berval ndn; local
662 ndn = op->o_req_ndn;
665 ndn = op->o_conn->c_ndn;
668 ndn = op->o_ndn;
697 if ( !BER_BVISNULL( &ndn ) && !BER_BVISEMPTY( &ndn ) ) {
709 if ( BER_BVISNULL( &ndn )
731 if ( BER_BVISNULL( &ndn ) ) {
735 authcDN = ndn;
782 if ( BER_BVISNULL( &ndn ) ) {
983 ndn; local
[all...]
/netbsd-current/external/bsd/openldap/dist/servers/slapd/
H A Dslapdn.c57 ndn = BER_BVNULL; local
67 rc = dnNormalize( 0, NULL, NULL, &dn, &ndn, NULL );
71 rc = dnPrettyNormal( NULL, &dn, &pdn, &ndn, NULL );
91 printf( "%s\n", ndn.bv_val );
99 ndn.bv_val, pdn.bv_val );
103 ch_free( ndn.bv_val );
H A Dslapmodify.c148 struct berval ndn = BER_BVNULL; local
211 local_rc = dnNormalize( 0, NULL, NULL, &lr.lr_dn, &ndn, NULL );
220 if( BER_BVISEMPTY( &ndn ) &&
226 bd = select_backend( &ndn, nosubordinates );
248 bd = select_backend( &ndn, nosubordinates );
283 ber_dupbv( &e->e_nname, &ndn );
289 id = be->be_dn2id_get( be, &ndn );
302 progname, ndn.bv_val, lineno );
584 rc = be->be_entry_delete( be, &ndn, &bvtext );
591 "(line=%lu): %s\n", progname, request, ndn
[all...]
H A Dfrontend.c54 struct berval *ndn,
64 op->o_bd = select_backend( ndn, 0 );
67 rc = op->o_bd->be_fetch( op, ndn, oc, at, rw, e );
52 fe_entry_get_rw( Operation *op, struct berval *ndn, ObjectClass *oc, AttributeDescription *at, int rw, Entry **e ) argument
H A Dslapacl.c140 struct berval ndn; local
142 rc = dnNormalize( 0, NULL, NULL, &authcDN, &ndn, NULL );
151 authcDN = ndn;
174 struct berval ndn; local
176 rc = dnNormalize( 0, NULL, NULL, &authzDN, &ndn, NULL );
185 authzDN = ndn;
/netbsd-current/external/bsd/openldap/dist/servers/slapd/back-meta/
H A Ddncache.c98 struct berval *ndn )
105 assert( ndn != NULL );
107 tmp_entry.dn = *ndn;
142 struct berval *ndn,
151 assert( ndn != NULL );
162 tmp_entry.dn = *ndn;
173 entry = ch_malloc( sizeof( metadncacheentry_t ) + ndn->bv_len + 1 );
179 entry->dn.bv_len = ndn->bv_len;
181 AC_MEMCPY( entry->dn.bv_val, ndn->bv_val, ndn
140 meta_dncache_update_entry( metadncache_t *cache, struct berval *ndn, int target ) argument
[all...]
H A Dcandidates.c61 meta_subtree_match( metatarget_t *mt, struct berval *ndn, int scope ) argument
68 if ( dnIsSuffix( ndn, &ms->ms_dn ) ) {
74 if ( dnIsSuffix( ndn, &ms->ms_dn ) &&
75 ( ndn->bv_len > ms->ms_dn.bv_len || scope != LDAP_SCOPE_BASE ) )
83 if ( regexec( &ms->ms_regex, ndn->bv_val, 0, NULL, 0 ) == 0 ) {
101 struct berval *ndn,
105 int d = ndn->bv_len - mt->mt_nsuffix.bv_len;
108 if ( !dnIsSuffix( ndn, &mt->mt_nsuffix ) ) {
124 int match = ( meta_subtree_match( mt, ndn, scope ) != NULL );
149 rdn.bv_val = ndn
99 meta_back_is_candidate( metatarget_t *mt, struct berval *ndn, int scope ) argument
[all...]
/netbsd-current/external/bsd/openldap/dist/servers/slapd/slapi/
H A Dslapi_dn.c44 BER_BVZERO( &sdn->ndn );
66 slapi_ch_free_string( &sdn->ndn.bv_val );
83 return sdn->ndn.bv_val;
88 if ( BER_BVISNULL( &sdn->ndn ) ) {
90 (struct berval *)&sdn->dn, (struct berval *)&sdn->ndn, NULL );
94 return sdn->ndn.bv_val;
105 Slapi_DN *slapi_sdn_new_ndn_byval( const char *ndn )
110 return slapi_sdn_set_ndn_byval( sdn, ndn );
121 Slapi_DN *slapi_sdn_new_ndn_byref( const char *ndn )
126 return slapi_sdn_set_ndn_byref( sdn, ndn );
[all...]
/netbsd-current/external/bsd/openldap/dist/servers/slapd/back-wt/
H A Ddn2entry.c40 struct berval *ndn,
51 if( ndn->bv_len == 0 ){
67 cursor->set_key(cursor, ndn->bv_val);
113 struct berval *ndn,
119 if (be_issuffix( be, ndn )) {
124 dnParent( ndn, &pdn );
38 wt_dn2entry( BackendDB *be, wt_ctx *wc, struct berval *ndn, Entry **ep ) argument
111 wt_dn2pentry( BackendDB *be, wt_ctx *wc, struct berval *ndn, Entry **ep ) argument
H A Ddn2id.c115 struct berval *ndn)
120 Debug( LDAP_DEBUG_TRACE, "=> wt_dn2id_delete %s\n", ndn->bv_val );
132 cursor->set_key(cursor, ndn->bv_val);
144 ndn->bv_val, rc );
156 struct berval *ndn,
165 ndn->bv_val );
167 if ( ndn->bv_len == 0 ) {
183 cursor->set_key(cursor, ndn->bv_val);
258 struct berval *ndn,
274 ndn
112 wt_dn2id_delete( Operation *op, WT_SESSION *session, struct berval *ndn) argument
153 wt_dn2id( Operation *op, WT_SESSION *session, struct berval *ndn, ID *id) argument
255 wt_dn2idl( Operation *op, WT_SESSION *session, struct berval *ndn, Entry *e, ID *ids, ID *stack) argument
[all...]
H A Dproto-wt.h116 struct berval *ndn,
130 struct berval *ndn);
137 struct berval *ndn,
142 struct berval *ndn,
/netbsd-current/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,
218 struct berval *ndn ));
221 struct berval *ndn,
229 struct berval *ndn,
[all...]
H A Dcache.c147 struct berval *ndn,
153 assert( ndn != NULL );
158 tmp_mc.mc_ndn = *ndn;
186 struct berval *ndn,
193 assert( ndn != NULL );
198 dnParent( ndn, &pndn );
203 tmp_mc.mc_ndn = *ndn;
244 ndn->bv_val );
255 tmp_mc.mc_ndn = *ndn;
295 struct berval *ndn,
145 monitor_cache_get( monitor_info_t *mi, struct berval *ndn, Entry **ep ) argument
184 monitor_cache_remove( monitor_info_t *mi, struct berval *ndn, Entry **ep ) argument
292 monitor_cache_dn2entry( Operation *op, SlapReply *rs, struct berval *ndn, Entry **ep, Entry **matched ) argument
[all...]
H A Dinit.c637 struct berval ndn = BER_BVNULL; local
673 if ( monitor_search2ndn( nbase, scope, filter, &ndn ) ) {
685 if ( monitor_cache_get( mi, &ndn, &e_parent ) != 0 ) {
690 ndn.bv_val );
775 if ( !BER_BVISNULL( &ndn ) ) {
776 ch_free( ndn.bv_val );
854 struct berval *ndn = op->o_callback->sc_private; local
856 if ( !BER_BVISNULL( ndn ) ) {
858 ch_free( ndn->bv_val );
859 BER_BVZERO( ndn );
989 struct berval ndn = BER_BVNULL; local
1170 monitor_back_register_entry_callback( struct berval *ndn, monitor_callback_t *cb, struct berval *nbase, int scope, struct berval *filter ) argument
1293 struct berval ndn = BER_BVNULL; local
1436 struct berval ndn = BER_BVNULL; local
1599 monitor_back_unregister_entry_callback( struct berval *ndn, monitor_callback_t *cb, struct berval *nbase, int scope, struct berval *filter ) argument
1630 monitor_back_get_subsys_by_dn( struct berval *ndn, int sub ) argument
2122 ndn; local
[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-current/external/bsd/openldap/dist/servers/slapd/overlays/
H A Drwmdn.c45 * massages "in" and normalizes it into "ndn"
47 * "ndn" may be untouched if no massaging occurred and its value was not null
53 struct berval *ndn )
64 if ( mdn.bv_val == in->bv_val && !BER_BVISNULL( ndn ) ) {
68 rc = dnNormalize( 0, NULL, NULL, &mdn, ndn, NULL );
111 * massages "in" and prettifies and normalizes it into "pdn" and "ndn"
114 * "ndn" may be untouched if no massaging occurred and its value was not null;
115 * if no massage occurred and "ndn" value was not null, it is filled
116 * with the normalized value of "pdn", much like ndn = dnNormalize( pdn )
123 struct berval *ndn )
[all...]
/netbsd-current/external/bsd/openldap/dist/contrib/slapd-modules/allop/
H A Dallop.c79 ndn; local
103 BER_BVZERO( &ndn );
106 ber_str2bv( "", 0, 1, &ndn );
112 rc = dnNormalize( 0, NULL, NULL, &dn, &ndn, NULL );
120 if ( BER_BVISNULL( &ndn ) ) {
137 ao->ao_ndn = ndn;
/netbsd-current/external/cddl/osnet/dist/uts/common/fs/zfs/
H A Ddnode.c707 dnode_move_impl(dnode_t *odn, dnode_t *ndn) argument
717 ndn->dn_objset = odn->dn_objset;
718 ndn->dn_object = odn->dn_object;
719 ndn->dn_dbuf = odn->dn_dbuf;
720 ndn->dn_handle = odn->dn_handle;
721 ndn->dn_phys = odn->dn_phys;
722 ndn->dn_type = odn->dn_type;
723 ndn->dn_bonuslen = odn->dn_bonuslen;
724 ndn->dn_bonustype = odn->dn_bonustype;
725 ndn
848 dnode_t *odn = buf, *ndn = newbuf; local
[all...]
/netbsd-current/external/bsd/openldap/dist/contrib/slapd-modules/samba4/
H A Dpguid.c206 struct berval ndn; member in struct:pguid_mod_t
262 mod->ndn.bv_len = rs->sr_entry->e_nname.bv_len;
263 mod->ndn.bv_val = (char *)&mod[1];
265 mod->pguid.bv_val = (char *)&mod->ndn.bv_val[mod->ndn.bv_len + 1];
266 lutil_strncopy( mod->ndn.bv_val, rs->sr_entry->e_nname.bv_val, rs->sr_entry->e_nname.bv_len );
358 op->o_req_dn = pmod->ndn;
359 op->o_req_ndn = pmod->ndn;
366 op->o_log_prefix, pmod->ndn.bv_val );
371 op->o_log_prefix, pmod->ndn
[all...]
H A Dvernum.c193 struct berval ndn; member in struct:vernum_mod_t
227 mod->ndn.bv_len = rs->sr_entry->e_nname.bv_len;
228 mod->ndn.bv_val = (char *)&mod[1];
229 lutil_strncopy( mod->ndn.bv_val, rs->sr_entry->e_nname.bv_val, rs->sr_entry->e_nname.bv_len );
324 op->o_req_dn = rmod->ndn;
325 op->o_req_ndn = rmod->ndn;
334 op->o_log_prefix, rmod->ndn.bv_val );
339 op->o_log_prefix, rmod->ndn.bv_val, rs2.sr_err );
H A Drdnval.c187 struct berval *ndn,
213 if ( ldap_bv2rdn_x( ndn, &nrdn,
219 op->o_log_prefix, ndn->bv_val );
408 struct berval ndn; member in struct:rdnval_mod_t
455 mod->ndn.bv_len = rs->sr_entry->e_nname.bv_len;
456 mod->ndn.bv_val = (char *)&mod[1];
457 lutil_strncopy( mod->ndn.bv_val, rs->sr_entry->e_nname.bv_val, rs->sr_entry->e_nname.bv_len );
550 op->o_req_dn = rmod->ndn;
551 op->o_req_ndn = rmod->ndn;
560 op->o_log_prefix, rmod->ndn
183 rdnval_rdn2vals( Operation *op, SlapReply *rs, struct berval *dn, struct berval *ndn, BerVarray *valsp, BerVarray *nvalsp, int *numvalsp ) argument
[all...]
/netbsd-current/external/bsd/openldap/dist/servers/slapd/back-ldap/
H A Dextended.c130 ndn = op->o_req_ndn; local
135 if ( BER_BVISNULL( &ndn ) && op->ore_reqdata != NULL ) {
174 &ndn, op->o_tmpmemctx );
184 ndn = op->o_ndn;
188 isproxy = ber_bvcmp( &ndn, &op->o_ndn );
278 op->o_tmpfree( ndn.bv_val, op->o_tmpmemctx );
/netbsd-current/external/bsd/openldap/dist/servers/slapd/back-sql/
H A Dentry-id.c120 struct berval *ndn,
145 ndn->bv_val, id == NULL ? " (no ID expected)" : "",
153 if ( ndn->bv_len > BACKSQL_MAX_DN_LEN ) {
157 ndn->bv_val, ndn->bv_len, BACKSQL_MAX_DN_LEN );
162 /* FIXME: if ndn is already mucked, we cannot check this */
164 dn_match( ndn, &bi->sql_baseObject->e_nname ) )
192 ndn->bv_val, bi->sql_id_query );
198 ndn->bv_val, bi->sql_id_query );
204 realndn = *ndn;
116 backsql_dn2id( Operation *op, SlapReply *rs, SQLHDBC dbh, struct berval *ndn, backsql_entryID *id, int matched, int muck ) argument
[all...]

Completed in 194 milliseconds

1234