From dd422e75a52d197d9084b6a4415b58553460ae41 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Fri, 9 Jan 2009 08:42:28 -0500 Subject: Lots of little nasty bugs fixed. I was finally able to get a getpwnam() request go through sssd, hit the remote ldap server and get the answer back with 'getent passwd foo' Yupiee! --- server/nss/nsssrv.h | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'server/nss/nsssrv.h') diff --git a/server/nss/nsssrv.h b/server/nss/nsssrv.h index 00508a8ed..51b0f535c 100644 --- a/server/nss/nsssrv.h +++ b/server/nss/nsssrv.h @@ -89,15 +89,13 @@ int nss_cmd_execute(struct cli_ctx *cctx); #define NSS_DP_USER 1 #define NSS_DP_GROUP 2 +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 nss_ctx *nctx, TALLOC_CTX *memctx, - DBusPendingCallNotifyFunction callback, - void *callback_ctx, - const char *domain, int type, + nss_dp_callback_t callback, void *callback_ctx, + int timeout, const char *domain, int type, const char *opt_name, uint32_t opt_id); -int nss_dp_get_reply(DBusPendingCall *pending, - dbus_uint16_t *err_maj, - dbus_uint32_t *err_min, - char **err_msg); int nss_dp_init(struct nss_ctx *nctx); #endif /* __NSSSRV_H__ */ -- cgit