d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březina Pavel Březina <pbrezina@redhat.com>
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březina Copyright (C) 2016 Red Hat
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březina This program is free software; you can redistribute it and/or modify
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březina it under the terms of the GNU General Public License as published by
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březina the Free Software Foundation; either version 3 of the License, or
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březina (at your option) any later version.
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březina This program is distributed in the hope that it will be useful,
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březina but WITHOUT ANY WARRANTY; without even the implied warranty of
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březina MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březina GNU General Public License for more details.
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březina You should have received a copy of the GNU General Public License
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březina along with this program. If not, see <http://www.gnu.org/licenses/>.
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březina#include "providers/data_provider/dp_private.h"
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březina#include "providers/data_provider/dp_responder_iface.h"
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březina#define DP_PATH "/org/freedesktop/sssd/dataprovider"
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březinaerrno_t dp_register_sbus_interface(struct sbus_connection *conn,
dea636af4d1902a081ee891f1b19ee2f8729d759Pavel Březinaerrno_t dp_get_account_info_handler(struct sbus_request *sbus_req,
dea636af4d1902a081ee891f1b19ee2f8729d759Pavel Březina const char *extra);
dea636af4d1902a081ee891f1b19ee2f8729d759Pavel Březinaerrno_t dp_pam_handler(struct sbus_request *sbus_req, void *dp_cli);
dea636af4d1902a081ee891f1b19ee2f8729d759Pavel Březinaerrno_t dp_sudo_handler(struct sbus_request *sbus_req, void *dp_cli);
dea636af4d1902a081ee891f1b19ee2f8729d759Pavel Březinaerrno_t dp_host_handler(struct sbus_request *sbus_req,
dea636af4d1902a081ee891f1b19ee2f8729d759Pavel Březina const char *alias);
dea636af4d1902a081ee891f1b19ee2f8729d759Pavel Březinaerrno_t dp_autofs_handler(struct sbus_request *sbus_req,
dea636af4d1902a081ee891f1b19ee2f8729d759Pavel Březina const char *mapname);
dea636af4d1902a081ee891f1b19ee2f8729d759Pavel Březinaerrno_t dp_subdomains_handler(struct sbus_request *sbus_req,
c0f9f5a0f6d71a1596ee3cef549b4b02295313c3Jakub Hrozek * Return a domain the account belongs to.
c0f9f5a0f6d71a1596ee3cef549b4b02295313c3Jakub Hrozek * The request uses the dp_reply_std structure for reply, with the following
c0f9f5a0f6d71a1596ee3cef549b4b02295313c3Jakub Hrozek * semantics:
c0f9f5a0f6d71a1596ee3cef549b4b02295313c3Jakub Hrozek * - DP_ERR_OK - it is expected that the string message contains the domain name
c0f9f5a0f6d71a1596ee3cef549b4b02295313c3Jakub Hrozek * the entry was found in. A 'negative' reply where the
c0f9f5a0f6d71a1596ee3cef549b4b02295313c3Jakub Hrozek * request returns DP_ERR_OK, but no domain should be treated
c0f9f5a0f6d71a1596ee3cef549b4b02295313c3Jakub Hrozek * as authoritative, as if the entry does not exist.
c0f9f5a0f6d71a1596ee3cef549b4b02295313c3Jakub Hrozek * - DP_ERR_* - the string message contains error string that corresponds
c0f9f5a0f6d71a1596ee3cef549b4b02295313c3Jakub Hrozek * to the errno field in dp_reply_std().
c0f9f5a0f6d71a1596ee3cef549b4b02295313c3Jakub Hrozekerrno_t dp_get_account_domain_handler(struct sbus_request *sbus_req,
c0f9f5a0f6d71a1596ee3cef549b4b02295313c3Jakub Hrozek const char *filter);
586fa3571753ab4a607d40fc31503fc0e8effd70Pavel Březina/* org.freedesktop.sssd.DataProvider.Backend */
586fa3571753ab4a607d40fc31503fc0e8effd70Pavel Březinaerrno_t dp_backend_is_online(struct sbus_request *sbus_req,
586fa3571753ab4a607d40fc31503fc0e8effd70Pavel Březina const char *domain);
bf83a0faacf16196ab9bd37dcf6190b4209ccaf7Pavel Březina/* org.freedesktop.sssd.DataProvider.Failover */
bf83a0faacf16196ab9bd37dcf6190b4209ccaf7Pavel Březinaerrno_t dp_failover_list_services(struct sbus_request *sbus_req,
bf83a0faacf16196ab9bd37dcf6190b4209ccaf7Pavel Březina const char *domname);
bd4c2ed5aec7f57ea04500f0e43f151eedfdde45Pavel Březinaerrno_t dp_failover_active_server(struct sbus_request *sbus_req,
bd4c2ed5aec7f57ea04500f0e43f151eedfdde45Pavel Březinaerrno_t dp_failover_list_servers(struct sbus_request *sbus_req,
e737cdfa225e0d455c0e574bcb82c2cc16a17d9dPavel Březina/* org.freedesktop.sssd.DataProvider.AccessControl */
e737cdfa225e0d455c0e574bcb82c2cc16a17d9dPavel Březinaerrno_t dp_access_control_refresh_rules_handler(struct sbus_request *sbus_req,
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březina#endif /* DP_IFACE_H_ */