summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* 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>
* s3:registry: fix race in reg_setvalue that could lead to data corruptionMichael Adam2012-04-251-6/+33
| | | | | | | | (there was no lock around fetching the values and storing them) The layering is wrong in that it uses regdb transactions in reg_api Signed-off-by: Andreas Schneider <asn@samba.org>
* s3:registry: untangle assignment from check and add a debugmessage in ↵Michael Adam2012-04-251-1/+3
| | | | | | reg_setvalue() Signed-off-by: Andreas Schneider <asn@samba.org>
* s3:registry: don't leak the old contents when updating the value cacheMichael Adam2012-04-251-0/+1
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* s3:registry: fix debug message in regdb_store_values_internal()Michael Adam2012-04-251-1/+1
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* s3:registry: improve log message in regdb_unpack_values()Michael Adam2012-04-251-1/+2
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* s3:registry: fix a debug message typoMichael Adam2012-04-251-1/+1
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* s3:registry: add a new function regval_ctr_value_byname()Michael Adam2012-04-252-0/+20
| | | | | | | This is like regval_ctr_key_exists() but does not return bool, but the regval_blob instead, if found, and NULL if not found. Signed-off-by: Andreas Schneider <asn@samba.org>
* s3:registry: rename regval_ctr_key_exists() to regval_ctr_value_exists()Michael Adam2012-04-253-4/+4
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* s4:torture:rpc:spoolss: also initialize driverName before checking it in ↵Michael Adam2012-04-251-0/+1
| | | | | | test_PrinterData_DsSpooler() Signed-off-by: Andreas Schneider <asn@samba.org>
* s3:registry:reg_api: fix reg_queryvalue to not fail when values are modified ↵Michael Adam2012-04-251-1/+45
| | | | | | while it runs Signed-off-by: Andreas Schneider <asn@samba.org>
* s3:registry: make regdb_values_need_update() staticMichael Adam2012-04-252-2/+1
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* s3:registry: make regdb_subkeys_need_update() staticMichael Adam2012-04-252-2/+1
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* s3:registry: make regdb_store_values() staticMichael Adam2012-04-252-2/+1
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* s3:registry: make regdb_fetch_values() staticMichael Adam2012-04-252-2/+1
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* s3:registry: make regdb_fetch_keys() staticMichael Adam2012-04-252-2/+1
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* s3:registry: make regdb_store_keys() staticMichael Adam2012-04-252-2/+1
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* s3:registry: printing backend: use regdb options via ops struct, not directlyMichael Adam2012-04-251-9/+10
| | | | | | | | just like the other backends. This is in preparation of making the backend functions private Signed-off-by: Andreas Schneider <asn@samba.org>