1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-28 11:42:03 +03:00

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>
This commit is contained in:
Volker Lendecke
2020-08-10 16:24:04 +02:00
parent 77f72fb01f
commit eb72f887b0
4 changed files with 100 additions and 1 deletions

View File

@ -66,6 +66,7 @@ struct ldapsrv_connection {
} limits;
struct tevent_req *active_call;
struct tevent_req *deferred_expire_disconnect;
struct ldapsrv_call *pending_calls;
};