summaryrefslogtreecommitdiffstats
path: root/source4/torture/rpc/netlogon.c
Commit message (Collapse)AuthorAgeFilesLines
* s4:torture/rpc: add invalidAuthenticate2Stefan Metzmacher2014-01-221-14/+74
| | | | | | | | | | | | This add 'rpc.netlogon.netlogon.invalidAuthenticate2' as new test it demonstrates the STATUS_BUFFER_OVERFLOW on computer names larger than 15 characters. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Wed Jan 22 19:07:12 CET 2014 on sn-devel-104
* s4:torture/rpc: avoid using dcerpc_event_context()Stefan Metzmacher2014-01-161-1/+1
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
* libcli/auth: also set secure channel type in netlogon_creds_client_init().Günther Deschner2013-08-051-0/+3
| | | | | | Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* s4-torture: validate owf password hash and negotiate AES ServerGetTrustInfo ↵Günther Deschner2012-12-091-4/+33
| | | | | | | | | test. Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* s4-torture: use names for r.in.logon_level of netlogon samlogon requests.Günther Deschner2012-12-091-2/+2
| | | | | | | Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* s4-torture: add AES support for netr_ServerPasswordSet2 tests.Günther Deschner2012-12-091-6/+29
| | | | | | | Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* s4-torture: pass down netlogon flags in netr_ServerPasswordSet2 tests.Günther Deschner2012-12-091-4/+12
| | | | | | | Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* s4-torture: remove trailing whitespace from netlogon test.Günther Deschner2012-12-091-105/+105
| | | | | | | Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* netlogon: Per MS-NRPC, don't send unknown workstation flags back to theJelmer Vernooij2012-09-261-3/+25
| | | | client.
* s4:torture/rpc/netlogon.c - enhance the "DsRGetDCName*" testsMatthias Dieter Wallnöfer2012-01-021-0/+96
| | | | | | | | | | To check for the expected behaviour (DS_* flags). Always according to MS-NRPC 2.2.1.2.1. Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Jan 2 20:43:05 CET 2012 on sn-devel-104
* s4:torture/rpc/netlogon.c - factor out the computer name check in an own testMatthias Dieter Wallnöfer2011-12-231-11/+61
| | | | | | | | | | | | This check is by no ways specific to "DsRGetSiteName" and hence it should be factored out in an own function. Samba at the moment does not implement the expected behaviour so I have added the "torture_skip" action. Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Fri Dec 23 12:17:48 CET 2011 on sn-devel-104
* s4-torture: Test rpc schannel netr_LogonGetCapability.Stefan Metzmacher2011-12-221-0/+54
| | | | metze
* torture: use tevent_ functions names instead of the legacy event_ onesSimo Sorce2011-08-131-2/+2
|
* Fix some typesJelmer Vernooij2011-02-281-1/+1
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Mon Feb 28 23:30:06 CET 2011 on sn-devel-104
* s4:torture/rpc/netlogon.c - fix two build warnings by castsMatthias Dieter Wallnöfer2011-02-221-2/+2
| | | | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Tue Feb 22 11:45:49 CET 2011 on sn-devel-104
* ldb: use #include <ldb.h> for ldbAndrew Tridgell2011-02-101-1/+1
| | | | | | | | thi ensures we are using the header corresponding to the version of ldb we're linking against. Otherwise we could use the system ldb for link and the in-tree one for include Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4:torture/rpc/netlogon: add invalid level tests for netr_LogonControl2Stefan Metzmacher2011-02-021-0/+24
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Feb 2 12:43:32 CET 2011 on sn-devel-104
* s4:torture/rpc/netlogon: improve comments in test_LogonControl2()Stefan Metzmacher2011-02-021-12/+12
| | | | metze
* s4:torture/rpc/netlogon: test invalid netr_LogonControl() levelStefan Metzmacher2011-02-021-0/+7
| | | | metze
* s4:torture/rpc/netlogon: test invalid LogonSamLogon levelsStefan Metzmacher2011-02-021-0/+90
| | | | | | | This proves that the invalid parameter/info class checks need to be done before the credential chain checks. metze
* s4:torture/rpc/netlogon: test validation levels 2 and 3Stefan Metzmacher2011-02-021-1/+1
| | | | metze
* s4-smbtorture: Make test names lowercase and dot-separated.Jelmer Vernooij2010-12-111-3/+3
| | | | | | | | This is consistent with the test names used by selftest, should make the names less confusing and easier to integrate with other tools. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Dec 11 04:16:13 CET 2010 on sn-devel-104
* s4-tests Workaround new default of 'client ntlmv2 auth = yes' in testsAndrew Bartlett2010-12-091-1/+1
| | | | | | The new default breaks some tests that were assuming LM or NTLM auth Andrew Bartlett
* s4:netlogon/LogonGetDomainInfo - handle a NULL "dns_hostname"Matthias Dieter Wallnöfer2010-11-191-2/+20
| | | | | | | | | - Performs the short computer name check against the sam account name. - Enhances the LogonGetDomainInfo testsuite which checks the NULL "dns_hostname" behaviour Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Fri Nov 19 12:50:33 CET 2010 on sn-devel-104
* Revert "s4:remove "util_ldb" submodule and integrate the three gendb_* calls ↵Matthias Dieter Wallnöfer2010-10-171-0/+1
| | | | | | | | | | | | in "dsdb/common/util.c"" This reverts commit 8a2ce5c47cee499f90b125ebde83de5f9f1a9aa0. Jelmer pointed out that these are also in use by other LDB databases - not only SAMDB ones. Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Sun Oct 17 13:37:16 UTC 2010 on sn-devel-104
* s4:remove "util_ldb" submodule and integrate the three gendb_* calls in ↵Matthias Dieter Wallnöfer2010-10-171-1/+0
| | | | | | | | | "dsdb/common/util.c" They're only in use by SAMDB code. Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Sun Oct 17 09:40:13 UTC 2010 on sn-devel-104
* s4:torture/rpc/netlogon.c - remove the dependency on "samdb_server_site_name"Matthias Dieter Wallnöfer2010-09-241-5/+54
| | | | | | | Since this one relies on the right server loadparm context which we aren't able to provide over torture. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s3/s4: merge msleep and smb_msleepBjörn Jacke2010-09-161-5/+5
| | | | | the merged variant is renamed to smb_msleep as some platforms already have a msleep function.
* s4-smbtorture: Make test_SetupCredentials3 publicSumit Bose2010-08-251-1/+1
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s4-loadparm: 2nd half of lp_ to lpcfg_ conversionAndrew Tridgell2010-07-161-21/+21
| | | | | | | this converts all callers that use the Samba4 loadparm lp_ calling convention to use the lpcfg_ prefix. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4-smbtorture: handle NT_STATUS_NOT_IMPLEMENTED in GetForestTrustInformation ↵Günther Deschner2010-06-291-2/+6
| | | | | | | | test. When skipping over it, we can at least verify the credential chain. Guenther
* s4-smbtorture: use TEST_MACHINE_NAME in test_netr_GetForestTrustInformation().Günther Deschner2010-06-291-1/+1
| | | | Guenther
* s4-smbtorture: add netr_GetForestTrustInformation test to RPC-NETLOGON.Günther Deschner2010-06-291-0/+39
| | | | Guenther
* s4:torture/rpc/netlogon.c - make sure that the address family is set in ↵Matthias Dieter Wallnöfer2010-06-181-18/+18
| | | | little endian in the "AddressToSitenames" tests
* s4:torture/rpc/netlogon.c - activate "AddressToSitenames" tests which do run ↵Matthias Dieter Wallnöfer2010-06-181-12/+16
| | | | against s4
* s4:lib: merge LDB_WRAP and LDBSAMBA and make LDBSAMBA a library.Stefan Metzmacher2010-06-161-1/+1
| | | | | | | | | This is needed to remove samba specifc symbols from the bundled ldb, in order to get the ABI right. metze Signed-off-by: Andreas Schneider <asn@samba.org>
* s3/s4:netrEnumerateTrustedDomains - this call returns a "NTSTATUS" resultMatthias Dieter Wallnöfer2010-05-311-1/+1
| | | | See MS-NRPC 3.5.5.6.3.
* s4:torture/rpc/netlogon.c - add another "LogonGetDomainInfo" testcaseMatthias Dieter Wallnöfer2010-05-311-0/+17
| | | | Mark it as dangerous since it does break some target systems.
* s4:torture Add tests to demonstrate S2U4Self in the RPC-PAC testAndrew Bartlett2010-05-201-1/+1
| | | | | | | | We also compare against SamLogon to try and validate the whole thing. Note that we must represent NULL as "" when comparing between the PAC and SamLogon, due to different marshalling of the structures. Andrew Bartlett
* s4:torture/rpc/netlogon.c - don't use constant "AF_LOCAL" but do use ↵Matthias Dieter Wallnöfer2010-05-111-2/+2
| | | | | | "AF_UNIX" instead "AF_LOCAL" isn't portable but has the same value as "AF_UNIX".
* s4:torture - DsRAddressToSitenames[Ex]W testsuite - make it IPv4-only compatibleMatthias Dieter Wallnöfer2010-04-271-4/+56
|
* s4-netlogon: fixed getDcNameEx2 for blank inputsAndrew Tridgell2010-04-281-0/+9
| | | | | | | | | w2k8r2 returns the local DC information on no inputs for getDcNameEx2. This is needed for starting dsa.msc (ADUC) on Win7. CDLAP on the same call returns an error. This uses a parameter fill_on_blank_request to distinguish the two cases.
* s4-torture: not all platforms have defines like AF_AX25Andrew Tridgell2010-04-271-6/+6
| | | | all we need are invalid values here, so just use fixd high values.
* s4:torture - DsRGetDcSiteCoverageW - adapt test to check for the sitenameMatthias Dieter Wallnöfer2010-04-271-0/+24
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4:torture - DsRGetSiteName - move "skip" statement before the ↵Matthias Dieter Wallnöfer2010-04-271-3/+3
| | | | | | | | "computer_name" check We don't support the check for the computer name on the RPC server side. Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4:torture - GetAnyDCName - adaptionsMatthias Dieter Wallnöfer2010-04-271-2/+23
| | | | | | | | | - Check for the various domainname set modes (on NULL and "" the domain should be the default domain on the server) - support return value "WERR_NO_SUCH_DOMAIN" (the server is the PDC of the domain) Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4:torture - DsRAddressesToSitenames - enhance the testsuiteMatthias Dieter Wallnöfer2010-04-271-24/+264
| | | | | | This shows the Windows behaviour of these two calls which we should match. Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4:torture/rpc/netlogon.c - fix typoMatthias Dieter Wallnöfer2010-04-201-1/+1
|
* s4:torture/rpc: rename rpc.h => torture_rpc.hStefan Metzmacher2010-04-141-1/+1
| | | | | | | | | | | The reason for this is that some systems include <rpc/rpc.h> from within system headers. HP-UX 11.00 does so somewhere deep inside of <shadow.h>. For torture/winbind/struct_based.c <rpc/rpc.h> resolves to torture/rpc/rpc.h and breaks the build. metze
* s4:torture/netlogon - enhance test for "dcesrv_netr_DsRGetDCNameEx2"Matthias Dieter Wallnöfer2010-04-131-0/+20
| | | | Test for right domainname handling.