1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
Commit Graph

167 Commits

Author SHA1 Message Date
Jean-François Micouleau
9fc3e980e9 initialise strings
(This used to be commit cb61606b8e)
2001-12-18 00:27:46 +00:00
Andrew Bartlett
3ea7519b06 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
(This used to be commit eee925861a)
2001-12-03 07:42:18 +00:00
Tim Potter
79b34d1b11 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.
(This used to be commit 8fc772c9e5)
2001-11-23 00:52:29 +00:00
Martin Pool
f741f65673 Store some path names in global variables initialized to configure
default, rather than in preprocessor macros.
(This used to be commit 79ec88f0da)
2001-11-19 02:49:53 +00:00
Tim Potter
160950ae0e Display some errors if the initial connection to the server could not be
made.
(This used to be commit c3f5df8d67)
2001-10-30 04:21:53 +00:00
Jean-François Micouleau
0968ee87e1 allow the samr commands to work back and the help too ;-)
J.F.
(This used to be commit 0157fdc8a2)
2001-10-22 06:13:38 +00:00
Tim Potter
439c7e0ca2 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
(This used to be commit a40facba96)
2001-10-12 05:56:23 +00:00
Jeremy Allison
5b24e783dd Fixup insure changes for rpcclient.
Jeremy.
(This used to be commit 4fdd45f3cc)
2001-10-03 03:05:55 +00:00
Jeremy Allison
4cfeacd871 Incorrect definition of debugf.
Jeremy.
(This used to be commit 9f5405d425)
2001-10-03 01:45:51 +00:00
Tim Potter
dc1fc3ee8e Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header.
(This used to be commit 2d0922b0ea)
2001-10-02 04:29:50 +00:00
Simo Sorce
14cc9a3101 return NT_STATUS_NO_MEMORY istead of NT_STATUS_OK if we are out of memory.
(This used to be commit d38bc1dcec)
2001-09-29 12:26:40 +00:00
Simo Sorce
87945989c0 move to SAFE_FREE()
(This used to be commit 5ceecc7bef)
2001-09-17 10:26:23 +00:00
Andrew Bartlett
1c6b0ff99e Fix up NTSTATUS stuff in rpcclient's help function
(This used to be commit 512e9a5f94)
2001-09-15 03:57:12 +00:00
Tim Potter
9dfa2edd7c oh foo
(This used to be commit 66c7bb9467)
2001-09-05 04:33:25 +00:00
Tim Potter
9888362b39 Don't crash if run with no command line arguments. (-:
(This used to be commit a46e9cc3a1)
2001-09-05 04:30:53 +00:00
Andrew Tridgell
19fea3242c the next stage in the NTSTATUS/WERROR change. smbd and nmbd now compile, but the client code still needs some work
(This used to be commit dcd6e735f7)
2001-09-04 07:13:01 +00:00
Tim Potter
8b6b1b2e82 Fix bug in usage().
Allow user to invoke with \\ or // in front of server name.
(This used to be commit c292b63ff6)
2001-08-27 21:32:06 +00:00
Andrew Tridgell
b031af348c converted another bunch of stuff to NTSTATUS
(This used to be commit 1d36250e33)
2001-08-27 19:46:22 +00:00
Simo Sorce
acc149c427 - 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
(This used to be commit fd54412ce9)
2001-08-10 09:52:10 +00:00
Tim Potter
df2cdf6d7b Return an exit code when connect failed.
Patch from Michael Sweet <mike@easysw.com>
(This used to be commit 2c7d09b38d)
2001-07-27 22:54:50 +00:00
Tim Potter
8db78af970 Started adding some help/usage info for rpcclient commands.
(This used to be commit 37052a1bcc)
2001-07-20 04:38:58 +00:00
Andrew Tridgell
282d295a37 fixed anonymous login in rpcclient
(This used to be commit b2a4a62b5e)
2001-07-08 20:28:17 +00:00
Andrew Tridgell
b4230fb93a improved the command line parsing of rpcclient
(This used to be commit 29d8f9bcb3)
2001-07-08 18:25:56 +00:00
Andrew Tridgell
5a2b87d810 missed a couple of strchr calls
(This used to be commit 57e7df8ae5)
2001-07-04 07:39:01 +00:00
Andrew Tridgell
527e824293 strchr and strrchr are macros when compiling with optimisation in gcc, so we can't redefine them. damn.
(This used to be commit c41fc06376)
2001-07-04 07:36:09 +00:00
Andrew Tridgell
87fbb7092b 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.
(This used to be commit debb471267)
2001-07-04 07:15:53 +00:00
Andrew Tridgell
91b8a8d1d2 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
(This used to be commit 674ee2f1d1)
2001-06-21 09:10:42 +00:00
Tim Potter
971cbd57dc Added stub dfs client commands to rpcclient.
(This used to be commit e65b486273)
2001-06-06 07:35:08 +00:00
Gerald Carter
9c2f185242 merge from 2.2
(This used to be commit c827787d67)
2001-05-31 18:35:14 +00:00
Gerald Carter
d1e4606740 merge from 2.2
(This used to be commit e30a3be954)
2001-05-31 18:03:45 +00:00
Tim Potter
3d876c5df1 Removed some level 0 debugs accidentally left in - oops.
(This used to be commit c4e7ce267f)
2001-05-24 02:21:18 +00:00
Tim Potter
b30730b56e Replaced next_command() with call to next_token().
(This used to be commit c9b4ed79c8)
2001-05-24 00:31:53 +00:00
Tim Potter
40ff4007c7 Added stubs for SRVSVC and NETLOGON rpcclient commands.
(This used to be commit 3343c9f0d6)
2001-05-24 00:20:32 +00:00
Tim Potter
0eaa469aa8 More usability fixes.
(This used to be commit 3434e0bf7f)
2001-05-04 04:15:48 +00:00
Tim Potter
1bbc3d193b Allow ctrl-d to exit rpcclient.
Don't try to run anything if user just presses return at rpcclient prompt.
(This used to be commit 37cdf37fee)
2001-05-04 01:04:23 +00:00
Gerald Carter
e40449fa72 rpcclient merge from 2.2 (including Jeremy's non-void return fix)
(This used to be commit 0a6ceed279)
2001-04-28 00:32:56 +00:00
Jeremy Allison
194a87bf76 Added Gerald's fixes.
Jeremy.
(This used to be commit be825b0746)
2001-03-23 21:54:30 +00:00
Jeremy Allison
cd4fea0098 More unused variables.
Jeremy.
(This used to be commit 38b19fad28)
2001-03-23 20:41:22 +00:00
Andrew Tridgell
62711a9ceb fixed rpcclient readline code
(This used to be commit 4ec971e905)
2001-03-19 00:32:16 +00:00
Gerald Carter
207e715059 addprinter and adddriver are working now :-)
(This used to be commit 0cb7639cef)
2001-03-15 22:06:53 +00:00
Gerald Carter
79dc43767e more updates. several spoolss commands added as placeholders
to be filled in one at a time.
(This used to be commit 6aaac37663)
2001-03-15 02:15:05 +00:00
Gerald Carter
fb3d8452e5 set of changes in the beginning of bringing rpcclient changes
back to working order.  The main change is that the cli_*() RPC
functions from libsmb/*.c now should accept a struct cli_state*.

The reason for this is that rpcclient should establish the
connection to the server at startup so that it is not necessary
to keep the clear test or password hash in memory for each command.

enumports and enumprinters now works as well.  lsa* functions
have been tested.  SAMR calls may or may not work (one of the core
dumps I know), but it compiles :-)



jerry
(This used to be commit d98ac8852a)
2001-03-14 20:22:57 +00:00
Gerald Carter
381e8299dc move charset_initialize() up in the food chain so that lp_load_services
and stuff will work....
(This used to be commit e652a14264)
2001-03-13 18:48:26 +00:00
Tim Potter
19a8acda64 rpcclient functions for remaining samr and lsa functions. All functions
now pass through insure except for some of the dodgy spoolss prs
weirdness.
(This used to be commit 76f08426a0)
2001-01-15 23:35:59 +00:00
Tim Potter
44a9dc1ba8 Memory leak fixes and uninitialised variables spotted by insure.
(This used to be commit 079f46aca4)
2001-01-12 18:19:57 +00:00
Tim Potter
fc659e07d0 Start of a rewrite of rpcclient based on the libsmb rpc client routines.
Currently there are a small selection of lsa, samr and spoolss functions
implemented.  More to follow...
(This used to be commit 9a953514f2)
2001-01-11 22:49:30 +00:00
Tim Potter
3478427f2e Port of lsa_lookup_sids() and lsa_lookup_names() rpc client functions from
TNG branch.

Re-instated lsa_lookup_sids and lsa_lookup_names functions in rpcclient.

This requires most samba binaries to link in another handful of object
files due to uncessary coupling between modules.  )-:
(This used to be commit 817819d0cc)
2000-12-08 03:34:00 +00:00
Gerald Carter
9de93aa818 More rpcclient merge issues:
* fixes some readline bugs from the merge
	* first attempt at commands (spoolenum almost works)
	* no changes to existing functions in HEAD; only additions
	  of new functions.  I'll weed out what I can as I go.




--jerry
(This used to be commit 12e2a21e1b)
2000-07-07 06:18:00 +00:00
Gerald Carter
33f6a1d9bb first pass at merging rpcclient from TNG to HEAD. You can get a
semi-connection and a rpcclient prompt, but no functionality there yet.
Will be a few more days on that.

--jerry
(This used to be commit 269051aa0c)
2000-07-03 04:28:29 +00:00
Gerald Carter
3396a1d978 just enough to get rpcclient to compile. Look for #if 0
blocks around a few unimplemented functions.  Also had to
add cli_reg.c to Makefile.in


--jerry
(This used to be commit 426c43fb51)
2000-06-23 00:09:21 +00:00