1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-27 14:04:05 +03:00

179 Commits

Author SHA1 Message Date
Gerald Carter
b73a8416d3 added "list <pipe>" command to display the available commands
one a single pipe
-
Tim Potter
1f007d3ed4 Renamed get_nt_error_msg() to nt_errstr(). -
Jim McDonough
e5e7132e80 One more fix to get popt to work for some compilers...this is the downside to popt. Every option has to be in fixed storage. -
Jim McDonough
cd34897749 Convert rpcclient to use popt instead of getopt. Includes changing of got_pass from BOOL to int. Also includes long option names...anyone want those different before I update the doc? Please try this out. I've tried to test all the flags, but the more times we kick the tires... -
Tim Potter
5b195f8bf1 argc == 0 is an impossible condition. -
Herb Lewis
c849e93392 merge from 2.2 - fix parsing of options -
Tim Potter
6a58c9bd06 Removed version number from file header.
Changed "SMB/Netbios" to "SMB/CIFS" in file header.
-
Tim Potter
950d8e3656 Display nicer message when server name could not be resolved. -
Jean-François Micouleau
18dc4cd57a put back the -l option to rpcclient.
that's the most useful option in this tool !

I love rpcclient ;-)

	J.F.
-
Tim Potter
60d1d0bfa9 Fix for null command description in rpcclient help. From Benjamin Kuit
<bj@it.uts.edu.au>.
-
Andrew Tridgell
aa52ae7354 lp_setup_logfile() doesn't exist any more -
Jeremy Allison
0bea6cf79a Removed global debugf. Replaced with lp_set_logfile(name).
Fixed winbindd to finally stop leaving log. file droppings :-).
Jeremy.
-
Jean-François Micouleau
cb61606b8e initialise strings -
Andrew Bartlett
eee925861a This change reworkes the connection code for both rpcclient and net new
'net' untility.

This should make it easier to port rpcclient code across to net.

It also allows SPNEGO (the NTLMSSP subsystem in particular) to work, becouse
it kills off the early destruction of the clear-text password.

Andrew Bartlett
-
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.
-
Martin Pool
79ec88f0da Store some path names in global variables initialized to configure
default, rather than in preprocessor macros.
-
Tim Potter
c3f5df8d67 Display some errors if the initial connection to the server could not be
made.
-
Jean-François Micouleau
0157fdc8a2 allow the samr commands to work back and the help too ;-)
J.F.
-
Tim Potter
a40facba96 Some old stuff hanging around since the CIFS conference. Big cleanup of
rpcclient code.  Refactored cmd_* functions to move common mem_ctx and pipe
opening stuff up one level.  Moved rpcclient.h into rpcclient directory and
out of includes/smb.h
-
Jeremy Allison
4fdd45f3cc Fixup insure changes for rpcclient.
Jeremy.
-
Jeremy Allison
9f5405d425 Incorrect definition of debugf.
Jeremy.
-
Tim Potter
2d0922b0ea Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header. -
Simo Sorce
d38bc1dcec return NT_STATUS_NO_MEMORY istead of NT_STATUS_OK if we are out of memory. -
Simo Sorce
5ceecc7bef move to SAFE_FREE() -
Andrew Bartlett
512e9a5f94 Fix up NTSTATUS stuff in rpcclient's help function -
Tim Potter
66c7bb9467 oh foo -
Tim Potter
a46e9cc3a1 Don't crash if run with no command line arguments. (-: -
Andrew Tridgell
dcd6e735f7 the next stage in the NTSTATUS/WERROR change. smbd and nmbd now compile, but the client code still needs some work -
Tim Potter
c292b63ff6 Fix bug in usage().
Allow user to invoke with \\ or // in front of server name.
-
Andrew Tridgell
1d36250e33 converted another bunch of stuff to NTSTATUS -
Simo Sorce
fd54412ce9 - avoid possible mem leaks in rpcclient/cmd_*.c (talloc_destroy not performed)
- ported two rpc back from TNG (WINREG: shutdown and abort shutdown)
- some optimizations and changed some DEBUG statement in loadparm.c
- changed rpcclient a bit moved from non reentrant next_token_nr to next_token
- in cmd_reg.c not sure if getopt will work ok on all platforms only setting optind=0
-
Tim Potter
2c7d09b38d Return an exit code when connect failed.
Patch from Michael Sweet <mike@easysw.com>
-
Tim Potter
37052a1bcc Started adding some help/usage info for rpcclient commands. -
Andrew Tridgell
b2a4a62b5e fixed anonymous login in rpcclient -
Andrew Tridgell
29d8f9bcb3 improved the command line parsing of rpcclient -
Andrew Tridgell
57e7df8ae5 missed a couple of strchr calls -
Andrew Tridgell
c41fc06376 strchr and strrchr are macros when compiling with optimisation in gcc, so we can't redefine them. damn. -
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.
-
Andrew Tridgell
674ee2f1d1 next_token() was supposed to be a reentrant replacement for strtok(),
but the code suffered from bitrot and is not now reentrant. That means
we can get bizarre behaviour
i've fixed this by making next_token() reentrant and creating a
next_token_nr() that is a small non-reentrant wrapper for those lumps
of code (mostly smbclient) that have come to rely on the non-reentrant
behaviour
-
Tim Potter
e65b486273 Added stub dfs client commands to rpcclient. -
Gerald Carter
c827787d67 merge from 2.2 -
Gerald Carter
e30a3be954 merge from 2.2 -
Tim Potter
c4e7ce267f Removed some level 0 debugs accidentally left in - oops. -
Tim Potter
c9b4ed79c8 Replaced next_command() with call to next_token(). -
Tim Potter
3343c9f0d6 Added stubs for SRVSVC and NETLOGON rpcclient commands. -
Tim Potter
3434e0bf7f More usability fixes. -
Tim Potter
37cdf37fee Allow ctrl-d to exit rpcclient.
Don't try to run anything if user just presses return at rpcclient prompt.
-
Gerald Carter
0a6ceed279 rpcclient merge from 2.2 (including Jeremy's non-void return fix) -
Jeremy Allison
be825b0746 Added Gerald's fixes.
Jeremy.
-
Jeremy Allison
38b19fad28 More unused variables.
Jeremy.
-