9e80079370ff3b943832adc3c5ef430e64be0a0cJakub Hrozek Jakub Hrozek <jhrozek@redhat.com>
9e80079370ff3b943832adc3c5ef430e64be0a0cJakub Hrozek Copyright (C) 2011 Red Hat
9e80079370ff3b943832adc3c5ef430e64be0a0cJakub Hrozek This program is free software; you can redistribute it and/or modify
9e80079370ff3b943832adc3c5ef430e64be0a0cJakub Hrozek it under the terms of the GNU General Public License as published by
9e80079370ff3b943832adc3c5ef430e64be0a0cJakub Hrozek the Free Software Foundation; either version 3 of the License, or
9e80079370ff3b943832adc3c5ef430e64be0a0cJakub Hrozek (at your option) any later version.
9e80079370ff3b943832adc3c5ef430e64be0a0cJakub Hrozek This program is distributed in the hope that it will be useful,
9e80079370ff3b943832adc3c5ef430e64be0a0cJakub Hrozek but WITHOUT ANY WARRANTY; without even the implied warranty of
9e80079370ff3b943832adc3c5ef430e64be0a0cJakub Hrozek MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9e80079370ff3b943832adc3c5ef430e64be0a0cJakub Hrozek GNU General Public License for more details.
9e80079370ff3b943832adc3c5ef430e64be0a0cJakub Hrozek You should have received a copy of the GNU General Public License
9e80079370ff3b943832adc3c5ef430e64be0a0cJakub Hrozek along with this program. If not, see <http://www.gnu.org/licenses/>.
dea636af4d1902a081ee891f1b19ee2f8729d759Pavel Březina#include "providers/data_provider/dp_responder_iface.h"
9e80079370ff3b943832adc3c5ef430e64be0a0cJakub Hrozek const char *name)
9e80079370ff3b943832adc3c5ef430e64be0a0cJakub Hrozek req = tevent_req_create(mem_ctx, &state, struct sss_dp_req_state);
9e80079370ff3b943832adc3c5ef430e64be0a0cJakub Hrozek info = talloc_zero(state, struct sss_dp_get_autofs_info);
9e80079370ff3b943832adc3c5ef430e64be0a0cJakub Hrozek key = talloc_asprintf(state, "%d:%s@%s", type, name, dom->name);
9e80079370ff3b943832adc3c5ef430e64be0a0cJakub Hrozek ret = sss_dp_issue_request(state, rctx, key, dom, sss_dp_get_autofs_msg,
a3c8390d19593b1e5277d95bfb4ab206d4785150Nikolai Kondrashov "Could not issue DP request [%d]: %s\n",
9e80079370ff3b943832adc3c5ef430e64be0a0cJakub Hrozek info = talloc_get_type(pvt, struct sss_dp_get_autofs_info);
a3c8390d19593b1e5277d95bfb4ab206d4785150Nikolai Kondrashov DEBUG(SSSDBG_CRIT_FAILURE, "Out of memory?!\n");
9e80079370ff3b943832adc3c5ef430e64be0a0cJakub Hrozek /* create the message */
a3c8390d19593b1e5277d95bfb4ab206d4785150Nikolai Kondrashov "Creating autofs request for [%s][%u][%s]\n",
a3c8390d19593b1e5277d95bfb4ab206d4785150Nikolai Kondrashov DEBUG(SSSDBG_CRIT_FAILURE, "Failed to build message\n");