svn commit: samba r26683 - in
branches/SAMBA_4_0/source/torture/ldap: .
abartlet at samba.org
abartlet at samba.org
Mon Jan 7 04:46:14 GMT 2008
Author: abartlet
Date: 2008-01-07 04:46:13 +0000 (Mon, 07 Jan 2008)
New Revision: 26683
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=26683
Log:
Add another testcase. I still don't know what's wrong here.
Andrew Bartlett
Modified:
branches/SAMBA_4_0/source/torture/ldap/cldap.c
Changeset:
Modified: branches/SAMBA_4_0/source/torture/ldap/cldap.c
===================================================================
--- branches/SAMBA_4_0/source/torture/ldap/cldap.c 2008-01-07 03:15:39 UTC (rev 26682)
+++ branches/SAMBA_4_0/source/torture/ldap/cldap.c 2008-01-07 04:46:13 UTC (rev 26683)
@@ -80,6 +80,27 @@
CHECK_STATUS(status, NT_STATUS_OK);
}
+ search.in.version = 0x20000006;
+ status = cldap_netlogon(cldap, tctx, &search);
+ CHECK_STATUS(status, NT_STATUS_OK);
+
+ printf("Trying with User=NULL\n");
+
+ search.in.user = NULL;
+ status = cldap_netlogon(cldap, tctx, &search);
+ CHECK_STATUS(status, NT_STATUS_OK);
+ CHECK_STRING(search.out.netlogon.logon5.user_name, "");
+ CHECK_VAL(search.out.netlogon.logon5.type, NETLOGON_RESPONSE_FROM_PDC2);
+
+ printf("Trying with User=Administrator\n");
+
+ search.in.user = "Administrator";
+ status = cldap_netlogon(cldap, tctx, &search);
+ CHECK_STATUS(status, NT_STATUS_OK);
+
+ CHECK_STRING(search.out.netlogon.logon5.user_name, search.in.user);
+ CHECK_VAL(search.out.netlogon.logon5.type, NETLOGON_RESPONSE_FROM_PDC_USER);
+
search.in.version = 6;
status = cldap_netlogon(cldap, tctx, &search);
CHECK_STATUS(status, NT_STATUS_OK);
More information about the samba-cvs
mailing list