The Samba-Bugzilla – Attachment 4454 Details for
Bug 4888
ADUC: Missing computer informations
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
(not finished) example of how we might test the call
torture.diff (text/plain), 2.30 KB, created by
Andrew Bartlett
on 2009-07-22 02:30:21 UTC
(
hide
)
Description:
(not finished) example of how we might test the call
Filename:
MIME Type:
Creator:
Andrew Bartlett
Created:
2009-07-22 02:30:21 UTC
Size:
2.30 KB
patch
obsolete
>diff --git a/source4/torture/rpc/netlogon.c b/source4/torture/rpc/netlogon.c >index 2fd8b94..5ec50a7 100644 >--- a/source4/torture/rpc/netlogon.c >+++ b/source4/torture/rpc/netlogon.c >@@ -22,6 +22,7 @@ > */ > > #include "includes.h" >+#include "version.h" > #include "torture/torture.h" > #include "lib/events/events.h" > #include "auth/auth.h" >@@ -2111,9 +2112,10 @@ static bool test_GetDomainInfo(struct torture_context *tctx, > { > NTSTATUS status; > struct netr_LogonGetDomainInfo r; >- struct netr_DomainQuery1 q1; >+ struct netr_WorkstationInfomation q1; > struct netr_Authenticator a; > struct netlogon_creds_CredentialState *creds; >+ struct netr_os_version_container os; > union netr_DomainInfo info; > > if (!test_SetupCredentials3(p, tctx, NETLOGON_NEG_AUTH2_ADS_FLAGS, >@@ -2133,17 +2135,22 @@ static bool test_GetDomainInfo(struct torture_context *tctx, > r.out.return_authenticator = &a; > r.out.info = &info; > >- r.in.query.query1 = &q1; >+ r.in.query.workstation_info = &q1; > ZERO_STRUCT(q1); > > /* this should really be the fully qualified name */ >- q1.workstation_domain = TEST_MACHINE_NAME; >+ q1.dns_hostname = TEST_MACHINE_NAME; > q1.workstation_site = "Default-First-Site-Name"; >- q1.blob2.length = 0; >- q1.blob2.size = 0; >- q1.blob2.array = NULL; >- q1.product.string = "product string"; >+ q1.os_version.os = &os; >+ q1.os_name.string = "product string"; >+ >+ ZERO_STRUCT(os); > >+ os.os.MajorVersion = SAMBA_VERSION_MAJOR; >+ os.os.MinorVersion = SAMBA_VERSION_MINOR; >+ os.os.BuildNumber = SAMBA_VERSION_ALPHA_RELEASE; >+ os.os.CSDVersion = "Samba " SAMBA_VERSION_STRING; >+ os.os.ServicePackMinor = SAMBA_VERSION_RELEASE; > torture_comment(tctx, "Testing netr_LogonGetDomainInfo\n"); > > status = dcerpc_netr_LogonGetDomainInfo(p, tctx, &r); >@@ -2175,7 +2182,7 @@ static bool test_GetDomainInfo_async(struct torture_context *tctx, > { > NTSTATUS status; > struct netr_LogonGetDomainInfo r; >- struct netr_DomainQuery1 q1; >+ struct netr_WorkstationInfomation q1; > struct netr_Authenticator a; > #define ASYNC_COUNT 100 > struct netlogon_creds_CredentialState *creds; >@@ -2199,7 +2206,7 @@ static bool test_GetDomainInfo_async(struct torture_context *tctx, > r.out.return_authenticator = &a; > r.out.info = &info; > >- r.in.query.query1 = &q1; >+ r.in.query->workstation_info = &q1; > ZERO_STRUCT(q1); > > /* this should really be the fully qualified name */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 4888
:
4357
|
4375
|
4376
|
4383
|
4399
|
4411
|
4452
|
4453
| 4454 |
4469
|
4470