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

20 Commits

Author SHA1 Message Date
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
Andrew Bartlett
feb4f52f13 This is another major rework of the 'net' command.
This time, all the existing functionality has been moved into
'net rap', ready for new commands in the 'net ads' and 'net rpc' categories.

In particular, we hope to have the abilty to autoselect the appropriate
backend to use based on smb.conf or other paramaters.

This will allow 'net user' to work no matter what the remote server.

The new 'net rpc' command will soon gain a 'net rpc join' and a
'net rpc user' based on the existing samba code.

Also in this commit, the connection establishment code has been almost entirly
reworked, and now has some minor sense of sainity to it.
In particular, we can now connect to hosts *other* than localhost!

We also have the ability to state on a per-command basis whether the 'localhost'
is a sane default value.  (A net join, for example, would not be sane against
localhost).

Unfortunetly we have had to make the basic paramaters global variables, but
the 'cli' is not opened and closed on a per-command basis.

Andrew Bartlett
(This used to be commit 8739d426ca)
2001-12-03 04:39:23 +00:00
Andrew Tridgell
eec9e8a052 fix a bunch of places where we can double-free a cli structure
(This used to be commit e2ba2383c9)
2001-11-28 03:56:30 +00:00
Andrew Bartlett
1a08524ddb prevent proto from picking up this as a defintion for 'main()' becoue it conflicts with nmbd's definition.
(This used to be commit 70e9c2efaa)
2001-11-26 05:59:43 +00:00
Tim Potter
222311817f More compiler warnings fixed. Some minor reformatting.
(This used to be commit 8227f6909c)
2001-11-26 04:53:08 +00:00
Tim Potter
585d0efbc6 Got medieval on another pointless extern. Removed extern struct ipzero
and replaced with two functions:

	void zero_ip(struct in_adder *ip);
	BOOL is_zero_ip(struct in_addr ip);
(This used to be commit 778f5f77a6)
2001-11-26 03:11:44 +00:00
Andrew Tridgell
660fa6632e portability fixes
(This used to be commit 09127d85dc)
2001-11-25 13:36:02 +00:00
Andrew Tridgell
2ff1b666c1 fixed typo
(This used to be commit b14ae49502)
2001-11-25 13:32:28 +00:00
Andrew Tridgell
9255dc9a14 made a "net ads" command, currently with "net ads join" and "net ads leave"
(This used to be commit 2f8fa175b1)
2001-11-25 00:18:11 +00:00
Andrew Tridgell
ad2974cd05 added "net join" command
this completes the first stage of the smbd ADS support
(This used to be commit 058a5aee90)
2001-11-24 14:16:41 +00:00
Andrew Tridgell
3c63b841cc rewrote net.c
The rewrite fixes a number of things:

- much better command line parsing
- fixed usage of static and const
- better finding of hosts
- clean internal separation of sub-functions
- expandable design
(This used to be commit 0f88d9c50e)
2001-11-24 13:26:01 +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
Steve French
3ea2fd3a96 Minor fixes to help display, and domain enumeration , and also preparation for new command option
(This used to be commit 3623fbb4f0)
2001-11-12 22:50:48 +00:00
Jim McDonough
806c951344 Internationalization enbalement for net utility - replace printf with d_printf
(This used to be commit b83b21e9ca)
2001-11-06 16:28:50 +00:00
Jeremy Allison
30be58a857 Got serious about const again.
REMOVED BZERO CALLS YET AGAIN !!! Why do these keep creeping back in....
They are *NOT* POSIX. I'm also thinking of removing strncpy as I'm sure
it's not being used correctly....
Jeremy.
(This used to be commit b1930abb35)
2001-11-04 00:14:08 +00:00
Steve French
a8346f4e83 Adding support for net password, net service, net user info, fixing net helps
(This used to be commit a1f3930637)
2001-11-03 21:11:28 +00:00
Herb Lewis
b8fe0f6711 more compiler warnings
(This used to be commit 12c10e876e)
2001-10-23 20:39:38 +00:00
Jim McDonough
c290b209c5 Remove setbuffer which caused build errors
(This used to be commit 5a482350a7)
2001-10-23 17:49:28 +00:00
Jim McDonough
b955d94d5c Replace getopt_long with popt for parsing commandline options
(This used to be commit 0be7bf421b)
2001-10-23 14:16:59 +00:00
Jim McDonough
10d0331754 Add command-line remote management utility
(This used to be commit 50c243518a)
2001-10-19 16:51:26 +00:00