summaryrefslogtreecommitdiffstats
path: root/source/utils/net.c
Commit message (Collapse)AuthorAgeFilesLines
* Use common popt definition for -d option.Tim Potter2002-07-291-2/+1
|
* Rafal 'Mimir' Szczesniak <mimir@diament.ists.pwr.wroc.pl> has been busyAndrew Bartlett2002-07-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | again, and has added 'net rpc trustdom list' support. This lists the trusted and trusting domains of a remote PDC. I've applied these almost directly, just fixing some special case code for when there are *no* trusting domains. We still have some parse errors in this case however. Andrew Bartlett. From mimir's e-mail: Here are another patches adding trust relationship features. More details: Better error reporting in cli_lsa_enum_trust_dom(). Implementation of cli_samr_enum_dom_users() which cli_samr.c lacked. More "consts" -- one of arguments in net_find_dc(). Modified implementation of run_rpc_command() -- now it allows to reuse already opened connection (if it is passed) to remote server's IPC$ (e.g. as part of longer exchange of rpc calls). I'm sure Andrew will argue ;-) More neat version of rpc_trustdom_list() function.
* move opt_machine_pass to keep some compilers happyAndrew Tridgell2002-07-141-1/+1
|
* added --machine-pass option to net. This allows you to authenticate asAndrew Tridgell2002-07-131-1/+21
| | | | | the current machine account and password. This is useful both for diagnostics and domain leave.
* Update cli_full_connection() to take a 'flags' paramater, and try to get aAndrew Bartlett2002-06-251-2/+2
| | | | | | few more places to use it. Andrew Bartlett
* Add remainder of net rpc file subcommands, and autoselect transport onJim McDonough2002-06-011-2/+1
| | | | net file
* Enable all net rpc share subcommands and autoselect transport.Jim McDonough2002-05-311-2/+1
|
* Enable net rpc share and net rpc file commands (list subcommands only), andJim McDonough2002-05-311-6/+20
| | | | autoselect for this subcommand when appropriate.
* Some of the updates from ctrlsoft's 'Various' patch:Andrew Bartlett2002-05-241-5/+9
| | | | | | | | | | | - convert net to popt - convert status to popt - adapt examples/pdb/ to multiple passdb system - add dynamic debug class example to examples/pdb/ and some reformatting to better match the samba coding style. Andrew Bartlett
* Remove the password length paramater from cli_full_connection - it reallyAndrew Bartlett2002-05-241-2/+2
| | | | | | | | didn't make any sense, and its was always just strlen(password) anyway. This fixes it to be strlen(password)+1 Andrew Bartlett
* Converged net group command.Jim McDonough2002-05-091-3/+13
|
* Lots more net consistency work:Jim McDonough2002-04-051-82/+10
| | | | | | | | - Added net_help.c for unified help when possible - Added net rpc user listing, delete, info commands - Unified net user command to autodetect ads/rpc/rap (try in that order) - Added generic routine for detecting rpc (protocol > PROTOCOL_NT1) - I'm sure I forgot something.
* Multiple changes:Jim McDonough2002-04-041-11/+16
| | | | | | | | | | - Get rid of improper "Invalid option: d (100)" message when setting debug from commandline. - Eliminate got_pass global and only use opt_password. This enables re-use of password that may have been enetered in failed ads connect. - Auto-detect method for net user command - use new net_ads_check rather than lp_security==ADS test on net join - Get rid of annoying debug level 0's
* Add ability to get specific net ads subcommand help. Not all have beenJim McDonough2002-04-041-1/+1
| | | | implemented yet...
* There is no reason we can't join a domain with secuirty=user. In fact weAndrew Bartlett2002-03-211-5/+0
| | | | | | need to when we are a BDC or a PDC doing a self-join. Andrew Bartlett
* Renamed get_nt_error_msg() to nt_errstr().Tim Potter2002-03-171-2/+2
|
* Add autodetect for net join, as well as some more help updatesJim McDonough2002-03-151-1/+18
|
* Some help cleanups. Formatting and consistency issues. Line up text ↵Jim McDonough2002-03-151-24/+48
| | | | nicely, and make 'net help rap user' the same as 'net rap user help'...stuff like that
* The beginning of trusted and trusting domain support fromAndrew Bartlett2002-03-011-13/+41
| | | | | | | | Rafal Szczesniak <mimir@diament.ists.pwr.wroc.pl> This adds the 'net' tools to manipulate the trusted domains. Andrew Bartlett
* 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
|