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/providers/dp_backend_store.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/providers/dp_backend_store.c') diff --git a/server/providers/dp_backend_store.c b/server/providers/dp_backend_store.c index e518f4387..9bccb2184 100644 --- a/server/providers/dp_backend_store.c +++ b/server/providers/dp_backend_store.c @@ -71,7 +71,7 @@ int dp_be_store_account_posix(struct be_ctx *ctx, account_dn, LDB_SCOPE_BASE, "(objectClass=User)", attrs, NULL, res, ldb_search_default_callback, NULL); - if (!lret) { + if (lret != LDB_SUCCESS) { DEBUG(1, ("Failed to build search request (%d) !?\n", lret)); ret = EIO; goto done; -- cgit