mirror of
https://github.com/samba-team/samba.git
synced 2025-07-22 16:59:09 +03:00
s4-ldapserver: serialise ldap server operations
This ensures that two ldap server operations cannot happen in parallel by using packet_recv_disable() and packet_recv_enable() to disable other interfaces during ldap calls. This prevents problems caused by parallel ldap operations where transactions could overlap.
This commit is contained in:
@ -50,6 +50,8 @@ struct ldapsrv_connection {
|
||||
struct tevent_timer *ite;
|
||||
struct tevent_timer *te;
|
||||
} limits;
|
||||
|
||||
struct ldapsrv_packet_interfaces *packet_interface;
|
||||
};
|
||||
|
||||
struct ldapsrv_call {
|
||||
@ -66,6 +68,11 @@ struct ldapsrv_call {
|
||||
struct ldapsrv_service {
|
||||
struct tls_params *tls_params;
|
||||
struct task_server *task;
|
||||
struct ldapsrv_packet_interfaces {
|
||||
struct ldapsrv_packet_interfaces *next, *prev;
|
||||
struct packet_context *packet;
|
||||
struct ldapsrv_service *service;
|
||||
} *packet_interfaces;
|
||||
};
|
||||
|
||||
#include "ldap_server/proto.h"
|
||||
|
Reference in New Issue
Block a user