summaryrefslogtreecommitdiffstats
path: root/source3/utils/net.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Set the debuglevel after the call to lp_load() so the change sticks.Tim Potter2001-12-141-2/+2
| | | | (This used to be commit 3c927e39e7354d2f65b3ff7148fc325b41552310)
* improved error message from failed connectAndrew Tridgell2001-12-131-6/+3
| | | | (This used to be commit 4405a87fb754cece3a5428246ea6ecb9abba1996)
* 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 :) (This used to be commit b3ba2293d0e4eac3b6408c3abc3dcacfa3f67fe4)
* Removed unreferenced getopt() externals.Tim Potter2001-12-111-2/+0
| | | | (This used to be commit c87d1ad32114200d3e678f8de88874c737f8e571)
* reinstated all the rap commands as top level commands until we get theAndrew Tridgell2001-12-101-2/+35
| | | | | protocol switch mechanism in place (This used to be commit d20c3717dd58745da082d1b4df7698c6d6c38e6c)
* 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 (This used to be commit 575897e879fc175ba702adf245384033342c903d)
* Make it easier to construct anonymous connections with a new flag and helperAndrew Bartlett2001-12-051-2/+28
| | | | | function. (This used to be commit 61b0f5f4f9788784b0806a9a15cbc6bf1005aa68)
* Split out the name resolution code into a seperate functionAndrew Bartlett2001-12-051-27/+38
| | | | (This used to be commit b2443f6fca5840584926b7481acf1975507c445e)
* 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 used to be commit 16d302c5cc0da93a58e0ce10843f9c8d8062c689)
* 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 used to be commit eee925861a3af3aa16efa3b1700a980c9510c14e)
* 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 (This used to be commit 8739d426caabe3794a018dd28ab139b08f88b603)
* fix a bunch of places where we can double-free a cli structureAndrew Tridgell2001-11-281-4/+0
| | | | (This used to be commit e2ba2383c9f679c076749a8f4fccefc3559e37ec)
* prevent proto from picking up this as a defintion for 'main()' becoue it ↵Andrew Bartlett2001-11-261-1/+1
| | | | | | conflicts with nmbd's definition. (This used to be commit 70e9c2efaada4be609ff053d216d554cb036df4e)
* More compiler warnings fixed. Some minor reformatting.Tim Potter2001-11-261-91/+140
| | | | (This used to be commit 8227f6909cca67fcc1a8455f4b386df7778ef2e7)
* 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); (This used to be commit 778f5f77a66cda76348a7c6f64cd63afe2bfe077)
* portability fixesAndrew Tridgell2001-11-251-3/+6
| | | | (This used to be commit 09127d85dc91037c9d0280b57d48d23e93a39f8b)
* fixed typoAndrew Tridgell2001-11-251-1/+1
| | | | (This used to be commit b14ae495028da4d2b995cefa786746d2c649460c)
* made a "net ads" command, currently with "net ads join" and "net ads leave"Andrew Tridgell2001-11-251-4/+4
| | | | (This used to be commit 2f8fa175b189c2d11676245b01d3201c0a4f0826)
* added "net join" commandAndrew Tridgell2001-11-241-185/+48
| | | | | this completes the first stage of the smbd ADS support (This used to be commit 058a5aee901e6609969ef7e1d482a720a84a4a12)
* 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 (This used to be commit 0f88d9c50e419504b9ceca5eadbe30ee04fa42dc)
* Store some path names in global variables initialized to configureMartin Pool2001-11-191-1/+1
| | | | | default, rather than in preprocessor macros. (This used to be commit 79ec88f0da40faebe1e587f1b3e87b5f2b184f58)
* Minor fixes to help display, and domain enumeration , and also preparation ↵Steve French2001-11-121-19/+35
| | | | | | for new command option (This used to be commit 3623fbb4f0182b201d62491fa0680c29a4fd68e3)
* Internationalization enbalement for net utility - replace printf with d_printfJim McDonough2001-11-061-233/+233
| | | | (This used to be commit b83b21e9ca364a097455c119815074f23324111d)
* 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. (This used to be commit b1930abb35dee74f858a3f7190276c418af2322b)
* Adding support for net password, net service, net user info, fixing net helpsSteve French2001-11-031-59/+258
| | | | (This used to be commit a1f3930637a6ccadd4dba90dcd713cf1e4b5a536)
* more compiler warningsHerb Lewis2001-10-231-1/+1
| | | | (This used to be commit 12c10e876ea528fdf33e8ecfe42ab0ebb346b143)
* Remove setbuffer which caused build errorsJim McDonough2001-10-231-2/+0
| | | | (This used to be commit 5a482350a74e255b8db1ea3c8e76654d6f089f51)
* Replace getopt_long with popt for parsing commandline optionsJim McDonough2001-10-231-136/+91
| | | | (This used to be commit 0be7bf421be5ccff295a0d36331e915fce31796f)
* Add command-line remote management utilityJim McDonough2001-10-191-0/+1510
(This used to be commit 50c243518aa7996e697876096073598a3b5a8d3a)