svn commit: samba r6816 - in branches/SAMBA_4_0/source/torture/ldap: .

tridge at samba.org tridge at samba.org
Mon May 16 11:16:49 GMT 2005


Author: tridge
Date: 2005-05-16 11:16:48 +0000 (Mon, 16 May 2005)
New Revision: 6816

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=6816

Log:
- fixed debug display of ndr netlogon union

- send a username when scanning to make structure elements clearer




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	2005-05-16 10:30:51 UTC (rev 6815)
+++ branches/SAMBA_4_0/source/torture/ldap/cldap.c	2005-05-16 11:16:48 UTC (rev 6816)
@@ -62,6 +62,7 @@
 
 	n1 = search.out.netlogon;
 
+	search.in.user         = "Administrator";
 	search.in.realm        = n1.logon4.dns_domain;
 	search.in.host         = "__cldap_torture__";
 
@@ -72,7 +73,8 @@
 		status = cldap_netlogon(cldap, mem_ctx, &search);
 		CHECK_STATUS(status, NT_STATUS_OK);
 		if (DEBUGLVL(10)) {
-			NDR_PRINT_UNION_DEBUG(nbt_cldap_netlogon, i & 0xF, 
+			NDR_PRINT_UNION_DEBUG(nbt_cldap_netlogon, 
+					      search.in.version & 0xF, 
 					      &search.out.netlogon);
 		}
 	}
@@ -84,7 +86,8 @@
 		status = cldap_netlogon(cldap, mem_ctx, &search);
 		CHECK_STATUS(status, NT_STATUS_OK);
 		if (DEBUGLVL(10)) {
-			NDR_PRINT_UNION_DEBUG(nbt_cldap_netlogon, i & 0xF, 
+			NDR_PRINT_UNION_DEBUG(nbt_cldap_netlogon, 
+					      search.in.version & 0xF, 
 					      &search.out.netlogon);
 		}
 	}



More information about the samba-cvs mailing list