/macosx-10.10/OpenLDAP-499.27/OpenLDAP/servers/slapd/back-meta/ |
H A D | dncache.c | 93 struct berval *ndn ) 100 assert( ndn != NULL ); 102 tmp_entry.dn = *ndn; 137 struct berval *ndn, 146 assert( ndn != NULL ); 157 tmp_entry.dn = *ndn; 168 entry = ch_malloc( sizeof( metadncacheentry_t ) + ndn->bv_len + 1 ); 174 entry->dn.bv_len = ndn->bv_len; 176 AC_MEMCPY( entry->dn.bv_val, ndn->bv_val, ndn 135 meta_dncache_update_entry( metadncache_t *cache, struct berval *ndn, int target ) argument [all...] |
H A D | candidates.c | 56 meta_subtree_match( metatarget_t *mt, struct berval *ndn, int scope ) argument 63 if ( dnIsSuffix( ndn, &ms->ms_dn ) ) { 69 if ( dnIsSuffix( ndn, &ms->ms_dn ) && 70 ( ndn->bv_len > ms->ms_dn.bv_len || scope != LDAP_SCOPE_BASE ) ) 78 if ( regexec( &ms->ms_regex, ndn->bv_val, 0, NULL, 0 ) == 0 ) { 96 struct berval *ndn, 100 int d = ndn->bv_len - mt->mt_nsuffix.bv_len; 103 if ( !dnIsSuffix( ndn, &mt->mt_nsuffix ) ) { 119 int match = ( meta_subtree_match( mt, ndn, scope ) != NULL ); 144 rdn.bv_val = ndn 94 meta_back_is_candidate( metatarget_t *mt, struct berval *ndn, int scope ) argument [all...] |
H A D | back-meta.h | 614 struct berval *ndn, 620 struct berval *ndn ); 651 struct berval *ndn ); 656 struct berval *ndn, 662 struct berval *ndn );
|
/macosx-10.10/OpenLDAP-499.27/OpenLDAP/servers/slapd/ |
H A D | slapdn.c | 52 ndn = BER_BVNULL; local 62 rc = dnNormalize( 0, NULL, NULL, &dn, &ndn, NULL ); 66 rc = dnPrettyNormal( NULL, &dn, &pdn, &ndn, NULL ); 86 printf( "%s\n", ndn.bv_val ); 94 ndn.bv_val, pdn.bv_val ); 98 ch_free( ndn.bv_val );
|
H A D | frontend.c | 49 struct berval *ndn, 59 op->o_bd = select_backend( ndn, 0 ); 62 rc = op->o_bd->be_fetch( op, ndn, oc, at, rw, e ); 47 fe_entry_get_rw( Operation *op, struct berval *ndn, ObjectClass *oc, AttributeDescription *at, int rw, Entry **e ) argument
|
H A D | slapacl.c | 135 struct berval ndn; local 137 rc = dnNormalize( 0, NULL, NULL, &authcDN, &ndn, NULL ); 146 authcDN = ndn; 169 struct berval ndn; local 171 rc = dnNormalize( 0, NULL, NULL, &authzDN, &ndn, NULL ); 180 authzDN = ndn;
|
H A D | acl.c | 763 struct berval ndn, selfndn; local 773 ndn = e->e_nname; 777 ndn = *opndn; 782 if ( BER_BVISEMPTY( &ndn ) ) { 785 dnParent( &ndn, &ndn ); 788 if ( BER_BVISEMPTY( &ndn ) || !dn_match( &ndn, &selfndn ) ) 970 struct berval ndn; local 981 ndn 1215 struct berval ndn; local 1538 struct berval ndn; local 1557 struct berval ndn = BER_BVNULL; local 2334 struct berval ndn; local 2378 struct berval subjdn, ndn = BER_BVNULL; local [all...] |
H A D | limits.c | 98 struct berval *ndn = ndns[isthis]; local 103 if ( BER_BVISEMPTY( ndn ) ) { 108 ndn = &empty_dn; 115 &lm[0]->lm_pat, ndn, 122 if ( dn_match( &lm[0]->lm_pat, ndn ) ) { 133 /* ndn shorter than lm_pat */ 134 if ( ndn->bv_len < lm[0]->lm_pat.bv_len ) { 137 d = ndn->bv_len - lm[0]->lm_pat.bv_len; 146 if ( !DN_SEPARATOR( ndn->bv_val[d - 1] ) ) { 151 /* check that ndn end [all...] |
H A D | passwd.c | 64 struct berval dn = BER_BVNULL, ndn = BER_BVNULL; local 129 rs->sr_err = dnPrettyNormal( NULL, &id, &dn, &ndn, op->o_tmpmemctx ); 137 op->o_req_ndn = ndn; 142 ber_dupbv_x( &ndn, &op->o_ndn, op->o_tmpmemctx ); 144 op->o_req_ndn = ndn; 464 if ( !BER_BVISNULL( &ndn ) ) { 465 op->o_tmpfree( ndn.bv_val, op->o_tmpmemctx );
|
/macosx-10.10/OpenLDAP-499.27/OpenLDAP/servers/slapd/slapi/ |
H A D | slapi_dn.c | 39 BER_BVZERO( &sdn->ndn ); 61 slapi_ch_free_string( &sdn->ndn.bv_val ); 78 return sdn->ndn.bv_val; 83 if ( BER_BVISNULL( &sdn->ndn ) ) { 85 (struct berval *)&sdn->dn, (struct berval *)&sdn->ndn, NULL ); 89 return sdn->ndn.bv_val; 100 Slapi_DN *slapi_sdn_new_ndn_byval( const char *ndn ) 105 return slapi_sdn_set_ndn_byval( sdn, ndn ); 116 Slapi_DN *slapi_sdn_new_ndn_byref( const char *ndn ) 121 return slapi_sdn_set_ndn_byref( sdn, ndn ); [all...] |
/macosx-10.10/OpenLDAP-499.27/OpenLDAP/servers/slapd/back-monitor/ |
H A D | cache.c | 145 struct berval *ndn, 151 assert( ndn != NULL ); 156 tmp_mc.mc_ndn = *ndn; 184 struct berval *ndn, 191 assert( ndn != NULL ); 196 dnParent( ndn, &pndn ); 201 tmp_mc.mc_ndn = *ndn; 242 ndn->bv_val, 0, 0 ); 253 tmp_mc.mc_ndn = *ndn; 293 struct berval *ndn, 143 monitor_cache_get( monitor_info_t *mi, struct berval *ndn, Entry **ep ) argument 182 monitor_cache_remove( monitor_info_t *mi, struct berval *ndn, Entry **ep ) argument 290 monitor_cache_dn2entry( Operation *op, SlapReply *rs, struct berval *ndn, Entry **ep, Entry **matched ) argument [all...] |
H A D | proto-back-monitor.h | 54 struct berval *ndn, 59 struct berval *ndn, 65 struct berval *ndn, 114 struct berval *ndn, 155 struct berval *ndn )); 184 struct berval *ndn, 208 struct berval *ndn )); 211 struct berval *ndn, 219 struct berval *ndn, 226 struct berval *ndn )); [all...] |
H A D | init.c | 589 struct berval ndn = BER_BVNULL; local 626 if ( monitor_search2ndn( nbase, scope, filter, &ndn ) ) { 638 if ( monitor_cache_get( mi, &ndn, &e_parent ) != 0 ) { 643 ndn.bv_val, 0, 0 ); 728 if ( !BER_BVISNULL( &ndn ) ) { 729 ch_free( ndn.bv_val ); 807 struct berval *ndn = op->o_callback->sc_private; local 809 if ( !BER_BVISNULL( ndn ) ) { 811 ch_free( ndn->bv_val ); 812 BER_BVZERO( ndn ); 942 struct berval ndn = BER_BVNULL; local 1131 monitor_back_register_entry_callback( struct berval *ndn, monitor_callback_t *cb, struct berval *nbase, int scope, struct berval *filter ) argument 1254 struct berval ndn = BER_BVNULL; local 1398 struct berval ndn = BER_BVNULL; local 1573 monitor_back_unregister_entry_callback( struct berval *ndn, monitor_callback_t *cb, struct berval *nbase, int scope, struct berval *filter ) argument 1604 monitor_back_get_subsys_by_dn( struct berval *ndn, int sub ) argument 2092 ndn; local [all...] |
H A D | back-monitor.h | 268 struct berval *ndn, Entry *, Entry ** ); 278 typedef int (monitor_cbfunc)( struct berval *ndn, monitor_callback_t *cb, 281 typedef int (monitor_cbafunc)( struct berval *ndn, Attribute *a, 288 monitor_subsys_t * (*get_subsys_by_dn)( struct berval *ndn, int sub ); 303 int (*unregister_entry)( struct berval *ndn );
|
/macosx-10.10/OpenLDAP-499.27/OpenLDAP/servers/slapd/overlays/ |
H A D | rwmdn.c | 40 * massages "in" and normalizes it into "ndn" 42 * "ndn" may be untouched if no massaging occurred and its value was not null 48 struct berval *ndn ) 59 if ( mdn.bv_val == in->bv_val && !BER_BVISNULL( ndn ) ) { 63 rc = dnNormalize( 0, NULL, NULL, &mdn, ndn, NULL ); 106 * massages "in" and prettifies and normalizes it into "pdn" and "ndn" 109 * "ndn" may be untouched if no massaging occurred and its value was not null; 110 * if no massage occurred and "ndn" value was not null, it is filled 111 * with the normaized value of "pdn", much like ndn = dnNormalize( pdn ) 118 struct berval *ndn ) [all...] |
H A D | unique.c | 48 struct berval ndn; member in struct:unique_domain_uri_s 70 struct berval *ndn; member in struct:unique_counter_s 143 ch_free ( uri->ndn.bv_val ); 200 &uri->ndn, 219 if ( !dnIsSuffix ( &uri->ndn, &be->be_nsuffix[0] ) ) { 413 &legacy->uri->ndn ); 421 ch_free ( legacy->uri->ndn.bv_val ); 423 BER_BVZERO( &legacy->uri->ndn ); 469 ch_free ( legacy->uri->ndn.bv_val ); 471 legacy->uri->ndn [all...] |
H A D | rwmmap.c | 900 ndn = BER_BVNULL; local 951 ndn = olddn; 953 &dn, &ndn ); 998 ludp->lud_dn = ndn.bv_val; 1001 ch_free( ndn.bv_val ); 1059 ndn = BER_BVNULL; local 1095 ndn = (*pa_nvals)[i]; 1096 rc = rwm_dn_massage_pretty_normalize( &dc, &in[i], &dn, &ndn ); 1101 ndn = in[i]; 1102 rc = rwm_dn_massage_normalize( &dc, &in[i], &ndn ); 1250 struct berval pdn, ndn = BER_BVNULL; local [all...] |
H A D | rwm.h | 103 int rwm_dn_massage_normalize( dncookie *dc, struct berval *in, struct berval *ndn ); 104 int rwm_dn_massage_pretty_normalize( dncookie *dc, struct berval *in, struct berval *pdn, struct berval *ndn );
|
/macosx-10.10/OpenLDAP-499.27/OpenLDAP/contrib/slapd-modules/allop/ |
H A D | allop.c | 74 ndn; local 98 BER_BVZERO( &ndn ); 101 ber_str2bv( "", 0, 1, &ndn ); 107 rc = dnNormalize( 0, NULL, NULL, &dn, &ndn, NULL ); 115 if ( BER_BVISNULL( &ndn ) ) { 132 ao->ao_ndn = ndn;
|
/macosx-10.10/OpenLDAP-499.27/OpenLDAP/contrib/slapd-modules/samba4/ |
H A D | pguid.c | 201 struct berval ndn; member in struct:pguid_mod_t 257 mod->ndn.bv_len = rs->sr_entry->e_nname.bv_len; 258 mod->ndn.bv_val = (char *)&mod[1]; 260 mod->pguid.bv_val = (char *)&mod->ndn.bv_val[mod->ndn.bv_len + 1]; 261 lutil_strncopy( mod->ndn.bv_val, rs->sr_entry->e_nname.bv_val, rs->sr_entry->e_nname.bv_len ); 353 op->o_req_dn = pmod->ndn; 354 op->o_req_ndn = pmod->ndn; 361 op->o_log_prefix, pmod->ndn.bv_val, 0 ); 366 op->o_log_prefix, pmod->ndn [all...] |
H A D | vernum.c | 188 struct berval ndn; member in struct:vernum_mod_t 222 mod->ndn.bv_len = rs->sr_entry->e_nname.bv_len; 223 mod->ndn.bv_val = (char *)&mod[1]; 224 lutil_strncopy( mod->ndn.bv_val, rs->sr_entry->e_nname.bv_val, rs->sr_entry->e_nname.bv_len ); 319 op->o_req_dn = rmod->ndn; 320 op->o_req_ndn = rmod->ndn; 329 op->o_log_prefix, rmod->ndn.bv_val, 0 ); 334 op->o_log_prefix, rmod->ndn.bv_val, rs2.sr_err );
|
H A D | rdnval.c | 182 struct berval *ndn, 208 if ( ldap_bv2rdn_x( ndn, &nrdn, 214 op->o_log_prefix, ndn->bv_val, 0 ); 406 struct berval ndn; member in struct:rdnval_mod_t 453 mod->ndn.bv_len = rs->sr_entry->e_nname.bv_len; 454 mod->ndn.bv_val = (char *)&mod[1]; 455 lutil_strncopy( mod->ndn.bv_val, rs->sr_entry->e_nname.bv_val, rs->sr_entry->e_nname.bv_len ); 548 op->o_req_dn = rmod->ndn; 549 op->o_req_ndn = rmod->ndn; 558 op->o_log_prefix, rmod->ndn 178 rdnval_rdn2vals( Operation *op, SlapReply *rs, struct berval *dn, struct berval *ndn, BerVarray *valsp, BerVarray *nvalsp, int *numvalsp ) argument [all...] |
/macosx-10.10/OpenLDAP-499.27/OpenLDAP/servers/slapd/back-ldap/ |
H A D | extended.c | 125 ndn = op->o_req_ndn; local 130 if ( BER_BVISNULL( &ndn ) && op->ore_reqdata != NULL ) { 169 &ndn, op->o_tmpmemctx ); 179 ndn = op->o_ndn; 183 isproxy = ber_bvcmp( &ndn, &op->o_ndn ); 269 op->o_tmpfree( ndn.bv_val, op->o_tmpmemctx );
|
/macosx-10.10/OpenLDAP-499.27/OpenLDAP/servers/slapd/back-sql/ |
H A D | entry-id.c | 115 struct berval *ndn, 140 ndn->bv_val, id == NULL ? " (no ID expected)" : "", 148 if ( ndn->bv_len > BACKSQL_MAX_DN_LEN ) { 152 ndn->bv_val, ndn->bv_len, BACKSQL_MAX_DN_LEN ); 157 /* FIXME: if ndn is already mucked, we cannot check this */ 159 dn_match( ndn, &bi->sql_baseObject->e_nname ) ) 187 ndn->bv_val, bi->sql_id_query, 0 ); 193 ndn->bv_val, bi->sql_id_query, 0 ); 199 realndn = *ndn; 111 backsql_dn2id( Operation *op, SlapReply *rs, SQLHDBC dbh, struct berval *ndn, backsql_entryID *id, int matched, int muck ) argument [all...] |
/macosx-10.10/OpenLDAP-499.27/OpenLDAP/servers/slapd/back-bdb/ |
H A D | id2entry.c | 316 struct berval *ndn, 333 "=> bdb_entry_get: ndn: \"%s\"\n", ndn->bv_val, 0, 0 ); 360 rc = bdb_dn2entry( op, txn, ndn, &ei, 0, &lock ); 382 ndn->bv_val, 0, 0 ); 388 ndn->bv_val, 0, 0 ); 314 bdb_entry_get( Operation *op, struct berval *ndn, ObjectClass *oc, AttributeDescription *at, int rw, Entry **ent ) argument
|