diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-08-14 22:54:26 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-08-14 15:37:22 +0200 |
commit | 0668f98d112f29f3fc7c306f69a9bea29eb8e2e1 (patch) | |
tree | a2715ab6774fcaa5a381c3fa2c3271e16d973443 /source4/libnet | |
parent | fd0394d85d6da511eed96fe3dda72dfe92b83481 (diff) | |
download | samba-0668f98d112f29f3fc7c306f69a9bea29eb8e2e1.tar.gz samba-0668f98d112f29f3fc7c306f69a9bea29eb8e2e1.tar.bz2 samba-0668f98d112f29f3fc7c306f69a9bea29eb8e2e1.zip |
s4-libnet: Prepare libnet_BecomeDC for samdb_reference_dn() returning an extended DN
Remote LDAP servers will not accept an extended DN with other components.
Andrew Bartlett
Diffstat (limited to 'source4/libnet')
-rw-r--r-- | source4/libnet/libnet_become_dc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/libnet/libnet_become_dc.c b/source4/libnet/libnet_become_dc.c index 306671b33c..3e4c7f871c 100644 --- a/source4/libnet/libnet_become_dc.c +++ b/source4/libnet/libnet_become_dc.c @@ -1089,6 +1089,7 @@ static NTSTATUS becomeDC_ldap1_infrastructure_fsmo(struct libnet_BecomeDC_state talloc_free(r); + ldb_dn_remove_extended_components(ntds_dn); ret = ldb_search(s->ldap1.ldb, s, &r, ntds_dn, LDB_SCOPE_BASE, guid_attrs, "(objectClass=*)"); if (ret != LDB_SUCCESS) { |