summaryrefslogtreecommitdiff
path: root/source4/ldap_server
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2017-03-09 15:10:14 +1300
committerAndrew Bartlett <abartlet@samba.org>2017-03-29 02:37:26 +0200
commit9ffdb84600bb5b97a31d2407c8901aa3c599d53f (patch)
treef5b71758ad798245d4a8bcacbded6c0704ebcd8b /source4/ldap_server
parent1cca9d6dce94f35e8efc17426ea0bf5f77a3ec3d (diff)
downloadsamba-9ffdb84600bb5b97a31d2407c8901aa3c599d53f.tar.gz
s4-ldap_server: Do not set conn->session_info to NULL, keep valid at all times
We need this to be valid, right up until a new session_info is created and it is replaced. We need this to have a valid value at all times, and we are still anonymous until the new bind completes Signed-off-by: Andrew Bartlett <abartlet@samba.org> Pair-Programmed-by: Gary Lockyer <gary@catalyst.net.nz> Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Diffstat (limited to 'source4/ldap_server')
-rw-r--r--source4/ldap_server/ldap_bind.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/source4/ldap_server/ldap_bind.c b/source4/ldap_server/ldap_bind.c
index 332bad3224e..e0f13f2de2d 100644
--- a/source4/ldap_server/ldap_bind.c
+++ b/source4/ldap_server/ldap_bind.c
@@ -251,8 +251,6 @@ static NTSTATUS ldapsrv_BindSASL(struct ldapsrv_call *call)
*/
if (!conn->gensec) {
- conn->session_info = NULL;
-
status = ldapsrv_setup_gensec(conn, req->creds.SASL.mechanism,
&conn->gensec);
if (!NT_STATUS_IS_OK(status)) {