libads: Check cldap flags in libads/ldap
authorGarming Sam <garming@catalyst.net.nz>
Mon, 20 Mar 2017 02:37:12 +0000 (15:37 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 30 May 2017 06:06:06 +0000 (08:06 +0200)
commiteaf2c3e21dffde4dad89ce2e6c6a5061cc9f435f
treed43501f8d58d107d805fd8ee111b83d0956b9f9b
parent3dcee68fa998b9cf10ac34d6b3720d79475ac8c9
libads: Check cldap flags in libads/ldap

Pass down request flags and check they are respected with the response
flags. Otherwise, error out and pretend the connection never happened.

Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/libads/cldap.c
source3/libads/cldap.h
source3/libads/ldap.c
source3/libsmb/dsgetdcname.c