From 65951186e13fea410d087c84f7332b04d116f8fc Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Thu, 16 Apr 2009 18:35:06 -0400 Subject: 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. --- server/responder/common/responder.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'server/responder/common/responder.h') diff --git a/server/responder/common/responder.h b/server/responder/common/responder.h index 6f737a142..f5d5246fb 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__ */ -- cgit