summaryrefslogtreecommitdiff
path: root/source3/utils/net.c
AgeCommit message (Collapse)AuthorFilesLines
2003-04-19[merge from SAMBA_3_0]Gerald Carter1-0/+21
Merging smbgroupedit into 'net groupmap'. Not entirely done. Need to check on where the privilege code is sitting and update the docs. Examples: root# bin/net help groupmap net groupmap add Create a new group mapping net groupmap modify Update a group mapping net groupmap delete Remove a group mapping net groupmap list List current group map # bin/net groupmap add Usage: net groupmap add rid=<int> name=<string> type=<domain|local|builtin> [comment=<string>] # bin/net groupmap delete Usage: net groupmap delete name=<string|SID> # bin/net groupmap modify Usage: net groupmap modify name=<string|SID> [comment=<string>] [type=<domain|local>] (This used to be commit 0fd28bc3a803ca1ec3dcd8cc6236d4ecc3134584)
2003-04-16Fix segfault by getting this the right way aroundAndrew Bartlett1-1/+1
(This used to be commit 8ba6148c69031e9a82687d4d006e1fa7ada21e91)
2003-04-16Store the type of 'sec channel' that we establish to the DC. If we are aAndrew Bartlett1-5/+27
workstation, we have to use the workstation type, if we have a BDC account, we must use the BDC type - even if we are pretending to be a workstation at the moment. Also actually store and retreive the last change time, so we can do periodic password changes again (for RPC at least). And finally, a couple of minor fixes to 'net'. Andrew Bartlett (This used to be commit 6e6b7b79edae3efd0197651e9a8ce6775c001cf2)
2003-04-14Change ADS CHOSTPASS to ADS CHANGETRUSTPW and add aJelmer Vernooij1-0/+9
general CHANGETRUSTPW that calls ADS CHANGETRUSTPW or RPC CHANGETRUSTPW depending on what we have. (This used to be commit 17d27db5c9d3511444fc2770d4452647284e8014)
2003-04-13Some small changes - typos, adding usage for some commandsJelmer Vernooij1-3/+1
and removing -j because it was not used at all. (This used to be commit e3e2c1b27128f7b5a1f4bbc8093c75b0c12549b4)
2003-03-24Revoke some of the popt patch from metze I applied earlier today. It addedJelmer Vernooij1-0/+1
some double options and broke some parameters. (This used to be commit d5f9b0275c91512e1926504f22aaeec2d104430d)
2003-03-24Patch from metze to generalise POPT_COMMON_SAMBA, with some minor changesJelmer Vernooij1-3/+0
(This used to be commit 2ddfed298d7f0b6e690275725a39c3ef107077ae)
2003-03-23Use popt_common for -s, -d and -VJelmer Vernooij1-14/+5
(This used to be commit a1576694a6f23e1c70d7d81ac4feedd4f29c5400)
2003-03-06More safe_strcpy() off-by-one bug fixes. (mostly moves to pstrcpy()/fstrcpy())Andrew Bartlett1-1/+1
Andrew Bartlett (This used to be commit 42b5514404bc7e33306c11344c6c934a1f83d295)
2003-03-03Try the PASSWD environment variable if we don't have one from the command line.Andrew Bartlett1-0/+4
(This used to be commit 14d7d8b22993ca7f1c273a7baaccb09c8fa04ef9)
2003-02-18Add -V option (to print out version) to utilities where possibleJelmer Vernooij1-0/+1
(pdbedit already has a -V option..) (This used to be commit 5de622968d95c1436dbd34edc8d0a9bbff68916b)
2003-01-21Properly display popt errors. Also fix debug to be -d for consistency with ↵Jim McDonough1-2/+3
other progs. (This used to be commit 97133f7168852dc185dbf4492afcaf4b68180f65)
2003-01-21Deleted arguments to help output - they didn't work.Tim Potter1-1/+1
(This used to be commit 8b167a45a6ae041cd35dbf2a25d7a300f86440a2)
2003-01-15* removed unused variable from rpcclient codeGerald Carter1-0/+2
* added container option to net command (patch from SuSE) * Makefile patch for examples/VFS from SuSE (This used to be commit 4a6d8280ea27ca7a6998219aacc4b15b1227a659)
2003-01-02BIG patch...Andrew Bartlett1-7/+9
This patch makes Samba compile cleanly with -Wwrite-strings. - That is, all string literals are marked as 'const'. These strings are always read only, this just marks them as such for passing to other functions. What is most supprising is that I didn't need to change more than a few lines of code (all in 'net', which got a small cleanup of net.h and extern variables). The rest is just adding a lot of 'const'. As far as I can tell, I have not added any new warnings - apart from making all of tdbutil.c's function const (so they warn for adding that const string to struct). Andrew Bartlett (This used to be commit 92a777d0eaa4fb3a1c7835816f93c6bdd456816d)
2002-11-12Removed global_myworkgroup, global_myname, global_myscope. Added liberalJeremy Allison1-20/+11
dashes of const. This is a rather large check-in, some things may break. It does compile though :-). Jeremy. (This used to be commit 82b8f749a36b42e22186297482aad2abb04fab8a)
2002-11-09Fix bug where not specifying '-S PDC' in 'net join' would cause it to attemptAndrew Bartlett1-0/+1
to contact a random IP address. Andrew Bartlett (This used to be commit e6837a85605f258da1fa9ac7ad329bc62392f29a)
2002-11-06Merge of get_dc_list() api change. This was slightly more intrusiveTim Potter1-19/+6
than the version in APPLIANCE so watch out for boogs. (This used to be commit 1e054e3db654801fbb5580211529cdfdea9ed686)
2002-10-28Implement 'net maxrid'. Needed to find the maximum current rid toVolker Lendecke1-0/+79
set 'algorithmic rid base' correctly after a 'net rpc vampire'. Volker (This used to be commit 5c0869be321852919dba1566c6bcab02e4657541)
2002-10-17Added new error codes. Fix up connection code to retry in the same wayJeremy Allison1-2/+2
that app-head does. Jeremy. (This used to be commit b521abd86b10573ca8f9116907c81e6deb55f049)
2002-09-27Minor updates:Andrew Bartlett1-1/+6
Add const to some more functions, and reintroduce 'net rpc join oldstyle' as *only* trying an old-style join. This means that we can rely on it not prompting for a password on the build farm. Andrew Bartlett (This used to be commit 31bdbeef0ea6f30247cd3b30cfea57b34102abe6)
2002-09-23Add net getlocalsid [name]Richard Sharpe1-0/+26
(This used to be commit 08c3e2b824cd2c93ca548fa18ea16a18f5b197e5)
2002-09-23Add the ability to view/set the current local domain SIDs.Volker Lendecke1-0/+45
Volker (This used to be commit f6ed429838cc0140c0d033875012c7a999891549)
2002-09-11added gencache implementation from mimir - thanks!Andrew Tridgell1-0/+1
(This used to be commit 05a202c287f5daeb1ccbaf9479aa93e7928e93db)
2002-08-21global_myname is a pstring, not an fstringVolker Lendecke1-1/+1
(This used to be commit 2df34c9bfc76ee832e5005a2ad0ff0b6abb98034)
2002-08-21Fix debug level initialization for net.cVolker Lendecke1-1/+1
Volker (This used to be commit 5af5326f1311a49d3c8316e1dcc27037b831065a)
2002-07-29Use common popt definition for -d option.Tim Potter1-2/+1
(This used to be commit 8c17904848a6206ab35652625ff5f3afcf6bcb0d)
2002-07-27Rafal 'Mimir' Szczesniak <mimir@diament.ists.pwr.wroc.pl> has been busyAndrew Bartlett1-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. (This used to be commit f0890026820ee3e432147130b46de4610e583381)
2002-07-14move opt_machine_pass to keep some compilers happyAndrew Tridgell1-1/+1
(This used to be commit 39e11ef5b1090e51c6c447c8037a43b52e04b881)
2002-07-13added --machine-pass option to net. This allows you to authenticate asAndrew Tridgell1-1/+21
the current machine account and password. This is useful both for diagnostics and domain leave. (This used to be commit 73b246981fd5b27cc1d835946b89e82f5b78f332)
2002-06-25Update cli_full_connection() to take a 'flags' paramater, and try to get aAndrew Bartlett1-2/+2
few more places to use it. Andrew Bartlett (This used to be commit 23689b0746d5ab030d8693abf71dd2e80ec1d7c7)
2002-06-01Add remainder of net rpc file subcommands, and autoselect transport onJim McDonough1-2/+1
net file (This used to be commit fd938eca210602790c4d0e442f3aa9aa22b5fdf2)
2002-05-31Enable all net rpc share subcommands and autoselect transport.Jim McDonough1-2/+1
(This used to be commit ebd07c3a295e3f8cd46441caac4dc8e8b178c2cc)
2002-05-31Enable net rpc share and net rpc file commands (list subcommands only), andJim McDonough1-6/+20
autoselect for this subcommand when appropriate. (This used to be commit 77418256d3162b41a672a25f7e512999f1193926)
2002-05-24Some of the updates from ctrlsoft's 'Various' patch:Andrew Bartlett1-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 (This used to be commit 2498bc69d4e5c38ec385f640489daa94c508c726)
2002-05-24Remove the password length paramater from cli_full_connection - it reallyAndrew Bartlett1-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 (This used to be commit c205b18bd6b9b69200ff3db55f2c641631d4ab40)
2002-05-09Converged net group command.Jim McDonough1-3/+13
(This used to be commit 95cc3fa4d3e566f540090ed499e80d86eb55e895)
2002-04-05Lots more net consistency work:Jim McDonough1-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. (This used to be commit 9daa5788c822cf1ad20dc703e7f03b9ee82987bf)
2002-04-04Multiple changes:Jim McDonough1-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 (This used to be commit 1280968000595c28ed62d9e74acecfdc84e33710)
2002-04-04Add ability to get specific net ads subcommand help. Not all have beenJim McDonough1-1/+1
implemented yet... (This used to be commit 24c6bf4e8b6d519340d5f9f3353ffc6b5f7520b3)
2002-03-21There is no reason we can't join a domain with secuirty=user. In fact weAndrew Bartlett1-5/+0
need to when we are a BDC or a PDC doing a self-join. Andrew Bartlett (This used to be commit 996cd3a0979a92b087003982bc61796a8090a787)
2002-03-17Renamed get_nt_error_msg() to nt_errstr().Tim Potter1-2/+2
(This used to be commit 1f007d3ed41c1b71a89fa6be7d173e67e927c302)
2002-03-15Add autodetect for net join, as well as some more help updatesJim McDonough1-1/+18
(This used to be commit 951006374e48d80a5128d870bdc255bf8c22cb6a)
2002-03-15Some help cleanups. Formatting and consistency issues. Line up text ↵Jim McDonough1-24/+48
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-01The beginning of trusted and trusting domain support fromAndrew Bartlett1-13/+41
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)
2002-01-25Enable net ads commands to use existing tickets if the user doesn't specify ↵Jim McDonough1-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. (This used to be commit 7e5d7dfa834c0161460bde8a2f0d4824c0a0d1fe)
2001-12-31Add 'net rpc shutdown' and 'net rpc abortshutdown'.Andrew Bartlett1-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 (This used to be commit 51c985be7fbfe5627c5b2590e7610653e7be98e3)
2001-12-20added net lookup commandAndrew Tridgell1-1/+3
(This used to be commit 51268c512dbae94aba308668df9facaf15a2ce9e)
2001-12-20net now sends its debug to stderr so its output can be relied upon inAndrew Tridgell1-1/+1
scripts (This used to be commit 6d2f7ed708e75687d23f432ba9a186e88fa14118)