summaryrefslogtreecommitdiffstats
path: root/source3/utils/net_rpc.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix for bug#3. Show comments when doing 'net group -l'.Volker Lendecke2003-06-121-16/+80
| | | | | Volker (This used to be commit e5664adc07307a066c5312d9224cef2c69a40f77)
* Working on bug#3. We want all of the aliases, so start with 0.Volker Lendecke2003-06-121-0/+2
| | | | | Volker (This used to be commit ec1a58d09e08583288b18747a0c82e5cf8139b63)
* Fix compile.Andrew Bartlett2003-05-111-1/+1
| | | | (This used to be commit ca2e453c7838b6d0ed2d0a45124d162073bbbf99)
* Set the password for a newly created trustdom account. Tested againstVolker Lendecke2003-05-111-3/+34
| | | | | | | PDCs running NT4SP1, NT4SP6 and Samba 3.0. Volker (This used to be commit 2143446043b2c29027cf69554caddf41274df709)
* Fix the spinning bug for 'net rpc user' as well - there are more errors inAndrew Bartlett2003-05-071-4/+4
| | | | | | | | | this world than 'status more entires'... Also move all the cases to 'NT_STATUS_EQUAL()' to test it. Andrew Bartlett (This used to be commit b4645bf0661dadcd077b21bb6f6452ed8b2eb726)
* Turn off using lsa_qos in OpenPolicy call. This way we avoid annoyingRafal Szczesniak2003-05-051-2/+2
| | | | | | | | debug msg while establishing trust and listing relations of Samba PDC. Rafal (This used to be commit 8681cbae0d142a1f9ac537cb22e611a6f5262b54)
* Turn down some DEBUG()s and remove some duplicate code spotted by dfenwick.Andrew Bartlett2003-05-011-39/+17
| | | | | Andrew Bartlett (This used to be commit 542a8b1817d3930e03e08e16e9711cacceb6df61)
* Allow net rpc user -l to list longer than 50 characters in a user comment.Jim McDonough2003-04-291-1/+1
| | | | | | Net.exe on windows won't allow more than 50 characters to be entered, but through AD you can have much more than this. (This used to be commit ca2886c9385361ea401e3e0b47c26cb39adcadbc)
* Merge of missed another while condition when enumerating aliases.Tim Potter2003-04-251-1/+1
| | | | (This used to be commit ee78196bcfe52dfdda0b7fd44a6701e2cf5f7d5a)
* Merge:Tim Potter2003-04-251-2/+2
| | | | | | | | >When calling cli_samr_enum_{dom,als}_groups in a while loop, the >terminating condition should be result != STATUS_MORE_ENTRIES, not >result == NT_STATUS_OK otherwise we get stuck in an infinite loop >when there's any sign of trouble. (This used to be commit 4998a72cf8e3a2b254dc409a36b9bbd118bdc4fd)
* Merge from HEAD - save the type of channel used to contact the DC.Andrew Bartlett2003-04-211-24/+61
| | | | | | | | | | | | This allows us to join as a BDC, without appearing on the network as one until we have the database replicated, and the admin changes the configuration. This also change the SID retreval order from secrets.tdb, so we no longer require a 'net rpc getsid' - the sid fetch during the domain join is sufficient. Also minor fixes to 'net'. Andrew Bartlett (This used to be commit 876e00fd112e4aaf7519eec27f382eb99ec7562a)
* Fixes to make SCHANNEL work in 3.0 against a W2K DC. Still need to fixJeremy Allison2003-04-161-0/+2
| | | | | | multi-PDU encode/decode with SCHANNEL. Also need to test against WNT DC. Jeremy. (This used to be commit ff66d4097088409205b6bad5124a78ef9946010d)
* - Change ADS CHOSTPASS -> ADS CHANGETRUSTPWJelmer Vernooij2003-04-141-2/+2
| | | | | | - Add general CHANGETRUSTPW function that calls ADS CHANGETRUSTPW or RPC CHANGETRUSTPW (Merged from HEAD) (This used to be commit f0982e1102276453d79e438ffb90c9fa305ff98b)
* Merge of bugfix for cli_lsa_query_info_policy() usage.Tim Potter2003-04-141-5/+7
| | | | (This used to be commit ab64a0b1e7666b6612659b5720eda451c0ab4857)
* Merge tpot's changes to request the correct sizes for user dispinfoJeremy Allison2003-01-291-2/+9
| | | | | | | from HEAD. I had to do this for him as he was *so* tired, the poor chap, plus he has this bad leg, plus the dog ate his homework etc. etc. Jeremy. (This used to be commit 1e752b48a12cdcf2cb6343705be83f304e5ee2b6)
* Merge from HEAD - idra's fix for the fact that the shutdown command takes two 1Andrew Bartlett2003-01-041-10/+1
| | | | | | | byte boolean flags, not a 16 bit bitmask. Andrew Bartlett (This used to be commit a4f7777ca08c732ace2ba60bc0ecffbea1239fc3)
* Merge from HEAD - make Samba compile with -Wwrite-strings without additionalAndrew Bartlett2003-01-031-18/+5
| | | | | | | warnings. (Adds a lot of const). Andrew Bartlett (This used to be commit 3a7458f9472432ef12c43008414925fd1ce8ea0c)
* Forward port the change to talloc_init() to make all talloc contextsJeremy Allison2002-12-201-6/+6
| | | | | | named. Ensure we can query them. Jeremy. (This used to be commit 09a218a9f6fb0bd922940467bf8500eb4f1bcf84)
* Merge a bunch of trivial changes from HEAD. The difference remainingTim Potter2002-11-291-3/+4
| | | | | | | | | | should actual functional differences between HEAD and 3.0. - Mostly reformatting - Removal of unecessary #include "smb.h" - Merge of dyn_DRIVERFILE removal - Silly bug fix for python code (This used to be commit d3998307adc50ba50defe610cb656c73799ae3b9)
* Updates from HEAD:Andrew Bartlett2002-11-151-0/+2
| | | | | | | | | | | - const for PACKS() in lanman.c - change auth to 'account before password' - add help to net rpc {vampire,samsync} - configure updates for sun workshop cc - become_root() around pdb_ calls in auth_util for guest login. Andrew Bartlett (This used to be commit 43e90eb6e331d478013a9c038292f245edc51bd0)
* Removed global_myworkgroup, global_myname, global_myscope. Added liberalJeremy Allison2002-11-121-7/+4
| | | | | | | dashes of const. This is a rather large check-in, some things may break. It does compile though :-). Jeremy. (This used to be commit f755711df8f74f9b8e8c1a2b0d07d02a931eeb89)
* port sec_desc headers reordering from HEAD.Simo Sorce2002-11-021-2/+2
| | | | | Thanks to Andrew Brtlet for the diff :-) (This used to be commit cf67981e73cf52803eae589a6b86e1274bf72d2c)
* merge of new client side support the Win2k LSARPC UUID in rpcbindGerald Carter2002-10-041-27/+27
| | | | | from APP_HEAD (This used to be commit 1cfd2ee433305e91e87804dd55d10e025d30a69e)
* Updates from Samba HEAD:Andrew Bartlett2002-10-011-5/+14
| | | | | | | | | | | | | | | | | - Fix segfaults in the 'net ads' commands when no password is provided - Readd --with-ldapsam for 2.2 compatability. This conditionally compiles the old options, but the actual code is available on all ldap systems. - Fix shadow passwords (as per work with vl) - Fix sending plaintext passwords to unicode servers (again vl) - Add a bit of const to secrets.c functions - Fix some spelling and grammer by vance. - Document the -r option in smbgroupedit. There are more changes in HEAD, I'm only merging the changes I've been involved with. Andrew Bartlett (This used to be commit 83973c389355a5cc9ca74af467dfd8b5dabd2c8f)
* sync'ing up for 3.0alpha20 releaseGerald Carter2002-09-251-18/+87
| | | | (This used to be commit 65e7b5273bb58802bf0c389b77f7fcae0a1f6139)
* sync 3.0 branch with HEADJelmer Vernooij2002-08-171-54/+314
| | | | (This used to be commit 1b83b78e332b9d28914eff155530e81cf2073a58)
* updated the 3.0 branch from the head branch - ready for alpha18Andrew Tridgell2002-07-151-30/+641
| | | | (This used to be commit 03ac082dcb375b6f3ca3d810a6a6367542bc23ce)
* Lots more net consistency work:Jim McDonough2002-04-051-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)
* Renamed get_nt_error_msg() to nt_errstr().Tim Potter2002-03-171-8/+8
| | | | (This used to be commit 1f007d3ed41c1b71a89fa6be7d173e67e927c302)
* Don't use // even temporarily, lest ye forget it and check it in...Jim McDonough2002-03-161-3/+3
| | | | (This used to be commit 936df31df5bad9d457d3775d11b4e96a58093282)
* Change net rpc join several ways: \n\t1) expose \n\t2) eliminate oldstyle ↵Jim McDonough2002-03-151-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)
* Some help cleanups. Formatting and consistency issues. Line up text ↵Jim McDonough2002-03-151-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)
* nicer output from "net rpc user add"Andrew Tridgell2002-03-151-0/+6
| | | | (This used to be commit a21ba95897531e7964c9e80a81cd5faa7394db77)
* The beginning of trusted and trusting domain support fromAndrew Bartlett2002-03-011-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)
* Removed version number from file header.Tim Potter2002-01-301-1/+0
| | | | | Changed "SMB/Netbios" to "SMB/CIFS" in file header. (This used to be commit 6a58c9bd06d0d7502a24bf5ce5a2faf0a146edfa)
* Add 'net rpc shutdown' and 'net rpc abortshutdown'.Andrew Bartlett2001-12-311-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)
* Add a pile of doxygen style comments to various parts of Samba. Many of theseAndrew Bartlett2001-12-301-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)
* OK. Smbpasswd -j is DEAD.Andrew Bartlett2001-12-051-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)
* Add a mechinism to allow for sane porting of rpcclient components into the newAndrew Bartlett2001-12-051-0/+166
| | | | | | | | | 'net' command. This also gets us 'net rpc user add'. Andrew Bartlett (This used to be commit 1197689bc56f4b2ca6ffea3b2601b8f6f9f52207)
* Add 'net rpc join' to match the ADS equiv.Andrew Bartlett2001-12-041-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)
* This is another major rework of the 'net' command.Andrew Bartlett2001-12-031-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)