summaryrefslogtreecommitdiff
path: root/server/responder/common/responder.h
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2009-04-16 18:35:06 -0400
committerSimo Sorce <ssorce@redhat.com>2009-04-17 14:58:46 -0400
commit65951186e13fea410d087c84f7332b04d116f8fc (patch)
treeafc9a8c181d068d518e9e5f75fb7c30ff6db2f53 /server/responder/common/responder.h
parent8f209f1cee137e410386b68f82a31c9ba862fe19 (diff)
downloadsssd-65951186e13fea410d087c84f7332b04d116f8fc.tar.gz
sssd-65951186e13fea410d087c84f7332b04d116f8fc.tar.bz2
sssd-65951186e13fea410d087c84f7332b04d116f8fc.zip
Force user check and discover user's domain
Force a user lookup against the users domain provider. If a user domain is not specified search though all non fully qualifying domains. Perform authentication against the corrent domain auth backend, based on the user's domain found in the lookup if one was not specified. Also move the NSS-DP functions in COMMON-DP as they are reused by the PAM responder too now.
Diffstat (limited to 'server/responder/common/responder.h')
-rw-r--r--server/responder/common/responder.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/server/responder/common/responder.h b/server/responder/common/responder.h
index 6f737a14..f5d5246f 100644
--- a/server/responder/common/responder.h
+++ b/server/responder/common/responder.h
@@ -115,4 +115,16 @@ int sss_cmd_get_version(struct cli_ctx *cctx);
/* responder_dp.c */
int sss_dp_init(struct resp_ctx *rctx, struct sbus_method dp_methods[]);
+#define NSS_DP_USER 1
+#define NSS_DP_GROUP 2
+#define NSS_DP_INITGROUPS 3
+
+typedef void (*nss_dp_callback_t)(uint16_t err_maj, uint32_t err_min,
+ const char *err_msg, void *ptr);
+
+int nss_dp_send_acct_req(struct resp_ctx *rctx, TALLOC_CTX *memctx,
+ nss_dp_callback_t callback, void *callback_ctx,
+ int timeout, const char *domain, int type,
+ const char *opt_name, uint32_t opt_id);
+
#endif /* __SSS_RESPONDER_H__ */