diff options
author | Stefan Metzmacher <metze@samba.org> | 2006-07-25 19:20:04 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:10:22 -0500 |
commit | 4cdcc1789363907f850a05c4b3349746c710ebf0 (patch) | |
tree | be214797dab346ce18d86ce5b53245eb56aa2526 /source4/ldap_server/ldap_bind.c | |
parent | ec8d486e267b60ebad3eac937580986155b75914 (diff) | |
download | samba-4cdcc1789363907f850a05c4b3349746c710ebf0.tar.gz samba-4cdcc1789363907f850a05c4b3349746c710ebf0.tar.bz2 samba-4cdcc1789363907f850a05c4b3349746c710ebf0.zip |
r17237: - keep pointer to the different sockets
- we need this to later:
- to disallow a StartTLS when TLS is already in use
- to place the TLS socket between the raw and sasl socket
when we had a sasl bind before the StartTLS
- and rfc4513 says that the server may allow to remove the TLS from
the tcp connection again and reuse raw tcp
- and also a 2nd sasl bind should replace the old sasl socket
metze
(This used to be commit 10cb9c07ac60b03472f2b0b09c4581cc715002ba)
Diffstat (limited to 'source4/ldap_server/ldap_bind.c')
-rw-r--r-- | source4/ldap_server/ldap_bind.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/ldap_server/ldap_bind.c b/source4/ldap_server/ldap_bind.c index 0e7a147e52..60783df4df 100644 --- a/source4/ldap_server/ldap_bind.c +++ b/source4/ldap_server/ldap_bind.c @@ -101,6 +101,7 @@ static void ldapsrv_set_sasl(void *private) talloc_steal(ctx->conn->connection, ctx->sasl_socket); talloc_unlink(ctx->conn->connection, ctx->conn->connection->socket); + ctx->conn->sockets.sasl = ctx->sasl_socket; ctx->conn->connection->socket = ctx->sasl_socket; packet_set_socket(ctx->conn->packet, ctx->conn->connection->socket); } |