s4:dirsync: fix interaction of dirsync and extended_dn controls
authorStefan Metzmacher <metze@samba.org>
Fri, 4 Oct 2019 12:57:40 +0000 (14:57 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 24 Oct 2019 11:06:58 +0000 (11:06 +0000)
commitd0f566c4ad32d69a1cf896e2dde56fc2489bb7fc
tree20b6a5c97a404547571f32235883341c0ecb6b83
parent6d43d82b49c8cd47da2f1489fe8b52d5a873a19c
s4:dirsync: fix interaction of dirsync and extended_dn controls

Azure AD connect reports discovery errors:
  reference-value-not-ldap-conformant
for attributes member and manager.
The key is that it sends the LDAP_SERVER_EXTENDED_DN_OID without
an ExtendedDNRequestValue blob, which means the flag value should
be treated as 0 and the HEX string format should be used.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14153
RN: Prevent azure ad connect from reporting discovery errors:
reference-value-not-ldap-conformant

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Thu Oct 24 11:06:58 UTC 2019 on sn-devel-184
selftest/knownfail.d/dirsync_extended_dn [deleted file]
source4/dsdb/samdb/ldb_modules/dirsync.c