summaryrefslogtreecommitdiff
path: root/source3/utils/net_rpc.c
AgeCommit message (Collapse)AuthorFilesLines
2002-06-28make net join a bit less verboseAndrew Tridgell1-1/+1
these errors happen all the time, so they shouldn't be level 0 (This used to be commit abc2aed26c6cb12a86987a3846ca5c9f7df9a5ae)
2002-06-01Add remainder of net rpc file subcommands, and autoselect transport onJim McDonough1-9/+135
net file (This used to be commit fd938eca210602790c4d0e442f3aa9aa22b5fdf2)
2002-05-31Enable all net rpc share subcommands and autoselect transport.Jim McDonough1-2/+55
(This used to be commit ebd07c3a295e3f8cd46441caac4dc8e8b178c2cc)
2002-05-31Enable net rpc share and net rpc file commands (list subcommands only), andJim McDonough1-4/+196
autoselect for this subcommand when appropriate. (This used to be commit 77418256d3162b41a672a25f7e512999f1193926)
2002-05-11merge from SAMBA_2_2Gerald Carter1-0/+8
(This used to be commit b41cefb4c0670b06564ac79fa10aff8d60069f10)
2002-05-09Start of net rpc group command. List only right now. Add and delete haveJim McDonough1-1/+153
not been implemented...is it worth the effort? (This used to be commit 45ac4f4c29d0d8d1b0b1535b2ab500e38ac5b978)
2002-04-14Partly based on the work by mimir (Rafal SzczesniakAndrew Bartlett1-18/+22
<mimir@diament.ists.pwr.wroc.pl>) this patch allows samba to correctly enumerate its trusted domains - by exaimining the keys in the secrets.tdb file. This patch has been tested with both NT4 and rpcclient/wbinfo, and adds some extra functionality to talloc and rpc_parse to allow it to deal with already unicode strings. Finally, this cleans up some const warnings that were in net_rpc.c by pushing another dash of const into the rpc client code. Andrew Bartlett (This used to be commit 0bdd94cb992b40942aaf2e5e0efd2868b4686296)
2002-04-14Fixed debugs.Tim Potter1-2/+2
(This used to be commit 6d9336f3b9b205e5916424ee844658b445439fdb)
2002-04-05Lots more net consistency work:Jim McDonough1-12/+332
- 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. (This used to be commit 9daa5788c822cf1ad20dc703e7f03b9ee82987bf)
2002-03-17Renamed get_nt_error_msg() to nt_errstr().Tim Potter1-8/+8
(This used to be commit 1f007d3ed41c1b71a89fa6be7d173e67e927c302)
2002-03-16Don't use // even temporarily, lest ye forget it and check it in...Jim McDonough1-3/+3
(This used to be commit 936df31df5bad9d457d3775d11b4e96a58093282)
2002-03-15Change net rpc join several ways: \n\t1) expose \n\t2) eliminate oldstyle ↵Jim McDonough1-16/+17
subcommand \n\t3) try oldstyle first, then more secure method\n to allow for autodetect between ads and rpc on net join (This used to be commit c8a4a09b5648af2f1669a5a30acdf0a088077af9)
2002-03-15Some help cleanups. Formatting and consistency issues. Line up text ↵Jim McDonough1-6/+38
nicely, and make 'net help rap user' the same as 'net rap user help'...stuff like that (This used to be commit 17775dae28c724b11cc73f2aeac5f07f9656046c)
2002-03-15nicer output from "net rpc user add"Andrew Tridgell1-0/+6
(This used to be commit a21ba95897531e7964c9e80a81cd5faa7394db77)
2002-03-01The beginning of trusted and trusting domain support fromAndrew Bartlett1-2/+370
Rafal Szczesniak <mimir@diament.ists.pwr.wroc.pl> This adds the 'net' tools to manipulate the trusted domains. Andrew Bartlett (This used to be commit 770c8a31d9804d3339ffa0de8b5072a5c7eb02df)
2002-01-30Removed version number from file header.Tim Potter1-1/+0
Changed "SMB/Netbios" to "SMB/CIFS" in file header. (This used to be commit 6a58c9bd06d0d7502a24bf5ce5a2faf0a146edfa)
2001-12-31Add 'net rpc shutdown' and 'net rpc abortshutdown'.Andrew Bartlett1-7/+168
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 (This used to be commit 51c985be7fbfe5627c5b2590e7610653e7be98e3)
2001-12-30Add a pile of doxygen style comments to various parts of Samba. Many of theseAndrew Bartlett1-47/+227
probably will never actually be genearted, but I like the style in any case. Also fix a segfault in 'net rpc' when the login failed and a small memory leak on failure in the auth_info.c code. Andrew Bartlett (This used to be commit 2efae7cc522651c22fb120835bc800645559b63e)
2001-12-05OK. Smbpasswd -j is DEAD.Andrew Bartlett1-5/+63
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)
2001-12-05Add a mechinism to allow for sane porting of rpcclient components into the newAndrew Bartlett1-0/+166
'net' command. This also gets us 'net rpc user add'. Andrew Bartlett (This used to be commit 1197689bc56f4b2ca6ffea3b2601b8f6f9f52207)
2001-12-04Add 'net rpc join' to match the ADS equiv.Andrew Bartlett1-1/+2
This kills off the offending code in smbpasswd -j -Uab%c In the process we have changed from unsing compelatly random passwords to random, 15 char ascii strings. While this does produce a decrese in entropy, it is still vastly greater than we need, considering the application. In the meantime this allows us to actually *type* the machine account password duruign debugging. This code also adds a 'check' step to the join, confirming that the stored password does indeed do somthing of value :-) Andrew Bartlett (This used to be commit c0b7ee6ee547dc7ff798eaf8cb63fbe344073029)
2001-12-03This is another major rework of the 'net' command.Andrew Bartlett1-0/+36
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)