summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* s3:dbwrap_ctdb: fix logic error in pull_newest_from_marshall_buffer().Michael Adam2010-02-121-1/+5
| | | | | | | | | | | The logic bug was that if a record was found in the marshall buffer, then always the ctdb header of tha last record in the marshall buffer was returned, and not the ctdb header of the last occurrence of the requested record. This is fixed by introducing an additional temporary variable. Michael
* s3:dbwrap_ctdb: fix an uninitialized variable.Michael Adam2010-02-121-1/+1
| | | | Michael
* s3:dbwrap_ctdb: fix two "may be used uninitialized" warningsMichael Adam2010-02-121-0/+3
| | | | Michael
* s3:dbwrap_ctdb: fix db_ctdb_fetch_db_seqnum_from_db() when NT_STATUS_NOT_FOUND.Michael Adam2010-02-121-1/+5
| | | | | | Don't treat this as an error but return seqnum 0 instead. Michael
* s3:dbwrap: If "-n" is given to dbwrap_torture, open db with CLEAR_IF_FIRSTVolker Lendecke2010-02-121-0/+4
|
* s3:build: remove checks for deprecated ctdb controls.Michael Adam2010-02-121-35/+1
| | | | Michael
* s3:dbwrap_ctdb: maintain a database sequence number that bumps in transactionsMichael Adam2010-02-121-5/+116
| | | | | | | | | | | | | | | | | | | | | | For persistent databases, 64bit integer is kept in a special record __db_sequence_number__. This record is incremented with each completed transaction. The retry mechanism for failing TRANS3_COMMIT controls inside the db_ctdb_transaction_commit() function now relies one a modified behaviour of ctdbd's treatment of persistent databases in recoveries. Recently, a special treatment for persistent databases had been introduced in ctdb (1.0.108) to work around the problems with the orinal design of persistent transactions. Now with the rewrite we need to revert to the old behaviour that ctdb always takes the newest copies of all records. This change also paves the way for a next step, which will make recovery use the db seqnum to tell which node has the newest copy of a persistent db and use that node's copy. This will greatly reduce the amount of data transferred with each recovery. Michael
* s3:dbwrap_ctdb: change db_ctdb_transaction_store() to return NTSTATUS.Michael Adam2010-02-121-18/+12
| | | | | | | The return values calculated by the callers were wrong anyways since the new marshalling code does not set the local tdbs tdb error code. Michael
* s3:dbwrap_ctdb: update (C)Michael Adam2010-02-121-1/+2
| | | | Michael
* build: Add a configure check for CTDB_CONTROL_TRANS3_COMMIT.Michael Adam2010-02-121-0/+17
| | | | | | | This is the new implementation of ctdb transactions using the global lock feature. It is needed by the current dbwrap_ctdb code. Michael
* s3: Add tdb_data_equalVolker Lendecke2010-02-122-0/+9
|
* s3:torture: add a test LOCAL-DBTRANS to torture dbwrap with transactions.Volker Lendecke2010-02-121-0/+130
|
* s3:dbwrap_ctdb: start rewrite of transactions using the global lock (g_lock)Michael Adam2010-02-121-320/+160
| | | | | | | | | | | | | | | | This simplifies the transaction code a lot: * transaction_start essentially consists of acquiring a global lock. * No write operations at all are performed on the local database until the transaction is committed: Every store operation is just going into the marshall buffer. * The commit operation calls a new simplified TRANS3_COMMIT control in ctdb which rolls out thae changes to all nodes including the node that is performing the transaction. Michael
* s3: setup debug for smbtortureVolker Lendecke2010-02-121-0/+2
|
* s3: Add ctdb_conn_msg_ctx()Volker Lendecke2010-02-122-0/+6
|
* s3: Implement global locks in a g_lock tdbVolker Lendecke2010-02-1211-7/+950
| | | | | | This is the basis to implement global locks in ctdb without depending on a shared file system. The initial goal is to make ctdb persistent transactions deterministic without too many timeouts.
* s4:kdc Fill in created_by principal fieldSimo Sorce2010-02-121-4/+7
|
* s4:kdc Fix double free and uninitialized memory.Simo Sorce2010-02-121-2/+13
| | | | | | In samba_kdc_trust_message2entry() on error, hdb_free_entry() may end up trying to access uninitialized memory or double free the hdb_entry.
* testprogs: print all printerinfo levels in spoolss test.Günther Deschner2010-02-121-2/+26
| | | | Guenther
* s4:auth/credentials/credentials.c - Initialise the "lm_response" and ↵Matthias Dieter Wallnöfer2010-02-121-0/+5
| | | | | | | "nt_response" structures In some cases those structures are not initialised and the whole authentication system crashes with a SIGSEGV. Bug discovered by Matthieu Patou in bug #6755.
* s4:getopt.py - set the password callback only when no password has been providedMatthias Dieter Wallnöfer2010-02-121-4/+6
| | | | | | | | | | Previously the "no_pass" and "no_pass2" variables weren't handled correctly. Since at the initialisation of the "CredentialsOptions" we don't have any password at all. Only afterwards we could get one through "set_password". If a password is specified, use it. If no password is specified, consider the use fo an input mask on STDOUT. But if the loadparm context contains one prefer it over the input.
* s4:net_drs_bind: make some more stuff staticStefan Metzmacher2010-02-121-2/+2
| | | | metze
* s4:net/drs: use the full path to "utils/net/drs/net_drs*.h"Stefan Metzmacher2010-02-125-5/+5
| | | | | | This fixes the build with automatic dependecies. metze
* s3: notify_onelevel does not use seqnums, so don't open asking for itVolker Lendecke2010-02-121-1/+1
|
* spoolss: regenerate hand-marshalled ndr_pull_spoolss_DriverInfo101 after ↵Günther Deschner2010-02-121-0/+1
| | | | | | ndr64 changes. Guenther
* spoolss: make sure hand-marshalled spoolss_DriverInfo101 handles ↵Günther Deschner2010-02-121-0/+30
| | | | | | relative_highest_offset. Guenther
* spoolss: regenerate hand-marshalled ndr_push_spoolss_DriverInfo101 after ↵Günther Deschner2010-02-121-1/+2
| | | | | | ndr64 changes. Guenther
* Remove the code replaced by widelinks warning.Jeremy Allison2010-02-111-7/+0
| | | | Jeremy.
* Remove lp_safe_widelinks() -> convert to just lp_widelinks. Suggestion from ↵Jeremy Allison2010-02-115-10/+26
| | | | | | | | Volker. Create widelinks_warning(int snum) to cover the message needed in make_connection. Jeremy.
* s3 test: Make the netbios name test pass againKai Blin2010-02-111-0/+2
|
* s4: Switch to S3-style id mapping data types.Kai Blin2010-02-1114-82/+97
|
* s4 idmap: Make the sid_to_xid and xid_to_sid calls static.Kai Blin2010-02-111-4/+8
| | | | Looking at the winbind interface, we should only be using the bulk conversion calls.
* libwbclient: Test wbcLookupName async functionsKai Blin2010-02-111-0/+79
|
* libwbclient: Implement wbcLookupName_send/recvKai Blin2010-02-112-0/+137
|
* libwbclient: Implement wbcAuthenticateUserEx_send/recvKai Blin2010-02-112-0/+280
|
* libwbclient: Implement wbcLookupSid_send/recvKai Blin2010-02-112-0/+140
|
* libwbclient: Implement wbcGidToSid_send/recvKai Blin2010-02-112-0/+117
|
* libwbclient: Implement wbcSidToGid_send/recvKai Blin2010-02-112-0/+107
|
* libwbclient: Implement wbcUidToSid_send/recvKai Blin2010-02-112-0/+116
|
* libwbclient: Implement wbcSidToUid_send/recvKai Blin2010-02-112-0/+108
|
* libwbclient: Add wbcInterfaceDetails_send/recvKai Blin2010-02-113-5/+231
|
* libwbclient: Add wbcDomainInfo_send/recv callsKai Blin2010-02-112-1/+155
|
* libwbclient: Add wbcDomainName_send/recv callKai Blin2010-02-112-0/+101
|
* libwbclient: Add wbcNetbiosName_send/recv callsKai Blin2010-02-112-0/+102
|
* libwbclient: Add async wbcInfo_send()/wbcInfo_recv() callsKai Blin2010-02-112-0/+106
|
* libwbclient: add wbcInterfaceVersion send/recv callsKai Blin2010-02-112-0/+98
|
* libwbclient: torture-test wbcPing async functions.Kai Blin2010-02-111-0/+20
|
* libwbclient: Add async wbcPing_send/_recvKai Blin2010-02-112-1/+87
|
* libwbclient: Zero out context on initializationKai Blin2010-02-111-1/+1
| | | | This prevents a segfault when using wbcDebug without prior call to wbcSetDebug
* Final part of jumbo patch for bug #7104 - "wide links" and "unix extensions" ↵Jeremy Allison2010-02-111-0/+12
| | | | | | | | | | | are incompatible. Volker pointed out that the preexec scripts get passed the conn->connectpath as a parameter, so call canonicalize_connect_path() both *before* and after the preexec scripts. Ignore errors on the call before the preexec scripts, as the path may not exist until created by the preexec scripts. Jeremy.