diff options
author | Simo Sorce <idra@samba.org> | 2008-12-08 19:07:56 -0500 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2008-12-08 19:25:21 -0500 |
commit | 8f86577722f9e880c82e7a98fcb14ee06acb7170 (patch) | |
tree | 2a4ed81a4c55c13cf93812fe7a577f081f4613b4 /server/nss/nsssrv.c | |
parent | 6092cf59d7f5d1c0d915c65bde20fdc98f80c950 (diff) | |
download | sssd-8f86577722f9e880c82e7a98fcb14ee06acb7170.tar.gz sssd-8f86577722f9e880c82e7a98fcb14ee06acb7170.tar.bz2 sssd-8f86577722f9e880c82e7a98fcb14ee06acb7170.zip |
Change data provider into a hub, where backends (ldap, nis, ipa providers)
and frontends (pam, nss, ... modules) can connect to.
Diffstat (limited to 'server/nss/nsssrv.c')
-rw-r--r-- | server/nss/nsssrv.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/server/nss/nsssrv.c b/server/nss/nsssrv.c index ccbd7ba8..a3fd6726 100644 --- a/server/nss/nsssrv.c +++ b/server/nss/nsssrv.c @@ -43,14 +43,14 @@ #define SSS_NSS_PIPE_NAME "nss" -static int provide_identity(DBusMessage *message, void *data, DBusMessage **r); -static int reply_ping(DBusMessage *message, void *data, DBusMessage **r); +static int service_identity(DBusMessage *message, void *data, DBusMessage **r); +static int service_pong(DBusMessage *message, void *data, DBusMessage **r); static int nss_init_domains(struct nss_ctx *nctx); static int _domain_comparator(void *key1, void *key2); struct sbus_method nss_sbus_methods[] = { - {SERVICE_METHOD_IDENTITY, provide_identity}, - {SERVICE_METHOD_PING, reply_ping}, + {SERVICE_METHOD_IDENTITY, service_identity}, + {SERVICE_METHOD_PING, service_pong}, {NULL, NULL} }; @@ -211,7 +211,7 @@ static void accept_fd_handler(struct event_context *ev, return; } -static int provide_identity(DBusMessage *message, void *data, DBusMessage **r) +static int service_identity(DBusMessage *message, void *data, DBusMessage **r) { dbus_uint16_t version = NSS_SBUS_SERVICE_VERSION; const char *name = NSS_SBUS_SERVICE_NAME; @@ -231,7 +231,7 @@ static int provide_identity(DBusMessage *message, void *data, DBusMessage **r) return EOK; } -static int reply_ping(DBusMessage *message, void *data, DBusMessage **r) +static int service_pong(DBusMessage *message, void *data, DBusMessage **r) { DBusMessage *reply; dbus_bool_t ret; @@ -252,8 +252,7 @@ static int nss_sbus_init(struct nss_ctx *nctx) /* Set up SBUS connection to the monitor */ ss_ctx = sssd_service_sbus_init(nctx, nctx->ev, nctx->cdb, - provide_identity, - reply_ping); + nss_sbus_methods); if (ss_ctx == NULL) { DEBUG(0, ("Could not initialize D-BUS.\n")); return ENOMEM; |