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.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'server/nss/nsssrv.c') diff --git a/server/nss/nsssrv.c b/server/nss/nsssrv.c index 32ab43db1..bb5443f4f 100644 --- a/server/nss/nsssrv.c +++ b/server/nss/nsssrv.c @@ -132,7 +132,9 @@ static void client_recv(struct event_context *ev, struct cli_ctx *cctx) DEBUG(0, ("Failed to execute request, aborting client!\n")); talloc_free(cctx); } - break; + /* past this point cctx can be freed at any time by callbacks + * in case of error, do not use it */ + return; case EAGAIN: /* need to read still some data, loop again */ @@ -220,6 +222,9 @@ static int service_identity(DBusMessage *message, void *data, DBusMessage **r) DBusMessage *reply; dbus_bool_t ret; + DEBUG(4,("Sending ID reply: (%s,%d)\n", + name, version)); + reply = dbus_message_new_method_return(message); ret = dbus_message_append_args(reply, DBUS_TYPE_STRING, &name, @@ -405,7 +410,7 @@ int nss_process_init(TALLOC_CTX *mem_ctx, return ret; } - ret = nss_cmd_init(nctx); + ret = nss_dp_init(nctx); if (ret != EOK) { DEBUG(0, ("fatal error setting up backend connector\n")); return ret; @@ -424,6 +429,8 @@ int nss_process_init(TALLOC_CTX *mem_ctx, return ret; } + DEBUG(1, ("NSS Initialization complete\n")); + return EOK; } -- cgit