Lines Matching refs:op
193 ndn2path( Operation *op, struct berval *dn, struct berval *res, int empty_ok )
195 BackendDB *be = op->o_bd;
538 Operation *op,
548 if ( op->o_abandon )
632 Operation *op,
647 if ( op->o_abandon && op->o_tag != LDAP_REQ_BIND )
693 Operation *op,
701 dnParent( &op->o_req_dn, &pdn );
702 dnParent( &op->o_req_ndn, &pndn );
703 rc = ndn2path( op, &op->o_req_ndn, &path, 0 );
708 rc = ldif_read_entry( op, path.bv_val, &pdn, &pndn, entryp, text );
737 ldif_send_entry( Operation *op, SlapReply *rs, Entry *e, int scope )
745 &((struct ldif_info *) op->o_bd->be_private)->li_tool;
765 else if ( !get_manageDSAit( op ) && is_entry_referral( e ) ) {
770 BerVarray refs = get_entry_referrals( op, e );
773 rc = send_search_reference( op, rs );
780 else if ( test_filter( op, e, op->ors_filter ) == LDAP_COMPARE_TRUE ) {
782 rs->sr_attrs = op->ors_attrs;
788 rc = send_search_entry( op, rs );
802 Operation *op,
817 struct ldif_info *li = (struct ldif_info *) op->o_bd->be_private;
908 * op, rs operation and reply. rs == NULL for slap tools.
915 Operation *op,
940 rc = ldif_send_entry( op, rs, e, scope );
950 rc = ldif_readdir( op, rs, path, &list, &fpath.bv_len );
972 rc = ldif_read_entry( op, fpath.bv_val, &dn, &ndn,
976 rc = ldif_search_entry( op, rs, e, scope, &fpath );
1009 search_tree( Operation *op, SlapReply *rs )
1016 (void) ndn2path( op, &op->o_req_ndn, &path, 1 );
1017 if ( !BER_BVISEMPTY( &op->o_req_ndn ) ) {
1019 dnParent( &op->o_req_dn, &pdn );
1020 dnParent( &op->o_req_ndn, &pndn );
1021 rc = ldif_read_entry( op, path.bv_val, &pdn, &pndn, &e,
1025 rc = ldif_search_entry( op, rs, e, op->ors_scope, &path );
1044 Operation *op,
1050 struct ldif_info *li = (struct ldif_info *) op->o_bd->be_private;
1057 if ( op->o_abandon )
1060 rc = ndn2path( op, ndn, dnpath, 0 );
1090 rc = ldif_read_entry( op, ppath.bv_val, NULL, NULL,
1091 (op->o_tag != LDAP_REQ_ADD || get_manageDSAit( op )
1104 *text = op->o_tag == LDAP_REQ_MODDN
1115 *text = op->o_tag == LDAP_REQ_MODDN
1143 Operation *op,
1151 if (!acl_check_modlist(op, entry, modlist)) {
1164 get_permissiveModify(op),
1171 get_permissiveModify(op),
1178 get_permissiveModify(op),
1185 mods, get_permissiveModify(op),
1193 get_permissiveModify(op),
1205 get_permissiveModify(op),
1221 get_permissiveModify(op),
1236 rc = entry_schema_check( op, entry, NULL, 0, 0, NULL,
1245 ldif_back_referrals( Operation *op, SlapReply *rs )
1247 struct ldif_info *li = (struct ldif_info *) op->o_bd->be_private;
1248 struct berval path, dn = op->o_req_dn, ndn = op->o_req_ndn;
1254 min_dnlen = op->o_bd->be_nsuffix[0].bv_len;
1259 if ( ndn2path( op, &ndn, &path, 0 ) != LDAP_SUCCESS ) {
1263 entryp = get_manageDSAit( op ) ? NULL : &entry;
1269 rc = ldif_read_entry( op, path.bv_val, &dn, &ndn,
1289 (unsigned long) op->o_tag, op->o_req_dn.bv_val, entry->e_dn );
1291 ref = get_entry_referrals( op, entry );
1292 rs->sr_ref = referral_rewrite( ref, &entry->e_name, &op->o_req_dn,
1293 op->o_tag == LDAP_REQ_SEARCH ?
1294 op->ors_scope : LDAP_SCOPE_DEFAULT );
1301 send_ldap_result( op, rs );
1321 ldif_back_bind( Operation *op, SlapReply *rs )
1329 switch ( be_rootdn_bind( op, rs ) ) {
1339 li = (struct ldif_info *) op->o_bd->be_private;
1341 return_val = get_entry(op, &entry, NULL, NULL);
1357 if(slap_passwd_check(op, entry, a, &op->oq_bind.rb_cred,
1370 send_ldap_result( op, rs );
1377 ldif_back_search( Operation *op, SlapReply *rs )
1379 struct ldif_info *li = (struct ldif_info *) op->o_bd->be_private;
1382 rs->sr_err = search_tree( op, rs );
1384 send_ldap_result(op, rs);
1390 ldif_back_add( Operation *op, SlapReply *rs )
1392 struct ldif_info *li = (struct ldif_info *) op->o_bd->be_private;
1393 Entry * e = op->ora_e;
1401 rc = entry_schema_check( op, e, NULL, 0, 1, NULL,
1406 rc = slap_add_opattrs( op, &rs->sr_text, textbuf, sizeof( textbuf ), 1 );
1412 rc = ldif_prepare_create( op, e, &path, &parentdir, &rs->sr_text );
1415 rc = ldif_write_entry( op, e, &path, parentdir, &rs->sr_text );
1429 send_ldap_result( op, rs );
1430 slap_graduate_commit_csn( op );
1436 ldif_back_modify( Operation *op, SlapReply *rs )
1438 struct ldif_info *li = (struct ldif_info *) op->o_bd->be_private;
1439 Modifications * modlst = op->orm_modlist;
1445 slap_mods_opattrs( op, &op->orm_modlist, 1 );
1449 rc = get_entry( op, &entry, &path, &rs->sr_text );
1451 rc = apply_modify_to_entry( entry, modlst, op, rs, textbuf );
1454 rc = ldif_write_entry( op, entry, &path, NULL, &rs->sr_text );
1465 send_ldap_result( op, rs );
1466 slap_graduate_commit_csn( op );
1472 ldif_back_delete( Operation *op, SlapReply *rs )
1474 struct ldif_info *li = (struct ldif_info *) op->o_bd->be_private;
1478 if ( BER_BVISEMPTY( &op->o_csn )) {
1484 slap_get_csn( op, &csn, 1 );
1489 if ( op->o_abandon ) {
1494 rc = ndn2path( op, &op->o_req_ndn, &path, 0 );
1537 send_ldap_result( op, rs );
1538 slap_graduate_commit_csn( op );
1545 Operation *op,
1551 struct ldif_info *li = (struct ldif_info *) op->o_bd->be_private;
1560 rc = ldif_prepare_create( op, entry, &newpath,
1561 op->orr_newSup ? &parentdir : NULL, text );
1567 rc = ldif_write_entry( op, entry, &newpath, parentdir, text );
1612 s, op->o_req_dn.bv_val, entry->e_dn );
1627 ldif_back_modrdn( Operation *op, SlapReply *rs )
1629 struct ldif_info *li = (struct ldif_info *) op->o_bd->be_private;
1636 slap_mods_opattrs( op, &op->orr_modlist, 1 );
1640 rc = get_entry( op, &entry, &old_path, &rs->sr_text );
1643 if ( op->oq_modrdn.rs_newSup != NULL ) {
1644 p_dn = *op->oq_modrdn.rs_newSup;
1648 build_new_dn( &new_dn, &p_dn, &op->oq_modrdn.rs_newrdn, NULL );
1657 rc = apply_modify_to_entry( entry, op->orr_modlist, op, rs, textbuf );
1659 rc = ldif_move_entry( op, entry, same_ndn, &old_path,
1668 send_ldap_result( op, rs );
1669 slap_graduate_commit_csn( op );
1678 Operation *op,
1685 struct ldif_info *li = (struct ldif_info *) op->o_bd->be_private;
1686 struct berval op_dn = op->o_req_dn, op_ndn = op->o_req_ndn;
1693 op->o_req_dn = *ndn;
1694 op->o_req_ndn = *ndn;
1695 rc = get_entry( op, e, NULL, NULL );
1696 op->o_req_dn = op_dn;
1697 op->o_req_ndn = op_ndn;
1775 Operation op = {0};
1777 op.o_bd = be;
1778 op.o_req_dn = *be->be_suffix;
1779 op.o_req_ndn = *be->be_nsuffix;
1780 op.ors_scope = LDAP_SCOPE_SUBTREE;
1781 if ( search_tree( &op, NULL ) != LDAP_SUCCESS ) {
1810 Operation op = {0};
1812 op.o_bd = be;
1813 rc = ldif_prepare_create( &op, e, &path, &parentdir, &errmsg );
1815 rc = ldif_write_entry( &op, e, &path, parentdir, &errmsg );