summaryrefslogtreecommitdiffstats
path: root/source3
Commit message (Collapse)AuthorAgeFilesLines
...
* s3:dbwrap_ctdb: add debug message to transaction_fetch_start()Michael Adam2009-11-031-0/+4
| | | | | | | | for the case that another local process has started a transaction bewteen releasing the transaction_lock record and starting the transaction. Michael
* s3:dbwrap_ctdb: split combined check in two and add descriptive debugMichael Adam2009-11-031-1/+14
| | | | | | | in db_ctdb_transaction_fetch_start() for error conditions when re-fetching the transaction_lock record inside the transaction Michael
* s3:dbwrap_ctdb: fix race condition with concurrent transactions on the same ↵Michael Adam2009-11-031-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | node. In ctdb_transaction_commit(), when the trans2_commit control fails, there is a race condition in the 1 second sleep between the local transaction_cancel and the call to ctdb_replay_transaction(): The database is not locked, and neither is the transaction_lock record. So another client can start and possibly complete a new transaction in this gap, but only on the same node: The locking of the transaction_lock record on a different node which involves migration of the record to the other node has been disabled by introduction of the transaction_active flag on the db which closes precisely this gap from the start of the commit until the call to TRANS2_FINISH or TRANS2_ERROR. But this mechanism does not cover the case where a process on the same node tries to start a transaction: There is no obstacle to locking the transaction_lock record because the record does not need to be migrated. This commit closes this race condition in ctdb_transaction_fetch_start() by using the new ctdb_ctrl_transaction_active() call to ask the local ctdb daemon whether it has a transaction running on the database. If so, the check is repeated until the running transaction is done. This does introduce an additional call to the local ctdbd when starting transactions, but it does close the (hopefully) last race condition. Michael
* s3:configure: add a check for the new CTDB_CONTROL_TRANS2_ACTIVEMichael Adam2009-11-031-0/+17
| | | | Michael
* s3:dbwrap_ctdb: add new db_ctdb_transaction_active() that calls ↵Michael Adam2009-11-031-0/+21
| | | | | | CTDB_CONTROL_TRANS2_COMMIT Michael
* s3:dbwrap_ctdb: fix a race in starting concurrent transactions on a single nodeMichael Adam2009-11-031-0/+25
| | | | | | | | | | | | There are two races in concurrent transactions on a single node. One in starting a transaction and one with replay during commit. This commit closes the first race by storing the client pid in the transaction-lock record and comparing the stored pid against its own pid after releasing the lock and refetching the record inside the transaction. Michael
* s3:dbwrap_ctdb: use db_ctdb_ltdb_fetch() inside db_ctdb_transaction_fetch_startMichael Adam2009-11-031-6/+4
| | | | Michael
* s3:dbwrap_ctdb: use db_ctdb_ltdb_fetch() inside db_ctdb_transaction_fetch()Michael Adam2009-11-031-16/+6
| | | | Michael
* s3:dbwrap_ctdb: add a function db_ctdb_ltdb_fetch()Michael Adam2009-11-031-0/+53
| | | | | | This fetches a record from the db and splits out the ctdb header. Michael
* s3:dbrwap_ctdb: add a function db_ctdb_ltdb_store()Michael Adam2009-11-031-27/+39
| | | | | | and use it in db_ctdb_store() and db_ctdb_transaction_store(). Michael
* s3:dbwrap_ctdb: reformat a comment slightly to enhance clearness.Michael Adam2009-11-031-3/+5
| | | | Michael
* Fix bug 6867 - trans2findnext returns reply_nterror(req, ntstatus) In a ↵Jeremy Allison2009-11-021-12/+16
| | | | | | directory with a lot of files. Jeremy.
* s3: Fix a 100% CPU loop when ctdbd dies during a traverseVolker Lendecke2009-11-021-0/+1
|
* s3-gencache: restore gencache_get behavior with NULL args (with torture test).Günther Deschner2009-11-022-4/+13
| | | | | | | | | Without this, we panic in wins_srv_is_dead() and fail to start nmbd with wins support. Volker, please check. Guenther
* s3: Make "debug hires timestamp" default to trueVolker Lendecke2009-11-021-1/+1
| | | | It does not cost much and can help a lot when debugging
* lib/util Use rfc1738.c from Squid for all our URL encode/decode needs.Andrew Bartlett2009-11-021-1/+1
| | | | Andrew Bartlett
* s3:ldap: don't search when no values where foundBjörn Jacke2009-11-021-1/+1
|
* s3: Fix the RPC server SUBSYSTEM declarationVolker Lendecke2009-10-311-1/+1
| | | | | | | | | | If I read SMB_SUBSYSTEM right then the 2nd argument needs to be the file where the static_init_rpc (in this case) is defined. This seems to have moved from server.c to process.c. Jelmer, please check! Volker
* s3:Makefile: add LIBREPLACE_LIBS for talloc, tdb and wbclientBjörn Jacke2009-10-311-3/+3
|
* ѕ3:buildsystem: fix depenencies for libreplaceBjörn Jacke2009-10-312-8/+7
| | | | | | | | | This problem became visible after adding the picky -z defs linker option: On Solaris libreplace had unresolved symbols, which showed up in the libtalloc build. PAM_WINBIND_EXTRA_LIBS and WINBIND_NSS_EXTRA_LIBS had been workarounds to make things work at two placeѕ. These variables have been obsoleted now. This patch introduces LIBREPLACE_LIBS which contans the linker flags needed for linking anything using libreplace.
* ѕ3:ldap: search for account policies in objectclass sambaDomain, not *Björn Jacke2009-10-311-1/+6
|
* s3-rpcclient: add deletetrustdom command.Günther Deschner2009-10-301-0/+89
| | | | Guenther
* s3-rpcclient: add createtrustdom command.Günther Deschner2009-10-301-0/+45
| | | | Guenther
* s3-lsa: expand struct lsa_info to carry name and sd.Günther Deschner2009-10-301-0/+2
| | | | Guenther
* s3-lsa: use switch in _lsa_QuerySecurity().Günther Deschner2009-10-301-3/+7
| | | | Guenther
* Start fixing the RAW-STREAMS test - ensure that the xattrJeremy Allison2009-10-293-2/+3
| | | | | | used to store the stream info in streams_depot.so is not seen in when enumerating EAs. Jeremy.
* s3: Fix incorrect rc check of nscd_flush_cache.Jim McDonough2009-10-291-1/+1
| | | | At least this only resulted in an incorrect debug message.
* s3-secrets: use autogenerated code for TRUSTED_DOM_PASS struct parsing from ↵Günther Deschner2009-10-293-233/+38
| | | | | | a tdb. Guenther
* s3: add secrets.idl.Günther Deschner2009-10-295-1/+140
| | | | Guenther
* Add in Metze's new code to ndr encode the user.DOSATTRIBStefan (metze) Metzmacher2009-10-281-0/+1
| | | | | blobs. Next I'll change the create timestamp and dos attribute code to use this.
* Fix bug 6572 - libsmbclient: unable to access 'msdfs proxy' share.SATOH Fumiyasu2009-10-283-46/+120
|
* s3:net: fix output of net rpc trustdom listBjörn Jacke2009-10-281-3/+5
| | | | | Move some messages from stderr to stdout. When some trusting DCs were unreachable we lacked \n's on stdout which screwed up whole the output.
* s3:configure: only check for gpfs_gpl.hStefan Metzmacher2009-10-281-25/+5
| | | | | | | | The header is everything we need in order to build vfs_gpfs. metze Signed-off-by: Michael Adam <obnox@samba.org>
* s3-passdb: move open_schannel_session_store() to passdb/secrets_schannel.c.Günther Deschner2009-10-283-64/+64
| | | | Guenther
* s3-net: acct_flags are uint32_t in net_sam_set_userflag().Günther Deschner2009-10-281-1/+1
| | | | Guenther
* s3-lsa: add lsa_trusted_domain_mapping.Günther Deschner2009-10-281-0/+7
| | | | Guenther
* s3-passdb: add secrets_delete_generic().Günther Deschner2009-10-282-0/+17
| | | | Guenther
* s3-lsa: add lsa_secret_mapping.Günther Deschner2009-10-281-0/+7
| | | | Guenther
* s3-lsa: use correct function name in_lsa_RemoveAccountRights().Günther Deschner2009-10-281-1/+1
| | | | Guenther
* s3-lsa: pure cosmetic indentation fixes.Günther Deschner2009-10-281-18/+16
| | | | Guenther
* s3-lsa: use enum lsa_LookupNamesLevel in lsa_lookup_level_to_flags().Günther Deschner2009-10-281-7/+8
| | | | Guenther
* s3: pdbedit: add option --kickoff-time/-K to set the user's kickoff timeMichael Adam2009-10-271-4/+28
| | | | | | Use "never" as argument to set this to unlimited. Michael
* Second part of the fix for bug 6828 - infinite timeout occurs when byte lock ↵Jeremy Allison2009-10-261-6/+9
| | | | | | | | held outside of samba. Fixes case where a connection with a pending lock can me marked "idle", and ensures that the lock queue timeout is always recalculated. Jeremy.
* s3: Rename new parameter "ldap ref follow" to "ldap follow referral".Karolin Seeger2009-10-263-8/+8
| | | | | | This parameter will be introduced with Samba 3.5.0. Karolin
* Fix bug 6802 - A created folder does not properly inherit permissions from ↵Barry Sabsevitz2009-10-231-4/+38
| | | | parent.
* Simplify the logic.Jeremy Allison2009-10-221-5/+2
| | | | Jeremy.
* Fix bug 6829 - smbclient does not show special characters properly.Jeremy Allison2009-10-222-0/+20
| | | | | | | | | | | | All successful calls to cli_session_setup() *must* be followed by calls to cli_init_creds() to stash the credentials we successfully connected with. There were 2 codepaths where this was missing. This caused smbclient to be unable to open the \srvsvc pipe to do an RPC netserverenum, and cause it to fall back to a RAP netserverenum, which uses DOS codepage conversion rather than the full UCS2 of RPC, so the returned characters were not correct (unless the DOS codepage was set correctly). Phew. That was fun to track down :-). Jeremy.
* s3: Remove a pointless #endif/#ifdef pairVolker Lendecke2009-10-221-2/+0
|
* s3:Makefile: add some explicit dependencies to libcBjörn Jacke2009-10-211-2/+2
| | | | | | | Add libc as explicit dependency where we use "-z defs" linker flags. This is to silence the Sun linker. Otherwise it whines: malloc ... (symbol belongs to implicit dependency /lib/libc.so.1)
* s3-lsa: Fix _lsa_EnumTrustDom() and avoid infite windows client loop.Günther Deschner2009-10-211-0/+9
| | | | | | Found by RPC-LSA-TRUSTED-DOMAIN torture test. Guenther