ldap_server: Terminate LDAP connections on krb ticket expiry
commiteb72f887b0bf91c050fd5d911f58a1b3ff9b8bcc
authorVolker Lendecke <vl@samba.org>
Mon, 10 Aug 2020 14:24:04 +0000 (10 16:24 +0200)
committerVolker Lendecke <vl@samba.org>
Fri, 21 Aug 2020 19:14:32 +0000 (21 19:14 +0000)
tree2f7da1f741368f2ccaff558e23e75ec02b8ed14f
parent77f72fb01faba45babfe6080f805361492ce49e5
ldap_server: Terminate LDAP connections on krb ticket expiry

See RFC4511 section 4.4.1 and

https://lists.samba.org/archive/cifs-protocol/2020-August/003515.html

for details: Windows terminates LDAP connections when the krb5 ticket
expires, Samba should do the same. This patch slightly deviates from
Windows behaviour by sending a LDAP exop response with msgid 0 that is
ASN1-encoded conforming to RFC4511.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=14465

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
selftest/knownfail.d/ldap
source4/ldap_server/ldap_backend.c
source4/ldap_server/ldap_server.c
source4/ldap_server/ldap_server.h