• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/samba-3.5.8/source3/lib/ldb/modules/

Lines Matching refs:ac

187 	struct map_context *ac;
189 ac = talloc_get_type(handle->private_data, struct map_context);
191 ldb_set_timeout_from_prev_req(ac->module->ldb, ac->orig_req, ac->remote_req);
193 ac->step = MAP_ADD_REMOTE;
198 return ldb_next_remote_request(ac->module, ac->remote_req);
204 struct map_context *ac;
206 ac = talloc_get_type(handle->private_data, struct map_context);
208 ldb_set_timeout_from_prev_req(ac->module->ldb, ac->orig_req, ac->local_req);
210 ac->step = MAP_ADD_LOCAL;
215 return ldb_next_request(ac->module, ac->local_req);
223 struct map_context *ac;
247 ac = talloc_get_type(h->private_data, struct map_context);
250 ac->local_req = talloc(ac, struct ldb_request);
251 if (ac->local_req == NULL) {
255 *(ac->local_req) = *req; /* copy the request */
257 ac->local_req->context = NULL;
258 ac->local_req->callback = NULL;
261 ac->remote_req = talloc(ac, struct ldb_request);
262 if (ac->remote_req == NULL) {
266 *(ac->remote_req) = *req; /* copy the request */
268 ac->remote_req->context = NULL;
269 ac->remote_req->callback = NULL;
272 local = ldb_msg_new(ac->local_req);
279 remote = ldb_msg_new(ac->remote_req);
283 remote->dn = ldb_dn_map_local(ac->module, remote, msg->dn);
287 ac->local_req->op.add.message = local;
288 ac->remote_req->op.add.message = remote;
290 if ((local->num_elements == 0) || (!map_check_local_db(ac->module))) {
292 talloc_free(ac->local_req);
317 struct map_context *ac;
319 ac = talloc_get_type(handle->private_data, struct map_context);
321 ldb_set_timeout_from_prev_req(ac->module->ldb, ac->orig_req, ac->remote_req);
323 ac->step = MAP_MODIFY_REMOTE;
328 return ldb_next_remote_request(ac->module, ac->remote_req);
334 struct map_context *ac;
338 ac = talloc_get_type(handle->private_data, struct map_context);
340 if (ac->local_dn == NULL) {
342 msg = discard_const_p(struct ldb_message, ac->local_req->op.mod.message);
346 dn = ldb_dn_linearize(msg, ac->remote_req->op.mod.message->dn);
355 ac->local_req->operation = LDB_ADD;
356 ac->local_req->op.add.message = msg;
361 ldb_set_timeout_from_prev_req(ac->module->ldb, ac->orig_req, ac->local_req);
363 ac->step = MAP_MODIFY_LOCAL;
368 return ldb_next_request(ac->module, ac->local_req);
376 struct map_context *ac;
402 ac = talloc_get_type(h->private_data, struct map_context);
405 ac->local_req = talloc(ac, struct ldb_request);
406 if (ac->local_req == NULL) {
410 *(ac->local_req) = *req; /* copy the request */
412 ac->local_req->context = NULL;
413 ac->local_req->callback = NULL;
416 ac->remote_req = talloc(ac, struct ldb_request);
417 if (ac->remote_req == NULL) {
421 *(ac->remote_req) = *req; /* copy the request */
423 ac->remote_req->context = NULL;
424 ac->remote_req->callback = NULL;
427 local = ldb_msg_new(ac->local_req);
434 remote = ldb_msg_new(ac->remote_req);
438 remote->dn = ldb_dn_map_local(ac->module, remote, msg->dn);
442 ac->local_req->op.mod.message = local;
443 ac->remote_req->op.mod.message = remote;
445 if ((local->num_elements == 0) || (!map_check_local_db(ac->module))) {
447 talloc_free(ac->local_req);
453 ac->search_req = map_search_self_req(ac, msg->dn);
454 if (ac->search_req == NULL) {
458 ac->step = MAP_SEARCH_SELF_MODIFY;
461 return ldb_next_request(module, ac->search_req);
473 struct map_context *ac;
475 ac = talloc_get_type(handle->private_data, struct map_context);
477 ldb_set_timeout_from_prev_req(ac->module->ldb, ac->orig_req, ac->remote_req);
479 ac->step = MAP_DELETE_REMOTE;
484 return ldb_next_remote_request(ac->module, ac->remote_req);
490 struct map_context *ac;
492 ac = talloc_get_type(handle->private_data, struct map_context);
495 if (ac->local_dn == NULL) {
499 ldb_set_timeout_from_prev_req(ac->module->ldb, ac->orig_req, ac->local_req);
501 ac->step = MAP_DELETE_LOCAL;
506 return ldb_next_request(ac->module, ac->local_req);
513 struct map_context *ac;
530 ac = talloc_get_type(h->private_data, struct map_context);
533 ac->local_req = talloc(ac, struct ldb_request);
534 if (ac->local_req == NULL) {
538 *(ac->local_req) = *req; /* copy the request */
539 ac->local_req->op.del.dn = req->op.del.dn;
541 ac->local_req->context = NULL;
542 ac->local_req->callback = NULL;
545 ac->remote_req = talloc(ac, struct ldb_request);
546 if (ac->remote_req == NULL) {
550 *(ac->remote_req) = *req; /* copy the request */
551 ac->remote_req->op.del.dn = ldb_dn_map_local(module, ac->remote_req, req->op.del.dn);
554 if (!map_check_local_db(ac->module)) {
559 ac->remote_req->context = NULL;
560 ac->remote_req->callback = NULL;
563 ac->search_req = map_search_self_req(ac, req->op.del.dn);
564 if (ac->search_req == NULL) {
570 ac->step = MAP_SEARCH_SELF_DELETE;
572 return ldb_next_request(module, ac->search_req);
584 struct map_context *ac;
586 ac = talloc_get_type(handle->private_data, struct map_context);
588 ldb_set_timeout_from_prev_req(ac->module->ldb, ac->orig_req, ac->remote_req);
590 ac->step = MAP_RENAME_REMOTE;
595 return ldb_next_remote_request(ac->module, ac->remote_req);
601 struct map_context *ac;
603 ac = talloc_get_type(handle->private_data, struct map_context);
605 ldb_set_timeout_from_prev_req(ac->module->ldb, ac->orig_req, ac->down_req);
607 ac->step = MAP_RENAME_FIXUP;
612 return ldb_next_request(ac->module, ac->down_req);
618 struct map_context *ac;
620 ac = talloc_get_type(handle->private_data, struct map_context);
623 if (ac->local_dn == NULL) {
627 ldb_set_timeout_from_prev_req(ac->module->ldb, ac->orig_req, ac->local_req);
629 ac->step = MAP_RENAME_LOCAL;
634 return ldb_next_request(ac->module, ac->local_req);
641 struct map_context *ac;
665 ac = talloc_get_type(h->private_data, struct map_context);
668 ac->local_req = talloc(ac, struct ldb_request);
669 if (ac->local_req == NULL) {
673 *(ac->local_req) = *req; /* copy the request */
674 ac->local_req->op.rename.olddn = req->op.rename.olddn;
675 ac->local_req->op.rename.newdn = req->op.rename.newdn;
677 ac->local_req->context = NULL;
678 ac->local_req->callback = NULL;
681 ac->remote_req = talloc(ac, struct ldb_request);
682 if (ac->remote_req == NULL) {
686 *(ac->remote_req) = *req; /* copy the request */
687 ac->remote_req->op.rename.olddn = ldb_dn_map_local(module, ac->remote_req, req->op.rename.olddn);
688 ac->remote_req->op.rename.newdn = ldb_dn_map_local(module, ac->remote_req, req->op.rename.newdn);
690 ac->remote_req->context = NULL;
691 ac->remote_req->callback = NULL;
694 if (!map_check_local_db(ac->module)) {
701 ac->down_req = map_build_fixup_req(ac, req->op.rename.newdn, ac->remote_req->op.rename.newdn);
702 if (ac->down_req == NULL) {
707 ac->search_req = map_search_self_req(ac, req->op.rename.olddn);
708 if (ac->search_req == NULL) {
714 ac->step = MAP_SEARCH_SELF_RENAME;
716 return ldb_next_request(module, ac->search_req);