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

auth: Add hooks for notification of authentication events over the message bus

This will allow tests to be written to confirm the correct events are triggered.

We pass in a messaging context from the callers

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Andrew Bartlett
2017-03-24 15:18:46 +13:00
parent 631f1bcce6
commit d004196036
13 changed files with 132 additions and 24 deletions

View File

@ -1285,7 +1285,9 @@ NTSTATUS ldapsrv_do_call(struct ldapsrv_call *call)
transport_protection = AUTHZ_TRANSPORT_PROTECTION_TLS;
}
log_successful_authz_event(call->conn->connection->remote_address,
log_successful_authz_event(call->conn->connection->msg_ctx,
call->conn->connection->lp_ctx,
call->conn->connection->remote_address,
call->conn->connection->local_address,
"LDAP",
"no bind",