summaryrefslogtreecommitdiffstats
path: root/source/utils/net.c
Commit message (Collapse)AuthorAgeFilesLines
* Removed version number from file header.Tim Potter2002-01-301-1/+0
| | | | Changed "SMB/Netbios" to "SMB/CIFS" in file header.
* Enable net ads commands to use existing tickets if the user doesn't specify ↵Jim McDonough2002-01-251-0/+2
| | | | a username on the commandline. Also don't continue past the kinit if a password is entered and fails because existing tickets would be used, which may not be desired if the username was specified.
* Add 'net rpc shutdown' and 'net rpc abortshutdown'.Andrew Bartlett2001-12-311-0/+6
| | | | | | | | These two little features are very useful, but the passing of options about needs some serious work. The popt stuff in the shutdown code is #ifdef'ed out until the main popt loop can be convinced not to chew on the options :-( Andrew Bartlett
* added net lookup commandAndrew Tridgell2001-12-201-1/+3
|
* net now sends its debug to stderr so its output can be relied upon inAndrew Tridgell2001-12-201-1/+1
| | | | scripts
* Display a nice error message for NT_STATUS_LOGON_FAILURE in connect_to_ipc()Tim Potter2001-12-141-0/+7
|
* Set the debuglevel after the call to lp_load() so the change sticks.Tim Potter2001-12-141-2/+2
|
* improved error message from failed connectAndrew Tridgell2001-12-131-6/+3
|
* added a net time command. Allow display or set of system time based onAndrew Tridgell2001-12-111-12/+14
| | | | | | | | | | a SMB server particularly useful for ADS is: net time set -S DOMAIN#1B this makes kerberos clock skew problems go away :)
* Removed unreferenced getopt() externals.Tim Potter2001-12-111-2/+0
|
* reinstated all the rap commands as top level commands until we get theAndrew Tridgell2001-12-101-2/+35
| | | | protocol switch mechanism in place
* OK. Smbpasswd -j is DEAD.Andrew Bartlett2001-12-051-1/+3
| | | | | | | | | | | | | | | | | | | This moves the rest of the functionality into the 'net rpc join' code. Futhermore, this moves that entire area over to the libsmb codebase, rather than the crufty old rpc_client stuff. I have also fixed up the smbpasswd -a -m bug in the process. We also have a new 'net rpc changetrustpw' that can be called from a cron-job to regularly change the trust account password, for sites that run winbind but not smbd. With a little more work, we can kill rpc_client from smbd entirly! (It is mostly the domain auth stuff - which I can rework - and the spoolss stuff that sombody else will need to look over). Andrew Bartlett
* Make it easier to construct anonymous connections with a new flag and helperAndrew Bartlett2001-12-051-2/+28
| | | | function.
* Split out the name resolution code into a seperate functionAndrew Bartlett2001-12-051-27/+38
|
* Some changes to the name resolution code in 'net' to allow us to find aAndrew Bartlett2001-12-041-25/+41
| | | | | | PDC, as well as changes for correctness as per tridge. Andrew Bartlett
* This change reworkes the connection code for both rpcclient and net newAndrew Bartlett2001-12-031-72/+13
| | | | | | | | | | | '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 is another major rework of the 'net' command.Andrew Bartlett2001-12-031-1057/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* fix a bunch of places where we can double-free a cli structureAndrew Tridgell2001-11-281-4/+0
|
* prevent proto from picking up this as a defintion for 'main()' becoue it ↵Andrew Bartlett2001-11-261-1/+1
| | | | conflicts with nmbd's definition.
* More compiler warnings fixed. Some minor reformatting.Tim Potter2001-11-261-91/+140
|
* Got medieval on another pointless extern. Removed extern struct ipzeroTim Potter2001-11-261-5/+5
| | | | | | | and replaced with two functions: void zero_ip(struct in_adder *ip); BOOL is_zero_ip(struct in_addr ip);
* portability fixesAndrew Tridgell2001-11-251-3/+6
|
* fixed typoAndrew Tridgell2001-11-251-1/+1
|
* made a "net ads" command, currently with "net ads join" and "net ads leave"Andrew Tridgell2001-11-251-4/+4
|
* added "net join" commandAndrew Tridgell2001-11-241-185/+48
| | | | this completes the first stage of the smbd ADS support
* rewrote net.cAndrew Tridgell2001-11-241-1260/+1071
| | | | | | | | | | 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
* Store some path names in global variables initialized to configureMartin Pool2001-11-191-1/+1
| | | | default, rather than in preprocessor macros.
* Minor fixes to help display, and domain enumeration , and also preparation ↵Steve French2001-11-121-19/+35
| | | | for new command option
* Internationalization enbalement for net utility - replace printf with d_printfJim McDonough2001-11-061-233/+233
|
* Got serious about const again.Jeremy Allison2001-11-041-18/+18
| | | | | | | 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.
* Adding support for net password, net service, net user info, fixing net helpsSteve French2001-11-031-59/+258
|
* more compiler warningsHerb Lewis2001-10-231-1/+1
|
* Remove setbuffer which caused build errorsJim McDonough2001-10-231-2/+0
|
* Replace getopt_long with popt for parsing commandline optionsJim McDonough2001-10-231-136/+91
|
* Add command-line remote management utilityJim McDonough2001-10-191-0/+1510