ldap_server: Move code into authenticate_ldap_simple_bind()
authorAndrew Bartlett <abartlet@samba.org>
Mon, 20 Feb 2017 02:57:03 +0000 (15:57 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 29 Mar 2017 00:37:26 +0000 (02:37 +0200)
commit5f5756db714de0c1b00d648a48423fde19a564a1
treebeccc6bc5e12fa30514957352770e3c7ca3ccf18
parent7609c57922f1d5041dd65660e157a1ba3bf1a417
ldap_server: Move code into authenticate_ldap_simple_bind()

This function is only called for simple binds, and by moving the mapping into
the function call we allow the unmapped values to be included in the
user_info and so logged.

We also include the local address and the remote address of the client
for future logging

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>
source4/auth/auth.h
source4/auth/ntlm/auth_simple.c
source4/ldap_server/ldap_bind.c