1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-12 20:58:37 +03:00

196 Commits

Author SHA1 Message Date
Tim Potter
38337ec5ef Merge Jelmer's popt updates from HEAD.
Also merged a bunch of other random changes as this file has
been drifting off due to lack of janitors.
-
Tim Potter
017da9393b Merge of rpcecho pipe for testing large dcerpc requests and responses.
Only compiled in when --enable-developer argument passed to configure.
-
Volker Lendecke
eaef0d8aef This is the netlogon schannel client code. Try a
rpcclient -S pdc -U% -c "samlogon user password"

and it should work with the schannel. Needs testing against platforms
different from NT4SP6.

Volker
-
Tim Potter
fb91bfa7a2 Merge of waider's rpcclient return type patch. -
Tim Potter
20f153cee3 Merge: const fixes.
Merge: add popt_common_version to command line options table.

Merge: mbp's rewrite of do_cmd()
-
Gerald Carter
7a4c874842 merging some rpcclient and net functionality from HEAD -
Andrew Bartlett
9b70fa868e Merge from HEAD:
- fstring/pstring mixups
 - the detection code that found them (disabled)
 - a bit of whitespace
 - a static

Andrew Bartlett
-
Jeremy Allison
09a218a9f6 Forward port the change to talloc_init() to make all talloc contexts
named. Ensure we can query them.
Jeremy.
-
Jeremy Allison
f755711df8 Removed global_myworkgroup, global_myname, global_myscope. Added liberal
dashes of const. This is a rather large check-in, some things may break.
It does compile though :-).
Jeremy.
-
Jelmer Vernooij
60c83a6007 Sync with head... -
Jeremy Allison
ec7953f201 Added new error codes. Fix up connection code to retry in the same way
that app-head does.
Jeremy.
-
Gerald Carter
028477e352 merge of working dsrolegetprimdominfo() client code from APP_HEAD -
Gerald Carter
1cfd2ee433 merge of new client side support the Win2k LSARPC UUID in rpcbind
from APP_HEAD
-
Gerald Carter
65e7b5273b sync'ing up for 3.0alpha20 release -
Jelmer Vernooij
6497eb78e8 sync 3.0 branch with HEAD -
Andrew Tridgell
03ac082dcb updated the 3.0 branch from the head branch - ready for alpha18 -
Tim Potter
f287f62962 Free popt context after argument parsing. -
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. -