1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-04 05:18:06 +03:00
Commit Graph

45 Commits

Author SHA1 Message Date
Jeremy Allison
3603cd4947 Proper merge of all the working printing stuff from APPLIANCE_HEAD.
Now let's keep this in sync !
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Bartlett
84ea2a434b Keep the compiler happy 0001-01-01 00:00:00 +00:00
Simo Sorce
be5c3b3f57 so here it is the code to introduce seriously debugggging classes.
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
0001-01-01 00:00:00 +00:00
Jean-François Micouleau
b83f87d681 added a shutdown command to smbcontrol.
have to add the server side now.

	J.F.
0001-01-01 00:00:00 +00:00
Tim Potter
a3cea5e9ae getpid() -> sys_getpid() 0001-01-01 00:00:00 +00:00
Jeremy Allison
28d4e7a3e2 Fixup the sending of printer change messages from job changes.
Jeremy.
0001-01-01 00:00:00 +00:00
Tim Potter
6a58c9bd06 Removed version number from file header.
Changed "SMB/Netbios" to "SMB/CIFS" in file header.
0001-01-01 00:00:00 +00:00
Martin Pool
63ea2bb0ad Quieten warning about uninitialized variable. 0001-01-01 00:00:00 +00:00
Martin Pool
bcb443c5c4 Add two more memory-debug smbcontrol messages: these ones should
prompt dmalloc to log information about what happening, so you can see
in flight why smbd is getting bloated.
0001-01-01 00:00:00 +00:00
Herb Lewis
39d6b31e14 merge changes from 2.2 branch to prevent smb.conf from changing debug level
of commands when specified on command line.
0001-01-01 00:00:00 +00:00
Martin Pool
a9b9ae47e1 Cleanup format. 0001-01-01 00:00:00 +00:00
Martin Pool
9b217dce7f smbd now sends a reply to MSG_REQ_POOL_USAGE, though it's pretty
boring so far.
0001-01-01 00:00:00 +00:00
Martin Pool
830a126a44 smbd should register to receive MSG_REQ_POOL_USAGE. Response should
be information about memory usage, but this is not done yet.
0001-01-01 00:00:00 +00:00
Martin Pool
ecc624067c smbcontrol in non-interactive mode was returning True for success --
need to invert this to give the shell 0.
0001-01-01 00:00:00 +00:00
Martin Pool
53f1c0298b Add option to pass NULL max_replies to wait_for_replies in case you
don't know how many to expect.
0001-01-01 00:00:00 +00:00
Martin Pool
17bb0f60af Add code to send MSG_REQ_POOL_USAGE. (smbd doesn't respond yet.)
Factor out common code to wait until replies are received or timeout
expires.

Show debug message when messages are sent.
0001-01-01 00:00:00 +00:00
Tim Potter
8fc772c9e5 Removed TimeInit() call from every client program (except for one place
in smbd/process.c where the timezone is reinitialised.  Was replaced with
check for a static is_initialised boolean.
0001-01-01 00:00:00 +00:00
Jeremy Allison
694372b2c4 Merged in JohnR's ping messaging extension.
Jeremy.
0001-01-01 00:00:00 +00:00
Martin Pool
79ec88f0da Store some path names in global variables initialized to configure
default, rather than in preprocessor macros.
0001-01-01 00:00:00 +00:00
Volker Lendecke
9ecd9db4ef Added -s configfile to smbcontrol.c.
Volker
0001-01-01 00:00:00 +00:00
Andrew Tridgell
c26e0d3f27 got rid of USE_TDB_MMAP_FLAG as its not needed any more 0001-01-01 00:00:00 +00:00
Jeremy Allison
f35887c7d4 When sending a message via a tdb, it must be open read/write.
Jeremy.
0001-01-01 00:00:00 +00:00
Tim Potter
b0c8090396 Added samsync and samrepl (untested) message types to smbcontrol. 0001-01-01 00:00:00 +00:00
Jeremy Allison
840802f106 Added "use mmap" for HPUX.
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
debb471267 The big character set handling changeover!
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.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
15b17a80db added a close-share smbcontrol message that forcibly closes a share in smbd (to allow unmount) 0001-01-01 00:00:00 +00:00
Andrew Tridgell
8ec9c87b5d use LDSHFLAGS not -shared in several places 0001-01-01 00:00:00 +00:00
Tim Potter
391e7caf76 If a debug class was explicitly set to zero the debug system would not
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.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
8f8d7202cf remember to close tdb after use 0001-01-01 00:00:00 +00:00
Jeremy Allison
ef687a2f6b Fix crash in smbcontrol Gerald pointed out when no parameter given to debug.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
956201c4fb More gcc compile on solaris tidyups.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
fc76681812 Merge of Andrew's changes in 2.2.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
c0517d6f4e Merge of JohnR's changes to appliance-head, JF's changes to 2.2,
updated the POSIX_ACL code to be in sync.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
0a40bc83e1 Fixed memory leaks in lsa_XX calls. Fixed memory leaks in smbcacls. Merged
in fixes from appliance-head and 2.2. Fixed multiple connection.tdb open
problem.
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
5dfae86dab support smbcontrol sending messages to itself (for testing purposes) 0001-01-01 00:00:00 +00:00
Jeremy Allison
3aa7995660 Fix for a problem with the new messaging system. If a sender is using the
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.
0001-01-01 00:00:00 +00:00
Jeremy Allison
3be056c71a Merge of Herb's profiling code.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
24d76c5fbd Merge in Herb's changes from 2.2.
Jeremy.
0001-01-01 00:00:00 +00:00
Herb Lewis
cda8c04391 lib/messages.c add debug print for receipt of PING and
REQ_DEBUGLEVEL messages
utils/smbcontrol.c      allow "q" to exit interactive mode. Exit on error
                        from message_init.
0001-01-01 00:00:00 +00:00
Herb Lewis
45632bb813 print source PID in PONG and debuglevel message. Allow request debuglevel
message to go to any dest. Put timeout for commands that expect a reply.

sync with 2.2 branch
0001-01-01 00:00:00 +00:00
Herb Lewis
bbb24daa25 changes to sync with 2.2. tree
.cvsignore              remove config.h - not in this directory
include/profile.h       profile changes
lib/messages.c          added message to return debug level
libsmb/clierror.c       cast to get rid of compiler warning
libsmb/smbencrypt.c     cast to get rid of compiler warning
profile/profile.c       add flush profile stats changes for profile struct
rpc_parse/parse_samr.c  fix for compiler warning
rpc_server/srv_samr.c   cast to get rid of compiler warning
smbd/ipc.c              profile stats
message.c               profile stats
smbd/negprot.c          profile stats
smbd/nttrans.c          profile stats
smbd/trans2.c           profile stats
utils/smbcontrol.c      new flush stats command
0001-01-01 00:00:00 +00:00
Andrew Tridgell
e4ea0a5975 don't use gets() ! 0001-01-01 00:00:00 +00:00
Jeremy Allison
4862d2ab11 Added Herb's fixes to HEAD.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
dd9f668108 utils/smbcontrol.c: Fixes from Herb for interactive use.
printing/nt_printing.c: No C++ comments please :-).
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
5f91c24636 first cut at smbcontrol program. It currently allows syntax like:
smbcontrol nmbd debug 7
  smbcontrol smbd debug 9
  smbcontrol 3278 debug 1
  smbcontrol nmbd force-election
0001-01-01 00:00:00 +00:00