Matthias Dieter Wallnöfer
28423114ec
s4:torture/rpc/netlogon - Fix uninitialised variable
2009-11-21 17:37:39 +01:00
Günther Deschner
e9c6984cb6
s4-smbtorture: re-arrange netlogon LogonControl test.
...
The LogonControl tests now are split out to a new RPC-NETLOGON-ADMIN test that
tests the behaviour of that call when called by user, dc or workstation.
Guenther
2009-11-09 17:36:53 +01:00
Andrew Tridgell
4ad0397d8a
s4-ldbwrap: added re-use of ldb contexts in ldb_wrap_connect()
...
This allows us to reuse a ldb context if it is open twice, instead
of going through the expensive process of a full ldb open. We can
reuse it if all of the parameters are the same.
The change relies on callers using talloc_unlink() or free of a parent
to close a ldb context.
2009-10-23 14:52:17 +11:00
Andrew Tridgell
84d0047377
s4-torture: ran minimal_includes.pl over source4/torture
...
This reduces compile time somewhat.
2009-10-20 16:04:46 +11:00
Günther Deschner
22276961c3
s4-smbtorture: extend netr_LogonControl test in RPC-NETLOGON.
...
Guenther
2009-10-16 14:54:58 +02:00
Matthias Dieter Wallnöfer
e9686985cb
s4: Changes the old occurences of "lp_realm" in "lp_dnsdomain" where needed
...
For KERBEROS applications the realm should be upcase (function "lp_realm") but
for DNS ones it should be used lowcase (function "lp_dnsdomain"). This patch
implements the use of both in the right way.
2009-10-14 10:50:43 +02:00
Matthias Dieter Wallnöfer
65541baf4b
s4:torture - Fix uninitialized variable
2009-09-06 12:31:37 +02:00
Günther Deschner
9bf74d0ed9
s4-smbtorture: test netr_ServerSetPassword2 against Samba3.
...
Guenther
2009-09-02 10:47:36 +02:00
Günther Deschner
3f0c8772f1
s4-smbtorture: do not hard code BDC secure channel type into RPC-NETLOGON tests.
...
Guenther
2009-08-27 13:41:50 +02:00
Günther Deschner
d368c73f95
s4-smbtorture: add test_SetPassword_flags to RPC-NETLOGON-S3 testsuite.
...
Guenther
2009-08-27 13:41:02 +02:00
Günther Deschner
46184692ad
s4-smbtorture: add RPC-NETLOGON-S3 to test samba3 netlogon server.
...
Guenther
2009-08-26 23:04:18 +02:00
Andrew Bartlett
f050c500f1
s4:torture Make RPC-NETLOGON pass against ncaclrpc servers
...
The original patch didn't cope with a NULL target server name - we now key off that to decide it isn't worth checking against LDAP for this host.
I still can't get this to pass against Windows 2008, but mdw was
testing against Windows 2008R2. at least 'make test' is happy, and
the rest should not be too hard...
Andrew Bartlett
2009-08-04 18:24:37 +10:00
Matthias Dieter Wallnöfer
64b4d02032
s4: Change constant to comply with the merged build
2009-08-03 14:23:23 +02:00
Matthias Dieter Wallnöfer
720b7ea0ee
s4: Torture test for enhancements in "netr_LogonGetDomainInformations" call
...
This corrects and enhances the torture test of the mentioned call.
2009-08-03 09:46:30 +02:00
Günther Deschner
ec5c83c0db
s4-smbtorture: add torture_suite_add_machine_workstation_rpc_iface_tcase.
...
Unlike torture_suite_add_machine_bdc_rpc_iface_tcase() which joins as a BDC
(ACB_SRVTRUST) this joins as a member workstation (ACB_WSTRUST).
Guenther
2009-06-29 12:43:32 +02:00
Matthias Dieter Wallnöfer
efe6552f0c
NETLOGON pipe improvements
...
Patch for bug #4939
This refactors the NETLOGON code related to this bug:
- Introduces a new "SYNCSTATE" enum required by the "DatabaseSync2" call (acc.
to WSPP)
- Make "DatabaseSync" dependant from "DatabaseSync2" (acc. to WSPP)
- Let "DatabaseSync2" return NT_STATUS_NOT_IMPLEMENTED (I'm not sure if this is
also true when a domain is running in mixed mode)
- Make "LogonControl" and "LogonControl2" dependant form "LogonControl2Ex"
(acc. to WSPP)
- Let "LogonControl2Ex" return WERR_NOT_SUPPORTED for now
2009-06-18 13:49:25 +10:00
Andrew Bartlett
5095d7b1c8
Rework Samba4 to use the new common libcli/auth code
...
In particular, this is the rename from creds_ to netlogon_creds_, as
well as other links to use the new common crypto.
Andrew Bartlett
2009-04-14 16:23:44 +10:00
Günther Deschner
10d72781fd
s4-smbtorture: verify each password change via samlogon in SAMR-PASSWORDS-PWDLASTSET test.
...
Guenther
2009-01-06 16:03:54 +01:00
Jelmer Vernooij
dcc4081f75
Fix more compiler warnings.
2008-12-23 23:22:57 +01:00
Günther Deschner
93c61a814a
s4: smbtorture, fix the build of netlogon test after idl change.
...
Guenther
2008-12-17 23:52:15 +01:00
Günther Deschner
188695f07f
s4: fix smbtorture build after idl change.
...
Guenther
2008-12-17 23:23:56 +01:00
Günther Deschner
c4a5788e82
s4-smbtorture: add simple netr_ServerGetTrustInfo test.
...
Guenther
2008-12-10 11:58:28 +01:00
Stefan Metzmacher
e9d1c3e7ea
RAW-NETLOGON: check netr_GetAnyDCName() result
...
metze
2008-12-04 12:48:44 +01:00
Günther Deschner
db26f7b7c4
s4-smbtorture: add test for netr_DatabaseRedo.
...
Guenther
2008-11-06 18:52:48 +01:00
Günther Deschner
524156333b
s4-netlogon: merge netr_ServerPasswordSet2 from s3 idl.
...
Guenther
2008-10-29 08:57:52 +01:00
Günther Deschner
556b5bb9ee
s4-netlogon: merge netr_ServerPasswordSet from s3 idl.
...
Guenther
2008-10-29 08:57:52 +01:00
Günther Deschner
1798e9d7ec
s4-netlogon: merge netr_ServerReqChallenge from s3 idl.
...
Guenther
2008-10-29 08:57:52 +01:00
Günther Deschner
8e4c691c0a
s4-netlogon: merge netr_ServerAuthenticate{2,3} from s3 idl.
...
Guenther
2008-10-29 08:57:51 +01:00
Günther Deschner
ef37351f18
s4-netlogon: merge netr_DatabaseSync2 from s3 idl.
...
Guenther
2008-10-29 08:57:51 +01:00
Günther Deschner
cbc0b63a77
s4-netlogon: merge netr_DatabaseSync from s3 idl.
...
Guenther
2008-10-29 08:57:51 +01:00
Günther Deschner
f285af6367
s4-netlogon: merge netr_LogonSamLogon{Ex,WithFlags} from s3 idl.
...
Guenther
2008-10-29 08:57:31 +01:00
Günther Deschner
0de8811a59
s4-netlogon: merge netr_AccountSync from s3 idl.
...
Guenther
2008-10-29 08:57:28 +01:00
Günther Deschner
fccd5a4dfd
s4-netlogon: merge netr_AccountDeltas from s3 idl.
...
Guenther
2008-10-29 08:57:28 +01:00
Günther Deschner
6f2179b088
s4-netlogon: merge netr_DatabaseDeltas from s3 idl.
...
Guenther
2008-10-29 08:57:28 +01:00
Günther Deschner
4f6264b66c
s4-netlogon: merge netr_LogonGetDomainInfo from s3 idl.
...
Guenther
2008-10-29 08:57:27 +01:00
Günther Deschner
359927dd34
s4-netlogon: merge netr_LogonControl2Ex from s3 idl.
...
Guenther
2008-10-29 08:57:27 +01:00
Günther Deschner
8a79378469
s4-netlogon: merge netr_LogonControl2 from s3 idl.
...
Guenther
2008-10-29 08:57:27 +01:00
Günther Deschner
388952f82c
s4-netlogon: merge netr_LogonControl from s3 idl.
...
Guenther
2008-10-29 08:57:26 +01:00
Günther Deschner
f0697b0ad5
s4-netlogon: merge netr_DsRGetDCName{Ex,Ex2} from s3 idl.
...
Guenther
2008-10-29 08:56:52 +01:00
Günther Deschner
f82a117832
s4-netlogon: merge netr_GetDcName from s3 idl.
...
Guenther
2008-10-28 23:40:53 +01:00
Günther Deschner
a674a3bbf3
s4-netlogon: merge netr_GetAnyDCName from s3 idl (untested).
...
Guenther
2008-10-28 23:40:53 +01:00
Günther Deschner
2a329c4963
s4-netlogon: merge netr_DsRGetSiteName from s3 idl.
...
Guenther
2008-10-28 23:40:52 +01:00
Günther Deschner
2a7de4e3f8
s4-netlogon: merge netr_DsrEnumerateDomainTrusts from s3 idl.
...
Guenther
2008-10-28 23:40:52 +01:00
Günther Deschner
0992a9d987
s4-netlogon: merge netr_DsrGetDcSiteCoverageW from s3 idl.
...
Guenther
2008-10-28 23:40:51 +01:00
Günther Deschner
532fd92bdb
s4-smbtorture: fix test_LogonUasLogoff.
...
Guenther
2008-10-28 23:40:51 +01:00
Günther Deschner
bb3836a67f
s4-smbtorture: fix test_LogonUasLogon.
...
Guenther
2008-10-28 23:40:44 +01:00
Jelmer Vernooij
922a29992e
Remove iconv_convenience parameter from simple string push/pull
...
functions.
2008-10-24 03:40:09 +02:00
Andrew Bartlett
4fb64f13d5
Add a test to RPC-NETLOGON for random machine account passwords.
...
Andrew Bartlett
2008-10-17 14:06:33 +11:00
Andrew Tridgell
025ff92f59
expanded the netlogon test to better simulate the WSPP NRPC test that
...
we had some trouble with
2008-10-03 17:10:53 -07:00
Andrew Bartlett
7831169af5
Test re-setting the challenge after an auth3 in RPC-NETLOGON
2008-09-22 15:37:16 -07:00