From 7122f66c144b1837e22adef519103cfd9808db62 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Thu, 8 Jan 2009 10:43:26 -0500 Subject: The code now successfully sends a getpwnam request to a remote LDAP server, and caches the result in LDAP. Still chasing a bug that does not let NSS known that the BE was successful. This makes NSS timeout the client and not return any results yet. --- server/nss/nsssrv.h | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'server/nss/nsssrv.h') diff --git a/server/nss/nsssrv.h b/server/nss/nsssrv.h index 90dda15e..00508a8e 100644 --- a/server/nss/nsssrv.h +++ b/server/nss/nsssrv.h @@ -28,6 +28,7 @@ #include "tevent.h" #include "ldb.h" #include "../nss_client/sss_nss.h" +#include "dbus/dbus.h" #define NSS_SBUS_SERVICE_VERSION 0x0001 #define NSS_SBUS_SERVICE_NAME "nss" @@ -82,7 +83,21 @@ void nss_packet_get_body(struct nss_packet *packet, uint8_t **body, size_t *blen void nss_packet_set_error(struct nss_packet *packet, int error); /* from nsssrv_cmd.c */ -int nss_cmd_init(struct nss_ctx *nctx); int nss_cmd_execute(struct cli_ctx *cctx); +/* from nsssrv_dp.c */ +#define NSS_DP_USER 1 +#define NSS_DP_GROUP 2 + +int nss_dp_send_acct_req(struct nss_ctx *nctx, TALLOC_CTX *memctx, + DBusPendingCallNotifyFunction callback, + void *callback_ctx, + 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