summaryrefslogtreecommitdiff
path: root/source3/utils/smbcontrol.c
AgeCommit message (Collapse)AuthorFilesLines
2003-01-30Add 3 second timeout when terminating server and sending print notifyJeremy Allison1-1/+1
messages. Stops build-up of large numbers of smbd's waiting to terminate on large print throughput. Jeremy. (This used to be commit 4ae130bfa82be60de6a6f357f65207fcb24f45fb)
2003-01-30The REQ_DEBUGLEVEL message returns a string not a list of integers.Tim Potter1-4/+1
(This used to be commit 08050a93d9c5b2276c4eaf933974607cf11a1876)
2003-01-02BIG patch...Andrew Bartlett1-3/+3
This patch makes Samba compile cleanly with -Wwrite-strings. - That is, all string literals are marked as 'const'. These strings are always read only, this just marks them as such for passing to other functions. What is most supprising is that I didn't need to change more than a few lines of code (all in 'net', which got a small cleanup of net.h and extern variables). The rest is just adding a lot of 'const'. As far as I can tell, I have not added any new warnings - apart from making all of tdbutil.c's function const (so they warn for adding that const string to struct). Andrew Bartlett (This used to be commit 92a777d0eaa4fb3a1c7835816f93c6bdd456816d)
2002-12-20Forward port the change to talloc_init() to make all talloc contextsJeremy Allison1-0/+38
named. Ensure we can query them. Jeremy. (This used to be commit 842e08e52a665ae678eea239759bb2de1a0d7b33)
2002-12-16fix usage messageGerald Carter1-2/+3
(This used to be commit e68c7e0ebc053b97abf9c8a8213f305679ef000d)
2002-11-26[print notify fixes from APP_HEAD]Gerald Carter1-5/+49
* fixing change notify on print server handle * adding change notify support into smbcontrol for sending comment changes, etc... All part of CR 1159/1160 (This used to be commit 256d8c27cdc6f802f3bfba44593b07014f6ae10a)
2002-11-12Removed global_myworkgroup, global_myname, global_myscope. Added liberalJeremy Allison1-1/+1
dashes of const. This is a rather large check-in, some things may break. It does compile though :-). Jeremy. (This used to be commit 82b8f749a36b42e22186297482aad2abb04fab8a)
2002-11-07Merge of scalable printing code fix... Needs testing.Jeremy Allison1-0/+3
Also tidied up some of Richard's code (I don't think he uses the compiler flags -g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual like I do :-) :-). Jeremy. (This used to be commit 10024ed06e9d91f24fdc78d59eef2f76bf395438)
2002-08-27add hook for MSG_PRINTER_DRVUPGRADE that numps the change_id on all printers ↵Gerald Carter1-0/+5
bound to a given driver (This used to be commit e913d508d4f894eb3f0e59b9c28b0fc5b56962ec)
2002-08-11Merge some usage info from APPLIANCE_HEAD.Tim Potter1-0/+3
(This used to be commit aa93db5abed75b5c9a032a080c07473fafa53a43)
2002-08-02Merge of print notify fixes from APPLIANCE_HEAD.Tim Potter1-0/+17
(This used to be commit 7bf9ca6ca36fa319a57eab05567d49a003237bb5)
2002-06-28Proper merge of all the working printing stuff from APPLIANCE_HEAD.Jeremy Allison1-14/+96
Now let's keep this in sync ! Jeremy. (This used to be commit 3603cd4947df2c10df604447dc542932cb9e5d5a)
2002-05-19Keep the compiler happyAndrew Bartlett1-1/+0
(This used to be commit 84ea2a434b510ed49838a04a4b30bd2fc9ec5673)
2002-05-18so here it is the code to introduce seriously debugggging classes.Simo Sorce1-15/+31
this is a first step only passdb stuff has beein "classized". - so what can you do? set debug level to: 1 poasdb:10 that will make all the code run at debug level 1 except the code in passdb/* files that will run at level 10 TODO: fix the man page - also smbcontrol has this nice feature so smbcontrol smbd debug 3 passdb:5 will set every smbd to have a default log level of 3 while passdb stuff will be at level 5 and so no.. minor cosmetic fix to pdbedit is there too (This used to be commit be5c3b3f5781ddc002ffcc98df04ab024dcef4ca)
2002-03-29added a shutdown command to smbcontrol.Jean-François Micouleau1-0/+6
have to add the server side now. J.F. (This used to be commit b83f87d6811dbad2c254cd5add4bbedb3196c629)
2002-03-14getpid() -> sys_getpid()Tim Potter1-1/+1
(This used to be commit a3cea5e9ae3b53ecbc45e61a39cbce0ca1b916aa)
2002-02-26Fixup the sending of printer change messages from job changes.Jeremy Allison1-2/+8
Jeremy. (This used to be commit 28d4e7a3e2bd8f15ef807b821e4300a72bbc6904)
2002-01-30Removed version number from file header.Tim Potter1-1/+1
Changed "SMB/Netbios" to "SMB/CIFS" in file header. (This used to be commit 6a58c9bd06d0d7502a24bf5ce5a2faf0a146edfa)
2002-01-10Quieten warning about uninitialized variable.Martin Pool1-1/+3
(This used to be commit 63ea2bb0adf5ae742658f479613de90b1eec3db5)
2002-01-09Add two more memory-debug smbcontrol messages: these ones shouldMartin Pool1-6/+17
prompt dmalloc to log information about what happening, so you can see in flight why smbd is getting bloated. (This used to be commit bcb443c5c4bf97fe6b5b0993e42496c2e64f0124)
2002-01-07merge changes from 2.2 branch to prevent smb.conf from changing debug levelHerb Lewis1-0/+5
of commands when specified on command line. (This used to be commit 39d6b31e14144a3ff4b992d4286b706147e58566)
2002-01-03Cleanup format.Martin Pool1-1/+1
(This used to be commit a9b9ae47e1a11492f036b308c408c6a239a690f6)
2002-01-03smbd now sends a reply to MSG_REQ_POOL_USAGE, though it's prettyMartin Pool1-1/+2
boring so far. (This used to be commit 9b217dce7fe89d1e36a91d7d011c2a9fe185e0d3)
2002-01-03smbd should register to receive MSG_REQ_POOL_USAGE. Response shouldMartin Pool1-2/+0
be information about memory usage, but this is not done yet. (This used to be commit 830a126a442bdde28fc42e23e7260c344b6534b9)
2001-12-21smbcontrol in non-interactive mode was returning True for success --Martin Pool1-1/+4
need to invert this to give the shell 0. (This used to be commit ecc624067c54314834aacbf21d0f2ee54fce37e9)
2001-12-21Add option to pass NULL max_replies to wait_for_replies in case youMartin Pool1-4/+7
don't know how many to expect. (This used to be commit 53f1c0298b526dcacae956453a4b95fff226d0b8)
2001-12-21Add code to send MSG_REQ_POOL_USAGE. (smbd doesn't respond yet.)Martin Pool1-15/+57
Factor out common code to wait until replies are received or timeout expires. Show debug message when messages are sent. (This used to be commit 17bb0f60af13c5d0561c0ba50b0a6331bde52e8f)
2001-11-23Removed TimeInit() call from every client program (except for one placeTim Potter1-1/+0
in smbd/process.c where the timezone is reinitialised. Was replaced with check for a static is_initialised boolean. (This used to be commit 8fc772c9e5770cd3a8857670214dcff033ebae32)
2001-11-20Merged in JohnR's ping messaging extension.Jeremy Allison1-6/+9
Jeremy. (This used to be commit 694372b2c4d7713fe228114730027175f7b4e9b6)
2001-11-19Store some path names in global variables initialized to configureMartin Pool1-3/+2
default, rather than in preprocessor macros. (This used to be commit 79ec88f0da40faebe1e587f1b3e87b5f2b184f58)
2001-09-21Added -s configfile to smbcontrol.c.Volker Lendecke1-6/+9
Volker (This used to be commit 9ecd9db4efc7b736bef0e01a5e157e149a381587)
2001-09-06got rid of USE_TDB_MMAP_FLAG as its not needed any moreAndrew Tridgell1-1/+1
(This used to be commit c26e0d3f27a05ecc8bd2390f9aab7f9451524e47)
2001-09-05When sending a message via a tdb, it must be open read/write.Jeremy Allison1-1/+1
Jeremy. (This used to be commit f35887c7d40ced750596b87bf37f7aae1df68c7a)
2001-08-28Added samsync and samrepl (untested) message types to smbcontrol.Tim Potter1-0/+38
(This used to be commit b0c8090396ca02d06669d6e20a1c715fc83ff887)
2001-07-30Added "use mmap" for HPUX.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 840802f10677cb0009cb4df4c37c7d01aa5edacd)
2001-07-04The big character set handling changeover!Andrew Tridgell1-1/+0
This commit gets rid of all our old codepage handling and replaces it with iconv. All internal strings in Samba are now in "unix" charset, which may be multi-byte. See internals.doc and my posting to samba-technical for a more complete explanation. (This used to be commit debb471267960e56005a741817ebd227ecfc512a)
2001-06-20added a close-share smbcontrol message that forcibly closes a share in smbd ↵Andrew Tridgell1-3/+17
(to allow unmount) (This used to be commit 15b17a80db605a55f667c95fb7e316877a441887)
2001-06-04use LDSHFLAGS not -shared in several placesAndrew Tridgell1-1/+1
(This used to be commit 8ec9c87b5d1a7dae17d5b1a30f58effaf5e69e4b)
2001-06-01If a debug class was explicitly set to zero the debug system would notTim Potter1-5/+7
recognise it as there was no distinction made between zeroing a debug class and just not setting it to anything. I've added a debuglevel_isset array in parallel with the debuglevel_class array to fix this. Added a couple of new debug classes which I might start filling out to get smb, rpc header and rpc marshall/unmarshalling debugs tidied up. Fixed a bunch of cut&paste bugs in include/debug.h Modified smbcontrol and the messaging system debug handler to like the debuglevel_isset stuff. (This used to be commit 391e7caf76cbc22021629ef0ec5e0c32806edfd7)
2001-05-15remember to close tdb after useAndrew Tridgell1-9/+13
(This used to be commit 8f8d7202cf6e12cdb2f4445ddcac83a7ac9e33a2)
2001-05-14Fix crash in smbcontrol Gerald pointed out when no parameter given to debug.Jeremy Allison1-2/+2
Jeremy. (This used to be commit ef687a2f6ba8143dcc041b2b629542c3ea9e3966)
2001-04-27More gcc compile on solaris tidyups.Jeremy Allison1-4/+4
Jeremy. (This used to be commit 956201c4fb6e604407911b9709574f0c24dcb84f)
2001-04-13Merge of Andrew's changes in 2.2.Jeremy Allison1-2/+2
Jeremy. (This used to be commit fc76681812b1469208ad6c8847afdfc68bc6db49)
2001-02-12Merge of JohnR's changes to appliance-head, JF's changes to 2.2,Jeremy Allison1-19/+32
updated the POSIX_ACL code to be in sync. Jeremy. (This used to be commit c0517d6f4e3079feca1309fd1ea7b21e83f0de02)
2000-12-15Fixed memory leaks in lsa_XX calls. Fixed memory leaks in smbcacls. MergedJeremy Allison1-1/+8
in fixes from appliance-head and 2.2. Fixed multiple connection.tdb open problem. Jeremy. (This used to be commit 0a40bc83e14c69a09948ec09bb6fc5026c4f4c14)
2000-11-17support smbcontrol sending messages to itself (for testing purposes)Andrew Tridgell1-0/+2
(This used to be commit 5dfae86dab50fba1890d0ce33fa9d68f12bc0bfa)
2000-11-16Fix for a problem with the new messaging system. If a sender is using theJeremy Allison1-10/+10
messaging system as a notification mechanism, and the speed of notification greatly exceeds the speed of message recovery, then you get a massively (>75Mb) growing tdb. If the message is a simple notification, then the message is static, and you only need one of them in transit to a target process at any one time. This patch adds a BOOL "allow_duplicates" to the message_send_XX primitives. If set to False, then before sending a message the sender checks the existing message queue for a target pid for a duplicate of this message, and doesn't add to it if one already exists. Also added code into msgtest.c to test this. Jeremy. (This used to be commit 3aa7995660395ecb85c8e35b638fa9fbbb952558)
2000-11-11Merge of Herb's profiling code.Jeremy Allison1-0/+49
Jeremy. (This used to be commit 3be056c71aa8e0a4ba70d397107199004bdb7d3f)
2000-11-10Merge in Herb's changes from 2.2.Jeremy Allison1-2/+14
Jeremy. (This used to be commit 24d76c5fbda29d89c96d7c22193ec2eb93ad3887)
2000-10-12lib/messages.c add debug print for receipt of PING andHerb Lewis1-1/+2
REQ_DEBUGLEVEL messages utils/smbcontrol.c allow "q" to exit interactive mode. Exit on error from message_init. (This used to be commit cda8c0439113dcce02a681b0aaddf69326c0ec9a)