/netbsd/external/bsd/openldap/dist/servers/slapd/ |
H A D | delete.c | 70 rs->sr_err = dnPrettyNormal( NULL, &dn, &op->o_req_dn, &op->o_req_ndn, in do_delete() 82 if( op->o_req_ndn.bv_len == 0 ) { in do_delete() 90 } else if ( bvmatch( &op->o_req_ndn, &frontendDB->be_schemandn ) ) { in do_delete() 113 op->o_tmpfree( op->o_req_ndn.bv_val, op->o_tmpmemctx ); in do_delete() 128 op->o_bd = select_backend( &op->o_req_ndn, 1 ); in fe_op_delete() 150 op->o_bd = select_backend( &op->o_req_ndn, 0 ); in fe_op_delete() 189 org_req_ndn = op->o_req_ndn; in fe_op_delete() 201 if ( !be_issuffix( op->o_bd, &op->o_req_ndn )) { in fe_op_delete() 204 dnParent( &op->o_req_ndn, &pdn ); in fe_op_delete() 206 op->o_req_ndn = pdn; in fe_op_delete() [all …]
|
H A D | modrdn.c | 204 op->o_tmpfree( op->o_req_ndn.bv_val, op->o_tmpmemctx ); in do_modrdn() 229 if( op->o_req_ndn.bv_len == 0 ) { in fe_op_modrdn() 248 dnParent( &op->o_req_ndn, &dest_pndn ); in fe_op_modrdn() 253 if ( diff > 0 ? dnIsSuffix( &dest_ndn, &op->o_req_ndn ) in fe_op_modrdn() 267 op->o_bd = select_backend( &op->o_req_ndn, 1 ); in fe_op_modrdn() 289 op->o_bd = select_backend( &op->o_req_ndn, 0 ); in fe_op_modrdn() 337 org_req_ndn = op->o_req_ndn; in fe_op_modrdn() 348 if ( !be_issuffix( op->o_bd, &op->o_req_ndn )) { in fe_op_modrdn() 351 dnParent( &op->o_req_ndn, &pdn ); in fe_op_modrdn() 353 op->o_req_ndn = pdn; in fe_op_modrdn() [all …]
|
H A D | compare.c | 90 rs->sr_err = dnPrettyNormal( NULL, &dn, &op->o_req_dn, &op->o_req_ndn, in do_compare() 140 op->o_tmpfree( op->o_req_ndn.bv_val, op->o_tmpmemctx ); in do_compare() 155 if( strcasecmp( op->o_req_ndn.bv_val, LDAP_ROOT_DSE ) == 0 ) { in fe_op_compare() 167 } else if ( bvmatch( &op->o_req_ndn, &frontendDB->be_schemandn ) ) { in fe_op_compare() 202 op->o_bd = select_backend( &op->o_req_ndn, 0 ); in fe_op_compare() 247 rc = be_entry_get_rw( op, &op->o_req_ndn, NULL, NULL, 0, &entry ); in fe_op_compare() 276 if ( backend_access( op, NULL, &op->o_req_ndn, in fe_op_compare() 312 rs->sr_err = backend_attribute( op, NULL, &op->o_req_ndn, in fe_op_compare() 318 if ( backend_access( op, NULL, &op->o_req_ndn, in fe_op_compare()
|
H A D | search.c | 118 rs->sr_err = dnPrettyNormal( NULL, &base, &op->o_req_dn, &op->o_req_ndn, op->o_tmpmemctx ); in do_search() 282 if ( !BER_BVISNULL( &op->o_req_ndn ) ) { in do_search() 283 slap_sl_free( op->o_req_ndn.bv_val, op->o_tmpmemctx ); in do_search() 306 if ( BER_BVISEMPTY( &op->o_req_ndn ) ) { in fe_op_search() 321 } else if ( bvmatch( &op->o_req_ndn, &frontendDB->be_schemandn ) ) { in fe_op_search() 368 if( BER_BVISEMPTY( &op->o_req_ndn ) && !BER_BVISEMPTY( &default_search_nbase ) ) { in fe_op_search() 370 slap_sl_free( op->o_req_ndn.bv_val, op->o_tmpmemctx ); in fe_op_search() 373 ber_dupbv_x( &op->o_req_ndn, &default_search_nbase, op->o_tmpmemctx ); in fe_op_search() 382 op->o_bd = select_backend( &op->o_req_ndn, 1 ); in fe_op_search()
|
H A D | bind.c | 162 rs->sr_err = dnPrettyNormal( NULL, &dn, &op->o_req_dn, &op->o_req_ndn, in do_bind() 225 if( !BER_BVISNULL( &op->o_req_ndn ) ) { in do_bind() 226 slap_sl_free( op->o_req_ndn.bv_val, op->o_tmpmemctx ); in do_bind() 227 BER_BVZERO( &op->o_req_ndn ); in do_bind() 306 if ( BER_BVISEMPTY( &op->orb_cred ) || BER_BVISEMPTY( &op->o_req_ndn ) ) { in fe_op_bind() 315 } else if ( !BER_BVISEMPTY( &op->o_req_ndn ) && in fe_op_bind() 349 op->o_protocol, op->o_req_ndn.bv_val ); in fe_op_bind() 370 if ( (op->o_bd = select_backend( &op->o_req_ndn, 0 )) == NULL ) { in fe_op_bind() 472 op2.o_req_ndn = op->o_conn->c_ndn; in fe_op_lastbind() 531 ber_dupbv( &op->o_conn->c_ndn, &op->o_req_ndn ); in fe_op_bind_success()
|
H A D | saslauthz.c | 1778 if ( dn_match( &op.o_req_ndn, assertDN ) ) { in slap_sasl_match() 1805 bv.bv_len = op.o_req_ndn.bv_len; in slap_sasl_match() 1839 rc = regcomp(®, op.o_req_ndn.bv_val, in slap_sasl_match() 1880 sm.dn = &op.o_req_ndn; in slap_sasl_match() 1906 op.o_req_ndn.bv_val, op.ors_scope ); in slap_sasl_match() 1908 op.o_bd = select_backend( &op.o_req_ndn, 1 ); in slap_sasl_match() 1944 if( !BER_BVISNULL( &op.o_req_ndn ) ) slap_sl_free( op.o_req_ndn.bv_val, opx->o_tmpmemctx ); in slap_sasl_match() 2045 *sasldn = op.o_req_ndn; in slap_sasl2dn() 2046 BER_BVZERO( &op.o_req_ndn ); in slap_sasl2dn() 2072 op.o_req_ndn.bv_val, op.ors_scope ); in slap_sasl2dn() [all …]
|
H A D | passwd.c | 120 op->o_req_ndn = ndn; in passwd_extop() 121 op->o_bd = select_backend( &op->o_req_ndn, 1 ); in passwd_extop() 127 op->o_req_ndn = ndn; in passwd_extop() 149 if ( op->o_req_ndn.bv_len == 0 ) { in passwd_extop() 158 op->o_bd = select_backend( &op->o_req_ndn, 0 ); in passwd_extop() 243 rc = be_entry_get_rw( op, &op->o_req_ndn, NULL, in passwd_extop() 344 BER_BVZERO( &op->o_req_ndn ); in passwd_extop()
|
H A D | sasl.c | 230 be_isroot_dn( op->o_bd, &op->o_req_ndn )) in sasl_ap_lookup() 317 sizeof( op->o_req_ndn.bv_len ) ); in slap_auxprop_lookup() 328 sizeof( op->o_req_ndn.bv_len ) ); in slap_auxprop_lookup() 385 op->o_bd = select_backend( &op->o_req_ndn, 1 ); in slap_auxprop_lookup() 454 op->o_req_dn = op->o_req_ndn; in slap_auxprop_lookup() 560 sizeof( op.o_req_ndn.bv_len ) ); in slap_auxprop_store() 581 op.o_bd = select_backend( &op.o_req_ndn, 1 ); in slap_auxprop_store() 633 op.o_ndn = op.o_req_ndn; in slap_auxprop_store() 638 op.o_req_dn = op.o_req_ndn; in slap_auxprop_store() 1158 op->o_req_dn = op->o_req_ndn = sl->base; in slapd_rw_apply() [all …]
|
H A D | extended.c | 189 if ( !BER_BVISNULL( &op->o_req_ndn ) ) { in do_extended() 191 && op->o_req_ndn.bv_val != op->o_req_dn.bv_val ) in do_extended() 195 op->o_tmpfree( op->o_req_ndn.bv_val, op->o_tmpmemctx ); in do_extended() 197 BER_BVZERO( &op->o_req_ndn ); in do_extended()
|
/netbsd/external/bsd/openldap/dist/contrib/slapd-modules/trace/ |
H A D | trace.c | 101 BER_BVISNULL( &op->o_req_ndn ) ? "(null)" : op->o_req_ndn.bv_val, in trace_op_func() 109 BER_BVISNULL( &op->o_req_ndn ) ? "(null)" : op->o_req_ndn.bv_val ); in trace_op_func() 128 BER_BVISNULL( &op->o_req_ndn ) ? "(null)" : op->o_req_ndn.bv_val, in trace_response() 163 BER_BVISNULL( &op->o_req_ndn ) ? "(null)" : op->o_req_ndn.bv_val, in trace_response()
|
/netbsd/external/bsd/openldap/dist/contrib/slapd-modules/variant/ |
H A D | variant.c | 68 struct berval dn, *ndn = &op->o_req_ndn; in variant_build_dn() 297 "dn=%s\n", op->o_req_ndn.bv_val ); in variant_op_add() 335 "dn=%s\n", op->o_req_ndn.bv_val ); in variant_op_compare() 372 (void *)&right->o_req_ndn ); in variant_cmp_op() 391 op->o_req_ndn.bv_val ); in variant_run_mod() 446 "dn=%s\n", op->o_req_ndn.bv_val ); in variant_op_mod() 495 needle.o_req_ndn = vai->dn; in variant_op_mod() 503 ber_dupbv( &nop->o_req_ndn, &needle.o_req_ndn ); in variant_op_mod() 504 nop->o_req_dn = nop->o_req_ndn; in variant_op_mod() 517 ch_free( needle.o_req_ndn.bv_val ); in variant_op_mod() [all …]
|
/netbsd/external/bsd/openldap/dist/servers/slapd/overlays/ |
H A D | dds.c | 154 op->o_req_ndn = op->o_bd->be_nsuffix[ 0 ]; in dds_expire() 226 op->o_req_ndn = de->de_ndn; in dds_expire() 371 dnParent( &op->o_req_ndn, &p_ndn ); in dds_op_add() 851 rc = be_entry_get_rw( op, &op->o_req_ndn, in dds_op_rename() 1135 assert( !BER_BVISNULL( &op->o_req_ndn ) ); in dds_op_extended() 1722 op->o_req_ndn = op->o_bd->be_nsuffix[ 0 ]; in dds_count() 1897 op->o_log_prefix, op->o_req_ndn.bv_val ); in slap_exop_refresh() 1898 op->o_req_dn = op->o_req_ndn; in slap_exop_refresh() 1900 op->o_bd = select_backend( &op->o_req_ndn, 0 ); in slap_exop_refresh() 1928 if ( !BER_BVISNULL( &op->o_req_ndn ) ) { in slap_exop_refresh() [all …]
|
H A D | memberof.c | 381 op2.o_req_ndn = *ndn; in memberof_value_modify() 1053 &op->o_req_ndn, in memberof_op_modify() 1171 &op->o_req_ndn, in memberof_op_modify() 1321 &op->o_req_ndn ); in memberof_res_add() 1351 &op->o_req_dn, &op->o_req_ndn, in memberof_res_delete() 1362 &op->o_req_dn, &op->o_req_ndn, in memberof_res_delete() 1553 save_ndn = op->o_req_ndn; in memberof_res_modrdn() 1556 op->o_req_ndn = newNDN; in memberof_res_modrdn() 1559 op->o_req_ndn = save_ndn; in memberof_res_modrdn() 1584 &op->o_req_dn, &op->o_req_ndn, in memberof_res_modrdn() [all …]
|
H A D | seqmod.c | 52 rc = m1->mt_op->o_req_ndn.bv_len - m2->mt_op->o_req_ndn.bv_len; in sm_avl_cmp() 55 return ber_bvcmp( &m1->mt_op->o_req_ndn, &m2->mt_op->o_req_ndn ); in sm_avl_cmp()
|
/netbsd/external/bsd/openldap/dist/contrib/slapd-modules/autogroup/ |
H A D | autogroup.c | 152 o.o_req_ndn = age->age_ndn; in autogroup_add_member_to_group() 208 o.o_req_ndn = age->age_ndn; in autogroup_add_member_values_to_group() 281 o.o_req_ndn = age->age_ndn; in autogroup_delete_member_from_group() 337 o.o_req_ndn = age->age_ndn; in autogroup_delete_member_values_from_group() 516 o.o_req_ndn = agf->agf_ndn; in autogroup_add_members_from_filter() 564 o.o_req_ndn = age->age_ndn; in autogroup_add_members_from_filter() 1031 if ( dnIsSuffix( &op->o_req_ndn, &agf->agf_ndn ) ) { in autogroup_delete_entry() 1119 dnParent( &op->o_req_ndn, &pdn ); in autogroup_response() 1268 etmp.e_nname = op->o_req_ndn; in autogroup_response() 1403 etmp.e_nname = op->o_req_ndn; in autogroup_response() [all …]
|
/netbsd/external/bsd/openldap/dist/contrib/slapd-modules/allop/ |
H A D | allop.c | 176 if ( !BER_BVISEMPTY( &op->o_req_ndn ) in allop_op_search() 183 if ( !dnIsSuffix( &op->o_req_ndn, &ao->ao_ndn ) ) { in allop_op_search() 189 if ( op->o_req_ndn.bv_len != ao->ao_ndn.bv_len ) { in allop_op_search() 196 struct berval rdn = op->o_req_ndn; in allop_op_search()
|
/netbsd/external/bsd/openldap/dist/servers/slapd/back-passwd/ |
H A D | search.c | 79 if ( be_issuffix( op->o_bd, &op->o_req_ndn ) ) { in passwd_back_search() 92 e.e_nname.bv_val = ch_strdup( op->o_req_ndn.bv_val ); in passwd_back_search() 93 e.e_nname.bv_len = op->o_req_ndn.bv_len; in passwd_back_search() 198 if (! be_issuffix( op->o_bd, &op->o_req_ndn ) ) { in passwd_back_search() 199 dnParent( &op->o_req_ndn, &parent ); in passwd_back_search() 208 if( dnIsSuffix( &op->o_req_ndn, &op->o_bd->be_nsuffix[i] ) ) { in passwd_back_search()
|
/netbsd/external/bsd/openldap/dist/servers/slapd/back-dnssrv/ |
H A D | search.c | 55 if ( BER_BVISEMPTY( &op->o_req_ndn ) ) { in dnssrv_back_search() 155 if( !dn_match( &nrefdn, &op->o_req_ndn ) ) { in dnssrv_back_search() 178 e.e_nname.bv_val = ch_strdup( op->o_req_ndn.bv_val ); in dnssrv_back_search() 179 e.e_nname.bv_len = op->o_req_ndn.bv_len; in dnssrv_back_search()
|
/netbsd/external/bsd/openldap/dist/contrib/slapd-modules/rbac/ |
H A D | rbacsess.c | 260 op2.o_req_ndn = sessp->sessdn; in rbac_session_add_role() 261 op2.o_bd = select_backend( &op2.o_req_ndn, 0 ); in rbac_session_add_role() 332 op2.o_req_ndn = sessp->sessdn; in rbac_session_drop_role() 333 op2.o_bd = select_backend( &op2.o_req_ndn, 0 ); in rbac_session_drop_role() 374 op2.o_req_ndn = sessp->sessdn; in rbac_int_delete_session() 375 op2.o_bd = select_backend( &op2.o_req_ndn, 0 ); in rbac_int_delete_session() 501 op2->o_req_ndn = e->e_nname; in rbac_register_session() 608 op2.o_req_ndn = e->e_nname; in rbac_register_session2() 703 op2.o_req_ndn = tenantp->sessions_basedn; in rbac_session_byid_fake() 774 op2.o_req_ndn = tenantp->sessions_basedn; in rbac_session_byid() [all …]
|
/netbsd/external/bsd/openldap/dist/servers/slapd/back-sql/ |
H A D | modify.c | 54 op->o_req_ndn.bv_val ); in backsql_modify() 70 rs->sr_err = backsql_init_search( &bsi, &op->o_req_ndn, in backsql_modify() 81 dn_match( &op->o_req_ndn, &bsi.bsi_e->e_nname ) ) in backsql_modify()
|
H A D | delete.c | 415 op->o_req_ndn.bv_val ); in backsql_delete() 431 rs->sr_err = backsql_init_search( &bsi, &op->o_req_ndn, in backsql_delete() 441 dn_match( &op->o_req_ndn, &bsi.bsi_e->e_nname ) ) in backsql_delete() 487 rs->sr_err = backsql_has_children( op, dbh, &op->o_req_ndn ); in backsql_delete() 530 if ( !be_issuffix( op->o_bd, &op->o_req_ndn ) ) { in backsql_delete() 531 dnParent( &op->o_req_ndn, &pdn ); in backsql_delete()
|
H A D | modrdn.c | 75 rs->sr_err = backsql_init_search( &bsi, &op->o_req_ndn, in backsql_modrdn() 86 dn_match( &op->o_req_ndn, &bsi.bsi_e->e_nname ) ) in backsql_modrdn() 126 if ( backsql_has_children( op, dbh, &op->o_req_ndn ) == LDAP_COMPARE_TRUE ) { in backsql_modrdn() 147 dnParent( &op->o_req_ndn, &pndn ); in backsql_modrdn() 256 if ( newSuperior && dn_match( &op->o_req_ndn, new_npdn ) ) { in backsql_modrdn()
|
/netbsd/external/bsd/openldap/dist/servers/slapd/slapi/ |
H A D | slapi_ops.c | 303 be = select_backend( &op->o_req_ndn, 1 ); in slapi_int_set_operation_dn() 330 if ( !BER_BVISNULL( &op->o_req_ndn ) ) in slapi_int_connection_done_pb() 331 op->o_tmpfree( op->o_req_ndn.bv_val, op->o_tmpmemctx ); in slapi_int_connection_done_pb() 442 if ( pb->pb_op->ora_modlist != NULL || !BER_BVISNULL( &pb->pb_op->o_req_ndn )) { in slapi_add_internal_pb() 449 ber_dupbv( &pb->pb_op->o_req_ndn, &entry_orig->e_nname ); in slapi_add_internal_pb() 450 } else if ( pb->pb_op->ora_modlist == NULL || BER_BVISNULL( &pb->pb_op->o_req_ndn )) { in slapi_add_internal_pb() 457 ber_dupbv( &pb->pb_op->ora_e->e_nname, &pb->pb_op->o_req_ndn ); in slapi_add_internal_pb() 525 if ( BER_BVISEMPTY( &pb->pb_op->o_req_ndn ) ) { in slapi_modrdn_internal_pb() 555 if ( BER_BVISEMPTY( &pb->pb_op->o_req_ndn ) ) { in slapi_modify_internal_pb()
|
/netbsd/external/bsd/openldap/dist/contrib/slapd-modules/samba4/ |
H A D | rdnval.c | 98 && be_issuffix( op->o_bd, &op->o_req_ndn ) ) in rdnval_unique_check() 112 dnParent( &op->o_req_ndn, &op2.o_req_dn ); in rdnval_unique_check() 113 op2.o_req_ndn = op2.o_req_dn; in rdnval_unique_check() 351 dnRdn( &op->o_req_ndn, &old ); in rdnval_op_rename() 499 op->o_req_ndn = op->o_bd->be_nsuffix[ 0 ]; in rdnval_repair() 551 op->o_req_ndn = rmod->ndn; in rdnval_repair()
|
/netbsd/external/bsd/openldap/dist/servers/slapd/back-perl/ |
H A D | search.c | 47 XPUSHs(sv_2mortal(newSVpv( op->o_req_ndn.bv_val , op->o_req_ndn.bv_len))); in perl_back_search()
|