diff options
author | Simo Sorce <idra@samba.org> | 2009-01-08 10:43:26 -0500 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2009-01-08 10:43:26 -0500 |
commit | 7122f66c144b1837e22adef519103cfd9808db62 (patch) | |
tree | da639d1000b84e3fc0bfe700a1d9126df38e1126 /server/nss/nsssrv.h | |
parent | 4aa8e6e7085f1498c80881db7f9a5cd2b70228f9 (diff) | |
download | sssd-7122f66c144b1837e22adef519103cfd9808db62.tar.gz sssd-7122f66c144b1837e22adef519103cfd9808db62.tar.bz2 sssd-7122f66c144b1837e22adef519103cfd9808db62.zip |
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.
Diffstat (limited to 'server/nss/nsssrv.h')
-rw-r--r-- | server/nss/nsssrv.h | 17 |
1 files changed, 16 insertions, 1 deletions
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__ */ |