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.c | |
parent | 4aa8e6e7085f1498c80881db7f9a5cd2b70228f9 (diff) | |
download | sssd-7122f66c144b1837e22adef519103cfd9808db62.tar.gz sssd-7122f66c144b1837e22adef519103cfd9808db62.tar.xz 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.c')
-rw-r--r-- | server/nss/nsssrv.c | 11 |
1 files changed, 9 insertions, 2 deletions
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; } |