summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-12-02 09:19:09 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:28:46 -0500
commit989b47d1f125eff1f41a223fd152814bb308d547 (patch)
tree6011f62dbbc12169cf0490ad7c793f4ddeb8425a
parentf92a005f4739e29f6bec2f97f82fe61346f085d8 (diff)
downloadsamba-989b47d1f125eff1f41a223fd152814bb308d547.tar.gz
samba-989b47d1f125eff1f41a223fd152814bb308d547.tar.bz2
samba-989b47d1f125eff1f41a223fd152814bb308d547.zip
r20002: finish requests on the first LDAP connection
metze (This used to be commit c5efd061c5457fb4d344daa2e40dada9c0c37e79)
-rw-r--r--source4/torture/rpc/testjoin.c50
1 files changed, 48 insertions, 2 deletions
diff --git a/source4/torture/rpc/testjoin.c b/source4/torture/rpc/testjoin.c
index fef36f26d5..c5bf6f292f 100644
--- a/source4/torture/rpc/testjoin.c
+++ b/source4/torture/rpc/testjoin.c
@@ -898,8 +898,54 @@ struct test_join_ads_dc *torture_join_domain_ads_dc(const char *machine_name,
* <success>
*/
- /* 20000 */
-/* ... */
+ /*
+ * LDAP search 1st LDAP connection:
+ *
+ * Request:
+ * basedn: CN=NTDS Settings,CN=<new_dc_netbios_name>,CN=Servers,CN=<new_dc_site_name>,CN=Sites,CN=Configuration,<domain_partition>
+ * scope: base
+ * filter: (objectClass=*)
+ * attrs:
+ * Result:
+ * <noSuchObject>
+ * <matchedDN:CN=<new_dc_netbios_name>,CN=Servers,CN=<new_dc_site_name>,CN=Sites,CN=Configuration,<domain_partition>>
+ */
+
+ /*
+ * LDAP search 1st LDAP connection:
+ *
+ * Request:
+ * basedn: CN=Partitions,CN=Configuration,<domain_partition>
+ * scope: sub
+ * filter: (nCName=<domain_partition>)
+ * attrs: nCName
+ * dnsRoot
+ * controls: LDAP_SERVER_EXTENDED_DN_OID:critical=false
+ * Result:
+ * <GUID=<hex_guid>>;CN=<domain_netbios_name>,CN=Partitions,<domain_partition>>
+ * nCName: <GUID=<hex_guid>>;<SID=<hex_sid>>;<domain_partition>>
+ * dnsRoot: <domain_dns_name>
+ */
+
+ /*
+ * LDAP modify 1st LDAP connection:
+ *
+ * Request (add):
+ * CN=<new_dc_netbios_name>,CN=Servers,CN=<new_dc_site_name>,CN=Sites,CN=Configuration,<domain_partition>>
+ * serverReference:CN=<new_dc_netbios_name>,CN=Computers,<domain_partition>
+ * Result:
+ * <attributeOrValueExist>
+ */
+
+ /*
+ * LDAP modify 1st LDAP connection:
+ *
+ * Request (replace):
+ * CN=<new_dc_netbios_name>,CN=Servers,CN=<new_dc_site_name>,CN=Sites,CN=Configuration,<domain_partition>>
+ * serverReference:CN=<new_dc_netbios_name>,CN=Computers,<domain_partition>
+ * Result:
+ * <success>
+ */
/*
* Open 1st DRSUAPI connection to the DC using admin credentials