summaryrefslogtreecommitdiffstats
path: root/source/utils/smbcontrol.c
Commit message (Collapse)AuthorAgeFilesLines
* Make the change to smbcontrol for "all" to mean broadcast,Jeremy Allison2008-08-181-4/+3
| | | | | and "smbd" to mean the main smb daemon. Update docs to match. Jeremy.
* Don't block smbcontrol online/offline if !"winbind offline logons"Volker Lendecke2008-05-191-14/+0
| | | | | | | | | | | | There's no point to block these, winbind will ignore them anyway. Jerry, Jeremy, we definitely need a chance to trigger a reconnection attempt after a DC has been rebooted. Right now winbind's reaction to a single rebooted DC is to declare it offline. It will not try before a "winbind cache timeout" timeout. If the admin sets this to an hour or longer for performance reasons, we're screwed. Reboot your DC, no logon for an hour. Volker
* Fix a C++ warningVolker Lendecke2008-02-231-1/+1
|
* Add dump-domain-list command for debugging winbindd's domain_list.Günther Deschner2008-01-241-0/+57
| | | | Guenther
* Remove the char[1024] strings from dynconfig. ReplaceJeremy Allison2007-12-101-1/+1
| | | | | | them with malloc'ing accessor functions. Should save a lot of static space :-). Jeremy.
* Remove more static data from lib/util_sock.c andJeremy Allison2007-11-031-1/+1
| | | | | callers. Jeremy.
* RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison2007-10-181-36/+36
| | | | | | | bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy.
* r25239: fix cut-n-paste bug in code with LIBUNWIND supportStefan Metzmacher2007-10-101-4/+0
| | | | metze
* r24845: Fix a segfault in smbcontrol when called with parameters but no ↵Michael Adam2007-10-101-3/+5
| | | | | | extra args. Michael
* r24843: Add a "validate-cache" control message to winbindd.Michael Adam2007-10-101-0/+44
| | | | | | | | | | | So there is a new subcommand "smbcontrol winbindd validate-cache" now. This change provides the infrastructure: The function currently returns "true" unconditionally. The call of a real cache validation function will be incorporated in subsequent changes. Michael
* r24828: Give smbcontrol an initial talloc stackframe.Michael Adam2007-10-101-1/+6
|
* r24021: use MSG_BROADCAST_PID_STR as value for broadcast messagesStefan Metzmacher2007-10-101-1/+1
| | | | | | | | to fix the cluster case vl: please check, if this works with clustering = no metze
* r24019: merge from http://people.samba.org/bzr/metze/samba/3_2-ctdb-metze/:Stefan Metzmacher2007-10-101-8/+23
| | | | | | | use a timed event to make sure the timelimit is correctly handled in smbcontrol when waiting for messages metze
* r24005: Attempt to fix the build on host deckchairVolker Lendecke2007-10-101-1/+1
|
* r23784: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell2007-10-101-2/+1
|
* r23779: Change from v2 or later to v3 or later.Jeremy Allison2007-10-101-1/+1
| | | | Jeremy.
* r23563: Add dump-event-list command to smbcontrol.Günther Deschner2007-10-101-0/+17
| | | | Guenther
* r23204: Add MSG_SMB_BRL_VALIDATE. Tridge, this is a bit different from your bzrVolker Lendecke2007-10-101-0/+30
| | | | | | | | | | branch, please check if it fulfils your needs. Two changes: The validation is not done inside the brlock.c traverse_fn, it's done as a separate routine. Secondly, this patch does not call the checker routines in smbcontrol directly but depends on a running smbd.
* r23171: Convert connections.tdb to dbwrapVolker Lendecke2007-10-101-3/+4
|
* r23055: Rewrite messages.c to use auto-generated marshalling in the tdb. I'mVolker Lendecke2007-10-101-36/+28
| | | | | | | | | | | doing this because for the clustering the marshalling is needed in more than one place, so I wanted a decent routine to marshall a message_rec struct which was not there before. Tridge, this seems about the same speed as it used to be before, the librpc/ndr overhead in my tests was under the noise. Volker
* r23010: Make the output of "smbcontrol --help" match that of "smbcontrol help".James Peach2007-10-101-5/+30
| | | | Bug #3181.
* r22934: Change smbcontrol to use messaging_register instead of message_registerVolker Lendecke2007-10-101-23/+35
|
* r22911: Pass a messaging_context to message_send_allVolker Lendecke2007-10-101-1/+1
|
* r22908: All callers of message_init now also call messaging_init. Unify those.Volker Lendecke2007-10-101-3/+0
|
* r22906: Some more message_send_pidVolker Lendecke2007-10-101-33/+46
|
* r22868: Replace some message_send_pid calls with messaging_send_pid calls. MoreVolker Lendecke2007-10-101-29/+65
| | | | tomorrow.
* r22761: This introduces lib/conn_tdb.c with two main functions: ↵Volker Lendecke2007-10-101-34/+6
| | | | | | | | | connections_traverse and connections_forall. This centralizes all the routines that did individual tdb_open("connections.tdb") and direct tdb_traverse. Volker
* r22736: Start to merge the low-hanging fruit from the now 7000-line cluster ↵Volker Lendecke2007-10-101-35/+35
| | | | | | | | | patch. This changes "struct process_id" to "struct server_id", keeping both is just too much hassle. No functional change (I hope ;-)) Volker
* r22009: change TDB_DATA from char * to unsigned char *Stefan Metzmacher2007-10-101-1/+1
| | | | | | and fix all compiler warnings in the users metze
* r21780: let smbcontrol use POPT_COMMON_SAMBA options to allow setting debugHerb Lewis2007-10-101-20/+8
| | | | | level. Fix calculation of argc after options are stripped. I couldn't find a popt function that returned this.
* r21115: notify_internal.c needs to remove the table entry if a process has ↵Volker Lendecke2007-10-101-1/+2
| | | | | | | | | | | crashed. So it needs the specific error message. Make messages.c return NTSTATUS and specificially NT_STATUS_INVALID_HANDLE if sending to a non-existent process. Volker
* r21064: The core of this patch isVolker Lendecke2007-10-101-11/+14
| | | | | | | | | | | | | | | | | | | | | | void message_register(int msg_type, void (*fn)(int msg_type, struct process_id pid, - void *buf, size_t len)) + void *buf, size_t len, + void *private_data), + void *private_data) { struct dispatch_fns *dfn; So this adds a (so far unused) private pointer that is passed from message_register to the message handler. A prerequisite to implement a tiny samba4-API compatible wrapper around our messaging system. That itself is necessary for the Samba4 notify system. Yes, I know, I could import the whole Samba4 messaging system, but I want to do it step by step and I think getting notify in is more important in this step. Volker
* r19206: Jeremy, for some reason storing a value-less entry in TDB does not workGünther Deschner2007-10-101-9/+11
| | | | | | | anymore in 3_0. I'm just adding a time(NULL) as value for the WINBINDD_OFFLINE key. Guenther
* r16945: Sync trunk -> 3.0 for 3.0.24 code. Still needJeremy Allison2007-10-101-1/+1
| | | | | | | to do the upper layer directories but this is what everyone is waiting for.... Jeremy.
* r15890: Use correct enum type (bug #3722) from Jason Mader <jason@ncac.gwu.edu>.Jeremy Allison2007-10-101-1/+1
| | | | Jeremy.
* r15428: Add "smbcontrol winbind onlinestatus" for debugging purpose.Günther Deschner2007-10-101-0/+31
| | | | Guenther
* r15424: Implement a "stacktrace" smbcontrol option using libunwind's remoteJames Peach2007-10-101-1/+186
| | | | | | stack tracing support. This provides an easy way for users to provide stack traces (hopefully it will be implemented on something other than ia64).
* r15152: Fix a case when target is offline. Jerry, this needs to be in 3.0.23pre1Alexander Bokovoy2007-10-101-1/+1
|
* r14900: Separate words in error message.James Peach2007-10-101-1/+1
|
* r14899: Add missing semi-colon.James Peach2007-10-101-1/+1
|
* r14898: This change is an attempt to improve the quality of the information thatJames Peach2007-10-101-0/+43
| | | | | | | | | | | | | | | | | is produced when a process exits abnormally. First, we coalesce the core dumping code so that we greatly improve our odds of being able to produce a core file, even in the case of a memory fault. I've removed duplicates of dump_core() and split it in two to reduce the amount of work needed to actually do the dump. Second, we refactor the exit_server code path to always log an explanation and a stack trace. My goal is to always produce enough log information for us to be able to explain any server exit, though there is a risk that this could produce too much log information on a flaky network. Finally, smbcontrol has gained a smbd fault injection operation to test the changes above. This is only enabled for developer builds.
* r13695: Make code consistent with documentation. :-)Alexander Bokovoy2007-10-101-5/+8
| | | | | smbcontrol was sending messages designated for nmbd and winbindd to smbd. Thus, nmbd and winbindd were "unshutdownable".
* r13571: Replace all calls to talloc_free() with thye TALLOC_FREE()Gerald Carter2007-10-101-1/+1
| | | | macro which sets the freed pointer to NULL.
* r13316: Let the carnage begin....Gerald Carter2007-10-101-2/+112
| | | | Sync with trunk as off r13315
* r13212: r12414@cabra: derrell | 2006-01-28 17:52:17 -0500Derrell Lipman2007-10-101-1/+1
| | | | | | | | | | | | lp_load() could not be called multiple times to modify parameter settings based on reading from multiple configuration settings. Each time, it initialized all of the settings back to their defaults before reading the specified configuration file. This patch adds a parameter to lp_load() specifying whether the settings should be initialized. It does, however, still force the settings to be initialized the first time, even if the request was to not initialize them. (Not doing so could wreak havoc due to uninitialized values.)
* r12781: Support the level parameter for lsa_lookupsids.Volker Lendecke2007-10-101-0/+2
| | | | | | | Simplify the interfaces to domain trusts a bit: Nothing outside secrets.c needs to know we're storing stuff in ucs2. Volker
* r11962: Bring talloc up to date with Samba4, re-add theJeremy Allison2007-10-101-2/+2
| | | | | | | | | talloc_describe_all() function. Fix smbcontrol <pid> pool-usage as we desparately need it working in the field to track down memory leaks. Seriously, when new functionality like the Samba4 talloc is added, don't just disable working functionality like "pool-usage", fix the damn thing first ! Jeremy.
* r10656: BIG merge from trunk. Features not copied overGerald Carter2007-10-101-47/+79
| | | | | | | * \PIPE\unixinfo * winbindd's {group,alias}membership new functions * winbindd's lookupsids() functionality * swat (trunk changes to be reverted as per discussion with Deryck)
* r7415: * big change -- volker's new async winbindd from trunkGerald Carter2007-10-101-2/+49
|
* r6149: Fixes bugs #2498 and 2484.Derrell Lipman2007-10-101-1/+2
| | | | | | | | | | | | | | | | | | 1. using smbc_getxattr() et al, one may now request all access control entities in the ACL without getting all other NT attributes. 2. added the ability to exclude specified attributes from the result set provided by smbc_getxattr() et al, when requesting all attributes, all NT attributes, or all DOS attributes. 3. eliminated all compiler warnings, including when --enable-developer compiler flags are in use. removed -Wcast-qual flag from list, as that is specifically to force warnings in the case of casting away qualifiers. Note: In the process of eliminating compiler warnings, a few nasties were discovered. In the file libads/sasl.c, PRIVATE kerberos interfaces are being used; and in libsmb/clikrb5.c, both PRIAVE and DEPRECATED kerberos interfaces are being used. Someone who knows kerberos should look at these and determine if there is an alternate method of accomplishing the task.