summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* s4:torture: add a check for talloc success in rpc.samba3.randomauth2Michael Adam2012-04-281-1/+1
| | | | | Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Sat Apr 28 02:10:39 CEST 2012 on sn-devel-104
* s4:torture: add a check for talloc success in the rpc.samba3 suiteMichael Adam2012-04-281-0/+1
|
* s4:torture: add a rpc.samba3.smb2-reauth2 testMichael Adam2012-04-281-0/+136
| | | | like smb-reauth2, only for smb2
* s4:torture: add a rpc.samba3.smb2-reauth1 testMichael Adam2012-04-271-1/+161
|
* s4:librpc: create a binding on the pipe if necessary in ↵Stefan Metzmacher2012-04-271-0/+15
| | | | | | dcerpc_pipe_open_smb2_send() Pair-Programmed-With: Michael Adam <obnox@samba.org>
* selftest: Add test to ensure that bug #8872 does not come backAndrew Bartlett2012-04-271-0/+3
| | | | | | | | | The raw.composite test checks that we handle mutliple concurrent connections. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Fri Apr 27 16:25:37 CEST 2012 on sn-devel-104
* selftest: Place the test environment at the end of the failure linesAndrew Bartlett2012-04-274-53/+63
| | | | | | | This allows a knownfail entry to be added for only one environment, rather than all environments. Andrew Bartlett
* selftest: Remove silly space before unit test nameAndrew Bartlett2012-04-272-58/+62
| | | | | | When we have no description, there is no need for a leading space here Andrew Bartlett
* s3:winbindd: also try SMB2 when connecting to "IPC$"Stefan Metzmacher2012-04-271-7/+20
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Fri Apr 27 13:10:15 CEST 2012 on sn-devel-104
* s3:libsmb/cli_np_tstream: add support for SMB2Stefan Metzmacher2012-04-271-41/+190
| | | | metze
* s3:libsmb/cli_np_tstream: remove unused tstream_cli_np_existing()Stefan Metzmacher2012-04-272-34/+0
| | | | metze
* s3:libsmb: add smb2cli_ioctl*Stefan Metzmacher2012-04-274-0/+360
| | | | metze
* libcli/smb: move SMB2_IOCTL_FLAG_IS_FSCTL to smb2_constants.hStefan Metzmacher2012-04-272-3/+3
| | | | metze
* s4:ntvfs/ipc: don't echo back the smb2 ioctl input_bufferStefan Metzmacher2012-04-271-1/+1
| | | | metze
* s3: oplock_timeout is a talloc child of fspVolker Lendecke2012-04-261-3/+0
| | | | | | | | | Jeremy, I know you like it explicit, but I stumbled across this explicit TALLOC_FREE and asked myself about a potentially wrong talloc hierarchy. Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Thu Apr 26 23:00:03 CEST 2012 on sn-devel-104
* s3: Remove code TALLOC_FREE already doesVolker Lendecke2012-04-261-5/+1
|
* torture: change dfs tests now that we return a level 4 when level 4 is requestedMatthieu Patou2012-04-261-3/+2
| | | | | Autobuild-User: Matthieu Patou <mat@samba.org> Autobuild-Date: Thu Apr 26 21:25:37 CEST 2012 on sn-devel-104
* dfs_server: fix the response to please XP and Windows 2008R2 doing so avoid ↵Matthieu Patou2012-04-261-4/+12
| | | | continious DFS requests from W2K8R2
* replace: Fix use of mktempSimo Sorce2012-04-261-2/+2
| | | | | | | | mktemp always returns the template, so checking for NULL doesn't cactch any error. Errors are reported by turning the template into an empty string. Autobuild-User: Simo Sorce <idra@samba.org> Autobuild-Date: Thu Apr 26 16:14:24 CEST 2012 on sn-devel-104
* addns: clean up headersSimo Sorce2012-04-261-33/+0
| | | | All this stuff is already included properly in the replace headers on top.
* s3: Remove an unused variableVolker Lendecke2012-04-261-1/+0
| | | | | Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Thu Apr 26 12:17:14 CEST 2012 on sn-devel-104
* s4-torture: never return false in the raw.composite torture testAndrew Bartlett2012-04-261-39/+7
| | | | | | | | | | | We must use torture_assert() macros to ensure that the failure is recorded in the subunit stream correctly, rather than being returned as an unknown 'error'. (We cannot handle error results as knownfail). Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Thu Apr 26 04:00:16 CEST 2012 on sn-devel-104
* selftest: push --target selection into plansmbtorturetestsuiteAndrew Bartlett2012-04-261-3/+4
|
* s4:torture: add a rpc.samba3.smb-reauth2 testMichael Adam2012-04-261-0/+145
| | | | | | | | | | | | | | | * Open session. * Reauth to anon. * Open lsa pipe. * Do lsa get username. * Rauth to original user. * Do lsa get username again. expected result: the getusername works and shows 'NT AUTHORITY\ANONYMOUS LOGON' in both calls. Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Thu Apr 26 02:27:12 CEST 2012 on sn-devel-104
* s4:torture: add a rpc.samba3.smb-reauth1 testMichael Adam2012-04-251-0/+165
| | | | | | | | | | | | | | | It does reauth while using an rpc pipe: * open session * open lsa pipe * do lsa getusername * reauth to anonymous * do lsa getusername again * reauth back to original user * do reauth again result: lsa getusername is always possible and always gives the first (authenticated user)
* s4:torture: add a raw.session suite with a raw.session.reauth testGregor Beck2012-04-253-1/+92
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* Fix bug reported by Dina_Fine@Dell.com.Jeremy Allison2012-04-251-16/+19
| | | | | | | | Don't ask the DC for an IP list when locating kdc's. Ask for the name and use getaddrinfo to get all possible addresses instead. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Apr 25 22:01:18 CEST 2012 on sn-devel-104
* libcli: Use data_blob_nullVolker Lendecke2012-04-251-1/+1
| | | | | Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Wed Apr 25 18:54:51 CEST 2012 on sn-devel-104
* selftest: remove printserver.enum_printers_servername from flappingMichael Adam2012-04-251-1/+0
| | | | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Autobuild-User: Andreas Schneider <asn@cryptomilk.org> Autobuild-Date: Wed Apr 25 17:18:28 CEST 2012 on sn-devel-104
* selftest: remove samba3.rpc.spoolss.*printserver.openprinter_badnamelist ↵Michael Adam2012-04-251-1/+0
| | | | | | from flapping Signed-off-by: Andreas Schneider <asn@samba.org>
* selftest: mark the driver_info_winreg tests knownfail.Michael Adam2012-04-251-0/+2
| | | | | | They only get executed when driver files are around. Signed-off-by: Andreas Schneider <asn@samba.org>
* selftest: mark failing print_tests more specificallyMichael Adam2012-04-251-1/+1
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* selftest: remove .*printer.*print_test_extended from flappingMichael Adam2012-04-251-1/+0
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* selftest: remove the "rpc.spoolss.printer" test from flappingMichael Adam2012-04-251-1/+0
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* s3:registry: replace call to reg_openkey() in reg_createkey() by accesscheck.Michael Adam2012-04-251-8/+10
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* s3:registry: remove a superfluous fill_subkey_cache() in reg_createkey()Michael Adam2012-04-251-5/+0
| | | | | | Pair-Programmed-With: Gregor Beck <gbeck@sernet.de> Signed-off-by: Andreas Schneider <asn@samba.org>
* s3:registry: use fill_subkey_cache to check exsistence in ↵Michael Adam2012-04-251-11/+2
| | | | | | | | regkey_open_onelevel(). Pair-Programmed-With: Gregor Beck <gbeck@sernet.de> Signed-off-by: Andreas Schneider <asn@samba.org>
* s3:registry: let fill_subkey_cache return WERR_BADFILE when the subkey list ↵Michael Adam2012-04-251-1/+1
| | | | | | | | | | could not be loaded WERR_NO_MORE_ITEMS seems inappropriate. Pair-Programmed-With: Gregor Beck <gbeck@sernet.de> Signed-off-by: Andreas Schneider <asn@samba.org>
* s3:registry: convert reg_openkey() to use talloc instead of SMB_STRDUP etcMichael Adam2012-04-251-15/+12
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* s3:registry untangle an assignment from the check in regkey_open_onelevel()Michael Adam2012-04-251-1/+2
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* s3:registry: untangle assignment from check in regkey_open_onelevel()Michael Adam2012-04-251-1/+2
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* s3:registry: fix seqnum race in regdb_fetch_keys_internalMichael Adam2012-04-251-3/+22
| | | | | | | | | | | This prevents race between fetching seqnum and key content. Because there is currently no way to atomically fetch the record along with the seqnum, I use a loop. This is far from optimal and should should ideally be done differently. But for now it fixes the race. Signed-off-by: Andreas Schneider <asn@samba.org>
* s3:registry: fix seqnum race in fetch_values_internalMichael Adam2012-04-251-3/+21
| | | | | | | | | | | This prevents race between fetching seqnum and key content. Because there is currently no way to atomically fetch the record along with the seqnum, I use a loop. This is far from optimal and should should ideally be done differently. But for now it fixes the race. Signed-off-by: Andreas Schneider <asn@samba.org>
* s3:registry: update the seqnum in the subkey cache at the end of ↵Michael Adam2012-04-251-1/+5
| | | | | | | | | | | | | regval_store_keys The purpose is to prevent next reads from going to disk. Note that this will currently only be effective with local tdbs, not with ctdb: For tdb, store and delete bump the seqnum while transaction commit does not. For ctdb, transaction commit bumps the seqnum, while store and delete don't... This needs fixing (in ctdb). Signed-off-by: Andreas Schneider <asn@samba.org>
* s3:registry:db: update the value container seqnum after storing/deleting to ↵Michael Adam2012-04-251-1/+22
| | | | | | | | | | | | prevent next read from going to disk if possible Note that this will currently only be effective in the local TDB implementation. For CTDB, this wont work since seqnum currently works differently there (needs fixing): For tdb, store and delete operations bump the db seqnum, while transaction commits don't. For ctdb, the seqnum is bumped by the transaction commit but not by store and delete operations. Signed-off-by: Andreas Schneider <asn@samba.org>
* s3:registry: wrap reg_deletekey() into a transactionMichael Adam2012-04-251-2/+25
| | | | | | This is wrong layering but fixes a race condition. Signed-off-by: Andreas Schneider <asn@samba.org>
* s3:registry: wrap reg_createkey() in a transactionMichael Adam2012-04-251-6/+30
| | | | | | | | | This is wrong layering (calling into regdb_transaction* in the reg_api code) but fixes a potential race. It makes the multi-step create procedure atomic. This should completely be done in the backend. Signed-off-by: Andreas Schneider <asn@samba.org>
* s3:registry: untangle assignments from checks in reg_createkey()Michael Adam2012-04-251-2/+6
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* s3:registry: wrap reg_deletevalue() in a transactionMichael Adam2012-04-251-4/+30
| | | | | | | This is at the wrong layer, but if fixes a race potentially causing data corruption by concurrent access. Signed-off-by: Andreas Schneider <asn@samba.org>
* s3:registry: untangle assignment from check in reg_deletevalue()Michael Adam2012-04-251-1/+2
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>