summaryrefslogtreecommitdiffstats
path: root/src/responder/ifp/ifpsrv.c
diff options
context:
space:
mode:
authorPavel Březina <pbrezina@redhat.com>2014-05-22 19:01:35 +0200
committerJakub Hrozek <jhrozek@redhat.com>2014-05-28 16:40:59 +0200
commitd387c4608dbd3ca056e18e85313ef51aac146fd2 (patch)
treee45cc93b0055b8747f2a368bf486325dbeb0fb97 /src/responder/ifp/ifpsrv.c
parent590582be38cdbfde387fcc57df92903d48c5a083 (diff)
downloadsssd-d387c4608dbd3ca056e18e85313ef51aac146fd2.tar.gz
sssd-d387c4608dbd3ca056e18e85313ef51aac146fd2.tar.xz
sssd-d387c4608dbd3ca056e18e85313ef51aac146fd2.zip
IFP: Implement domain getters
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Diffstat (limited to 'src/responder/ifp/ifpsrv.c')
-rw-r--r--src/responder/ifp/ifpsrv.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/responder/ifp/ifpsrv.c b/src/responder/ifp/ifpsrv.c
index 2cffe6987..3e7d0dff6 100644
--- a/src/responder/ifp/ifpsrv.c
+++ b/src/responder/ifp/ifpsrv.c
@@ -73,6 +73,24 @@ struct infopipe_iface ifp_iface = {
.FindDomainByName = ifp_find_domain_by_name,
};
+struct infopipe_domain ifp_domain = {
+ { &infopipe_domain_meta, 0 },
+ .infopipe_domain_get_name = ifp_dom_get_name,
+ .infopipe_domain_get_provider = ifp_dom_get_provider,
+ .infopipe_domain_get_primary_servers = ifp_dom_get_primary_servers,
+ .infopipe_domain_get_backup_servers = ifp_dom_get_backup_servers,
+ .infopipe_domain_get_min_id = ifp_dom_get_min_id,
+ .infopipe_domain_get_max_id = ifp_dom_get_max_id,
+ .infopipe_domain_get_realm = ifp_dom_get_realm,
+ .infopipe_domain_get_forest = ifp_dom_get_forest,
+ .infopipe_domain_get_login_format = ifp_dom_get_login_format,
+ .infopipe_domain_get_fully_qualified_name_format = ifp_dom_get_fqdn_format,
+ .infopipe_domain_get_enumerable = ifp_dom_get_enumerable,
+ .infopipe_domain_get_use_fully_qualified_names = ifp_dom_get_use_fqdn,
+ .infopipe_domain_get_subdomain = ifp_dom_get_subdomain,
+ .infopipe_domain_get_parent_domain = ifp_dom_get_parent_domain
+};
+
struct sysbus_iface {
const char *path;
struct sbus_vtable *iface_vtable;
@@ -80,6 +98,7 @@ struct sysbus_iface {
static struct sysbus_iface ifp_ifaces[] = {
{ INFOPIPE_PATH, &ifp_iface.vtable },
+ { INFOPIPE_DOMAIN_PATH, &ifp_domain.vtable },
{ NULL, NULL },
};