[SSSD] [PATCH] LDAP: sdap_auth_send() properly initialize ppolicy

Sumit Bose sbose at redhat.com
Thu Jun 26 11:00:55 UTC 2014


Hi,

I found this while debugging timeout issues during authentication.

bye,
Sumit
-------------- next part --------------
From 03879293f434cf2aaa6db9ead75830ba4a7050a7 Mon Sep 17 00:00:00 2001
From: Sumit Bose <sbose at redhat.com>
Date: Thu, 26 Jun 2014 11:59:55 +0200
Subject: [PATCH] LDAP: sdap_auth_send() properly initialize ppolicy

In case of an error ppolicy might not be set to NULL and
auth_bind_user_done() might show some unexpected debug messages.
---
 src/providers/ldap/sdap_async_connection.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/providers/ldap/sdap_async_connection.c b/src/providers/ldap/sdap_async_connection.c
index a1f78c0..7407ae7 100644
--- a/src/providers/ldap/sdap_async_connection.c
+++ b/src/providers/ldap/sdap_async_connection.c
@@ -1282,6 +1282,8 @@ struct tevent_req *sdap_auth_send(TALLOC_CTX *memctx,
     req = tevent_req_create(memctx, &state, struct sdap_auth_state);
     if (!req) return NULL;
 
+    state->ppolicy = NULL;
+
     if (sasl_mech) {
         state->is_sasl = true;
         subreq = sasl_bind_send(state, ev, sh, sasl_mech, sasl_user, NULL);
-- 
1.8.3.1



More information about the sssd-devel mailing list