summaryrefslogtreecommitdiffstats
path: root/source/rpcclient
Commit message (Collapse)AuthorAgeFilesLines
* SAMR lookupdomain rpc client patches from amber palekar <amber@nu3.net>Tim Potter2003-04-041-0/+44
|
* Revoke some of the popt patch from metze I applied earlier today. It addedJelmer Vernooij2003-03-241-1/+2
| | | | some double options and broke some parameters.
* Patch from metze to generalise POPT_COMMON_SAMBA, with some minor changesJelmer Vernooij2003-03-241-145/+11
|
* Applied waider's patch to return DOS error codes for pipes thatTim Potter2003-03-1710-192/+217
| | | | support it.
* Patch from Ronan Waide:Martin Pool2003-03-111-1/+1
| | | | | > when doing "enumdomusers", rpcclient prints each one preceded by the > word "group" instead of "user"
* safe_strcpy() -> fstrcpy() fix, and a cleanup to how rpcclient calls theAndrew Bartlett2003-03-072-9/+4
| | | | IP address resolving code.
* Use PRINTER_ALL_ACCESS instead of MAXIMUM_ALLOWED_ACCESS in setprinterTim Potter2003-03-051-1/+1
| | | | command. From Ronan Waide <waider@waider.ie>.
* More const fixes and flow on fixes from yesterday's const-fest.Tim Potter2003-02-257-56/+56
|
* Fixed up some const related compiler warnings.Tim Potter2003-02-254-36/+36
|
* Added enumdomusers command.Tim Potter2003-02-211-0/+75
|
* Fix for only specifying one command with -cTim Potter2003-02-211-1/+4
|
* Remove obsolete filesJelmer Vernooij2003-02-203-3038/+0
|
* Add -V option (to print out version) to utilities where possibleJelmer Vernooij2003-02-182-0/+2
| | | | (pdbedit already has a -V option..)
* Doxygen janitor. No other changes.Martin Pool2003-02-181-0/+9
|
* cmd_lsa_lookup_sids: Check return code from string_to_sid; skip SIDsMartin Pool2003-02-181-2/+5
| | | | which are not valid.
* Dummy commit, I can't get through to samba-cvs@samba.org. It can't reallyVolker Lendecke2003-02-171-1/+0
| | | | | | | | | | | remember under what mail address I have to post. My last commit to this file made it compile again, my fingers were a bit too fast to really type this message. Sorry for this confusion, Volker
* cmd_srvsvc.cVolker Lendecke2003-02-171-3/+3
|
* Typo: /mized/mixed/Martin Pool2003-02-171-1/+1
|
* Don't pstrcpy into an fstring. (Harmless in this case since it comesMartin Pool2003-02-171-3/+10
| | | | from an environment variable.)
* Start reworking rpcclient to use popt rather than next_token to parseMartin Pool2003-02-171-103/+69
| | | | | | | | | command lines. This makes the code much simpler and also stops trivial syntax errors from causing a crash. Also fix support for semicolon-separated commands in -c, which is promised by the manual but apparently never working due to an off-by-one error.
* Match Samba 2.2 by chosing the correct desired access, and getting cupsaddsmbAndrew Bartlett2003-02-121-1/+1
| | | | | | back working again. Andrew Bartlett
* added the 'lsaenumacctwithright' command to rpcclient. This allows youAndrew Tridgell2003-02-101-2/+47
| | | | | to lookup what SIDs have a particular privilege (that is how privileges are stored).
* Use new interface for cli_samr_query_dispinfo().Tim Potter2003-01-291-6/+22
|
* Remove NULL buffer checks before rpcstr_pull() as they're now doneTim Potter2003-01-291-63/+38
| | | | inside this function.
* added LsaRemoveAccountRightsAndrew Tridgell2003-01-281-1/+40
| | | | | this now gives us complete remove privileges control in the client libs, so we are in good shape for starting on the server side.
* cleaned up the lsa_enum_acct_rights function and added aAndrew Tridgell2003-01-281-0/+39
| | | | | | lsa_add_acct_rights function. This allows us to add privileges remotely to accounts using rpcclient.
* revert accidentally committed changesJim McDonough2003-01-212-86/+4
|
* Properly display popt errors. Also fix debug to be -d for consistency with ↵Jim McDonough2003-01-212-4/+86
| | | | other progs.
* reverted this patch till I sort out the craziness with UNIHDRAndrew Tridgell2003-01-171-2/+2
|
* This removes the 3rd argument from init_unistr2(). There were 240Andrew Tridgell2003-01-171-2/+2
| | | | | | | | | | | | | | calls to init_unistr2() in the code and every one of them got the 3rd argument incorrect, so I thought it best just to remove the argument. The incorrect usage was caused by callers using strlen() to determine the length of the string. The 3rd argument to init_unistr2() was supposed to be the character length, not the byte length of the string, so for non-english this could come out wrong. I also removed the bogus 'always allocate at least 256 bytes' hack. There may be some code that relies on this, but if there is then the code is broken and needs fixing.
* allow a couple of LSA functions to take a username instead of a SID,Andrew Tridgell2003-01-161-3/+44
| | | | | They still accept a SID, it just can be tedious to have to type SIDs instead of names all the time.
* * removed unused variable from rpcclient codeGerald Carter2003-01-151-3/+2
| | | | | * added container option to net command (patch from SuSE) * Makefile patch for examples/VFS from SuSE
* added cli_lsa_enum_account_rights() call. Note that this is inAndrew Tridgell2003-01-151-0/+48
| | | | | | | | | | | principal similar to the existing cli_lsa_enum_privsaccount() call, except that cli_lsa_enum_account_rights() doesn't require a call to open_account first. There is also the minor matter that cli_lsa_enum_account_rights() works whereas cli_lsa_enum_privsaccount() doesn't! this call can be used to find what privileges an account or group has. This is a first step towards proper privileges support in Samba.
* A couple more fstring/pstring issues - and move from sizeof(fstring) toAndrew Bartlett2003-01-112-34/+32
| | | | | | | | sizeof(var) in slprintf statements, so as to ensure we don't get mixups there. Also remove fstrcpy() into a variable that is about to be printed into anyway. Andrew Bartlett
* Display an error message when the server cannot be resolved when running atTim Potter2003-01-081-1/+1
| | | | debug level 0.
* BIG patch...Andrew Bartlett2003-01-023-10/+10
| | | | | | | | | | | | | | | | 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
* the shutdown call does not have a 16 bit flags, but 2 byte representing booleansSimo Sorce2002-12-301-19/+16
| | | | | | | | this commit change the structure and code to reflect this some test revelead I'm right. some other revelead currently the abort shutdown does not work against my test machine even if it returns successfully ... need investigation
* Finish adding strings to all talloc_init() calls.Jeremy Allison2002-12-231-1/+1
| | | | Jeremy.
* Forward port the change to talloc_init() to make all talloc contextsJeremy Allison2002-12-202-3/+3
| | | | | named. Ensure we can query them. Jeremy.
* make querygroup in rpcclient working, same fix as per 2.2 treeSimo Sorce2002-12-081-4/+2
|
* Removed global_myworkgroup, global_myname, global_myscope. Added liberalJeremy Allison2002-11-121-6/+6
| | | | | | dashes of const. This is a rather large check-in, some things may break. It does compile though :-). Jeremy.
* Add getdata and getdataex commandsJim McDonough2002-11-111-38/+187
|
* deldriver fixGerald Carter2002-11-091-6/+11
|
* Add enumdataex commandJim McDonough2002-11-081-0/+80
|
* Implement enumdata commandJim McDonough2002-11-081-2/+85
|
* Add enumkey command (EnumPrinterKey api)Jim McDonough2002-11-081-0/+76
|
* Merge of scalable printing code fix... Needs testing.Jeremy Allison2002-11-071-1/+1
| | | | | | | Also tidied up some of Richard's code (I don't think he uses the compiler flags -g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual like I do :-) :-). Jeremy.
* Merge of get_dc_list() api change. This was slightly more intrusiveTim Potter2002-11-061-5/+4
| | | | than the version in APPLIANCE so watch out for boogs.
* Added new error codes. Fix up connection code to retry in the same wayJeremy Allison2002-10-171-1/+1
| | | | | that app-head does. Jeremy.
* Update popt help message and use popt-commonJelmer Vernooij2002-10-051-12/+7
|