summaryrefslogtreecommitdiff
path: root/source3/utils/status.c
AgeCommit message (Collapse)AuthorFilesLines
2013-04-19s3:smbstatus do not print orphaned share entriesChristian Ambach1-0/+6
Pair-Programmed-With: Volker Lendecke <vl@samba.org> Signed-off-by: Christian Ambach <ambi@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
2013-02-19s3:utils: make use of samba_tevent_context_init()Stefan Metzmacher1-1/+1
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
2012-07-18s3:smbstatus add --fast optionChristian Ambach1-4/+11
this option skips all checks if the process for the record is still there using it gives a huge performance benefit on busy systems and clusters while it might display stale data if a smbd crashed
2012-07-18s3:smbstatus don't check if process exists twiceChristian Ambach1-4/+0
is_valid_share_mode_entry() already calls serverid_exists which calls process_exists()
2012-07-18s3:smbstatus rename a function to make its purpose more clearChristian Ambach1-4/+4
traverse_fn1 does not really intuitively make clear that it is used to traverse connections
2012-07-18s3:smbstatus fix a compiler warningChristian Ambach1-1/+1
about comparison of signed with unsigned
2012-06-21s3:util: rename procid_equal() to serverid_equal()Michael Adam1-1/+1
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-06-21s3:smbstatus: use procid_equal() instead of equivalent cluster_id_equal()Michael Adam1-1/+2
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-06-06s3:smb: introduce a name TID_FIELD_INVALID for the invalid value for a cnum/tidMichael Adam1-1/+1
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
2012-06-06s3:utils: use smbd/smbd.h instead of just smbd/proto.hStefan Metzmacher1-1/+1
This fixes compiler warnings regarding incomplete types. metze
2012-06-05s3:lib: split things into a conn_tdb.hStefan Metzmacher1-0/+1
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Jun 5 19:28:35 CEST 2012 on sn-devel-104
2012-04-17s3: Add smbstatus -N to output the notify dbVolker Lendecke1-0/+40
Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Tue Apr 17 11:54:35 CEST 2012 on sn-devel-104
2012-03-04s3-auth: Remove security=share (depricated since 3.6).Andrew Bartlett1-4/+0
This patch removes security=share, which Samba implemented by matching the per-share password provided by the client in the Tree Connect with a selection of usernames supplied by the client, the smb.conf or guessed from the environment. The rationale for the removal is that for the bulk of security=share users, we just we need a very simple way to run a 'trust the network' Samba server, where users mark shares as guest ok. This is still supported, and the smb.conf options are documented at https://wiki.samba.org/index.php/Public_Samba_Server At the same time, this closes the door on one of the most arcane areas of Samba authentication. Naturally, full user-name/password authentication remain available in security=user and above. This includes documentation updates for username and only user, which now only do a small amount of what they used to do. Andrew Bartlett -------------- / \ / REST \ / IN \ / PEACE \ / \ | SEC_SHARE | | security=share | | | | | | 5 March | | | | 2012 | *| * * * | * _________)/\\_//(\/(/\)/\//\/\///|_)_______
2012-01-18s3: Add a "lock_order" argument to db_openVolker Lendecke1-1/+2
This will be used to enforce a lock hierarchy between the databases. We have seen deadlocks between locking.tdb, brlock.tdb, serverid.tdb and notify*.tdb. These should be fixed by refusing a dbwrap_fetch_locked that does not follow a defined lock hierarchy.
2012-01-12s3: Put an indirection layer into share_mode_lockVolker Lendecke1-3/+5
Signed-off-by: Jeremy Allison <jra@samba.org>
2011-12-12s3: Remove a bunch of calls to procid_self()Volker Lendecke1-2/+1
All callers to messaging_[re]init only used procid_self()
2011-12-02s3: Use autogenerated open_files.idlVolker Lendecke1-0/+1
2011-07-29s3:dbwrap: move all .c and .h files of dbwrap to lib/dbwrap/Michael Adam1-1/+1
Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Fri Jul 29 13:34:22 CEST 2011 on sn-devel-104
2011-07-29s3:dbwrap: move db_open() to a file dbwrap_open.c of its own.Michael Adam1-0/+1
Also start new folder lib/dbwrap/ where dbwrap_open.c is stored and make the fallbacke implementation functoins non-static and create a dbwrap_private.h header file that contains their prototypes.
2011-07-28s3:smbstatus: use lp_load_global() - smbstatus does not need to load shares!Michael Adam1-1/+1
2011-06-20tdb_traverse/tdb_traverse_read: check returns for negative, not -1.Rusty Russell1-1/+1
TDB2 returns a negative error number on failure. This is compatible if we always check for < 0 instead of == -1. Also, there's no tdb_traverse_read in TDB2: we don't try to make traverse reliable any more, so there are no write locks anyway. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2011-03-30s3-messages: only include messages.h where needed.Günther Deschner1-0/+1
Guenther
2011-03-30s3-locking: move locking prototypes out of proto.h.Günther Deschner1-0/+1
Will later become part of locking.h Guenther
2011-03-30s3-includes: only include system/filesys.h when needed.Günther Deschner1-0/+1
Guenther
2011-03-02s3-sessionid: avoid global include of sessionid.hGünther Deschner1-0/+1
Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Wed Mar 2 12:58:12 CET 2011 on sn-devel-104
2010-11-02s3-debug Impove setup_logging() to specify logging to stderrAndrew Bartlett1-3/+1
This change improves the setup_logging() API so that callers which wish to set up logging to stderr can simply ask for it, rather than directly modify the dbf global variable. Andrew Bartlett
2010-10-12libcli/security Provide a common, top level libcli/security/security.hAndrew Bartlett1-0/+1
This will reduce the noise from merges of the rest of the libcli/security code, without this commit changing what code is actually used. This includes (along with other security headers) dom_sid.h and security_token.h Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue Oct 12 05:54:10 UTC 2010 on sn-devel-104
2010-09-27Change to using TDB_INCOMPATIBLE_HASH (the jenkins hash) on allJeremy Allison1-1/+1
TDB_CLEAR_IF_FIRST tdb's. For tdb's like gencache where we open without CLEAR_IF_FIRST and then with CLEAR_IF_FIRST if corrupt this is still safe to use as if opening an existing tdb the new hash will be ignored - it's only used on creating a new tdb not opening an old one. Jeremy.
2010-08-26s3-build: use dbwrap.h only where needed.Günther Deschner1-0/+1
Guenther
2010-08-05s3-popt: Only include popt-common.h when needed.Andreas Schneider1-0/+1
2010-03-01s3: Abstract access to sessionid.tdb, similar to conn_tdb.cVolker Lendecke1-31/+19
2010-03-01s3: Add connections_forall_read()Volker Lendecke1-3/+2
In a cluster, this makes a large difference: For r/w traverse, we have to do a fetch_locked on every record which for most users of connections_forall is just overkill.
2009-09-18s3:smbstatus: Fix bug 6703, allow smbstatus as non-rootVolker Lendecke1-11/+13
We only require a ctdb connection when clustering is enabled. This limits the restriction for only-root smbstatus to the clustering case.
2009-09-18s3:smbstatus: Fix some nonempty blank linesVolker Lendecke1-19/+19
2009-07-08s3: Change the share_mode_lock struct to store a base_name and stream_nameTim Prouty1-4/+14
2009-05-11Fix a bunch of compiler warnings about wrong format types.Jeremy Allison1-2/+2
Should make Solaris 10 builds look cleaner. Jeremy.
2009-02-18S3: Log warning in smbstatus about lack of pid in anonymous mode.todd stecher1-0/+4
2009-01-15s3: make better use of ccache by not including version.h in every C-file.Michael Adam1-1/+1
version.h changes rather frequently. Since it is included via includes.h, this means each C file will be a cache miss. This applies to the following situations: * When building a new package with a new Samba version * building in a git branch after calling mkversion.sh after a new commit (i.e. virtually always) This patch improves the situation in the following way: * remove inlude "version.h" from includes.h * Use samba_version_string() instead of SAMBA_VERSION_STRING in files that use no other macro from version.h instead of SAMBA_VERSION_STRING. * explicitly include "version.h" in those files that use more macros from "version.h" than just SAMBA_VERSION_STRING. Michael
2008-08-13first cut at adding full transactions for ctdb to samba3Andrew Tridgell1-2/+0
(This used to be commit f91a3e0f7b7737c1d0667cd961ea950e2b93e592)
2008-08-13Exit smbstatus cleanly if messaging_init failsVolker Lendecke1-0/+6
(This used to be commit 5fd51833a31b326d83ac2f76d06560920547f657)
2008-04-23Correctly initialize lp_load in smbstatus in the presence of registry on tdb2Volker Lendecke1-4/+16
(This used to be commit c4f7bee9238db536a7d5215cebb0bf37f757dfad)
2008-03-17In smbstatus, mark locking.tdb and sessionid.tdb as CLEAR_IF_FIRSTVolker Lendecke1-2/+2
This is needed to inform ctdb that it's not a persistent database, with the O_RDONLY the tdb backend ignores this. Merge from 491f902098d33f in 3-0-ctdb (This used to be commit 065938ccb7bb0052746267c433637f0e05b95d85)
2007-12-10Remove the char[1024] strings from dynconfig. ReplaceJeremy Allison1-3/+3
them with malloc'ing accessor functions. Should save a lot of static space :-). Jeremy. (This used to be commit 52dc5eaef2106015b3a8b659e818bdb15ad94b05)
2007-12-10Tiny simplificationsVolker Lendecke1-1/+1
locking.c:open_read_only was unused don't export the silly boolean flag locking_init(bool read_only) (This used to be commit 2f3c865707010bc7c463a02782dbee3dc2479da1)
2007-10-21Don't segfault if locking.tdb can't be openedVolker Lendecke1-0/+13
Thanks to Steve Langasek <vorlon@debian.org> (This used to be commit 67328bd27b1e881a4bcdd5160133afa9a267eaac)
2007-10-19Fix the popt / bool issues. Some places we used BOOLJeremy Allison1-14/+36
where we meant int. Fix this. Thanks to metze for pointing this out. Jeremy. (This used to be commit 793a9d24a163cb6cf5a3a0aa5ae30e9f8cf4744a)
2007-10-18RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison1-6/+6
bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy. (This used to be commit f35a266b3cbb3e5fa6a86be60f34fe340a3ca71f)
2007-10-10r25055: Add file_id_string_tosVolker Lendecke1-1/+1
This removes file_id_string_static and file_id_string_static2 (This used to be commit 638c848c9afe374feb30e34c494f89b2a6c64f7b)
2007-10-10r24827: Give smbstatus an initial talloc stackframe.Michael Adam1-14/+24
Rewrite main() so as to exit only at a single point where the stack frame is freed, too. Michael (This used to be commit dbe38995ec6d2251562a3b10e750bbd681008e16)
2007-10-10r24125: use TALLOC_FREE()Stefan Metzmacher1-2/+2
metze (This used to be commit 4c21ebae95f7c07bdde55a9d686af044f2effba4)