mirror of
https://github.com/samba-team/samba.git
synced 2025-02-28 01:58:17 +03:00
s4-ldap_server: Set remote and local address values into GENSEC
This will allow channel bindings and logging of the address values used during authentication Signed-off-by: Andrew Bartlett <abartlet@samba.org> Pair-Programmed-by: Gary Lockyer <gary@catalyst.net.nz> Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
This commit is contained in:
parent
28e0c8d135
commit
1cca9d6dce
@ -199,6 +199,18 @@ static NTSTATUS ldapsrv_setup_gensec(struct ldapsrv_connection *conn,
|
||||
return status;
|
||||
}
|
||||
|
||||
status = gensec_set_remote_address(gensec_security,
|
||||
conn->connection->remote_address);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
return status;
|
||||
}
|
||||
|
||||
status = gensec_set_local_address(gensec_security,
|
||||
conn->connection->local_address);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
return status;
|
||||
}
|
||||
|
||||
gensec_want_feature(gensec_security, GENSEC_FEATURE_ASYNC_REPLIES);
|
||||
gensec_want_feature(gensec_security, GENSEC_FEATURE_LDAP_STYLE);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user