summaryrefslogtreecommitdiff
path: root/source3/rpcclient
AgeCommit message (Collapse)AuthorFilesLines
2003-03-11Patch from Ronan Waide:Martin Pool1-1/+1
> when doing "enumdomusers", rpcclient prints each one preceded by the > word "group" instead of "user" (This used to be commit 17567dd1d510d4cf1dffa67be78510ae51571ec6)
2003-03-07safe_strcpy() -> fstrcpy() fix, and a cleanup to how rpcclient calls theAndrew Bartlett2-9/+4
IP address resolving code. (This used to be commit 1f605fe77c56ee2a7838c9f87eedf4bb91ebf688)
2003-03-05Use PRINTER_ALL_ACCESS instead of MAXIMUM_ALLOWED_ACCESS in setprinterTim Potter1-1/+1
command. From Ronan Waide <waider@waider.ie>. (This used to be commit 992b5eb4e05fbf99d91d7235b9a002957533f95b)
2003-02-25More const fixes and flow on fixes from yesterday's const-fest.Tim Potter7-56/+56
(This used to be commit 018733eedd7897e6811e8461c07e3acf418c0e09)
2003-02-25Fixed up some const related compiler warnings.Tim Potter4-36/+36
(This used to be commit 923425e497112c5d1e2e569da6c13dcd02b6a8af)
2003-02-21Added enumdomusers command.Tim Potter1-0/+75
(This used to be commit 30353da3e94f732e9f1b258e62da906f628e09d0)
2003-02-21Fix for only specifying one command with -cTim Potter1-1/+4
(This used to be commit 7418351427071edccb2e825ddbbf31fce8ef381e)
2003-02-20Remove obsolete filesJelmer Vernooij3-3038/+0
(This used to be commit f035cba2cf5764722318e9cd10dbe7bef56d0732)
2003-02-18Add -V option (to print out version) to utilities where possibleJelmer Vernooij2-0/+2
(pdbedit already has a -V option..) (This used to be commit 5de622968d95c1436dbd34edc8d0a9bbff68916b)
2003-02-18Doxygen janitor. No other changes.Martin Pool1-0/+9
(This used to be commit 735c99dadbaffbb53662890e3dc8a668b211da9d)
2003-02-18cmd_lsa_lookup_sids: Check return code from string_to_sid; skip SIDsMartin Pool1-2/+5
which are not valid. (This used to be commit bfb6104521bd75da71a09a6c56bd44560416116e)
2003-02-17Dummy commit, I can't get through to samba-cvs@samba.org. It can't reallyVolker Lendecke1-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 (This used to be commit 3b905f5a16dff8ce6742a92fd403cb720707f513)
2003-02-17cmd_srvsvc.cVolker Lendecke1-3/+3
(This used to be commit fcfbb3c430b2e48819c0c1852bc154661c4b7adf)
2003-02-17Typo: /mized/mixed/Martin Pool1-1/+1
(This used to be commit ada36d2fe38dbb07886a671a6d85b6317ab230a8)
2003-02-17Don't pstrcpy into an fstring. (Harmless in this case since it comesMartin Pool1-3/+10
from an environment variable.) (This used to be commit 9f9077346bf9f7c96376169c60aa893f15fb9d2c)
2003-02-17Start reworking rpcclient to use popt rather than next_token to parseMartin Pool1-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. (This used to be commit d85a25e733fe970ae96a02a5cbc892f2b8dca1b7)
2003-02-12Match Samba 2.2 by chosing the correct desired access, and getting cupsaddsmbAndrew Bartlett1-1/+1
back working again. Andrew Bartlett (This used to be commit 512e65a6a6ac5ee97edf1868007db20bb144857f)
2003-02-10added the 'lsaenumacctwithright' command to rpcclient. This allows youAndrew Tridgell1-2/+47
to lookup what SIDs have a particular privilege (that is how privileges are stored). (This used to be commit 3ddb5fb0dd33992b7db54a661752551a3fefc0b4)
2003-01-29Use new interface for cli_samr_query_dispinfo().Tim Potter1-6/+22
(This used to be commit d3962da61a5717dda7e99996bbeb4735d4373041)
2003-01-29Remove NULL buffer checks before rpcstr_pull() as they're now doneTim Potter1-63/+38
inside this function. (This used to be commit cdc7c599c72119e96a2a3d392458cd6d52bf56a5)
2003-01-28added LsaRemoveAccountRightsAndrew Tridgell1-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. (This used to be commit bf99440398db86f46233eb2f5adddffb61280a1b)
2003-01-28cleaned up the lsa_enum_acct_rights function and added aAndrew Tridgell1-0/+39
lsa_add_acct_rights function. This allows us to add privileges remotely to accounts using rpcclient. (This used to be commit 2e5e659e095a94b0716d97f673f993f0af99aabe)
2003-01-21revert accidentally committed changesJim McDonough2-86/+4
(This used to be commit 5d43346761cd120c12766536efb0513994d7bace)
2003-01-21Properly display popt errors. Also fix debug to be -d for consistency with ↵Jim McDonough2-4/+86
other progs. (This used to be commit 97133f7168852dc185dbf4492afcaf4b68180f65)
2003-01-17reverted this patch till I sort out the craziness with UNIHDRAndrew Tridgell1-2/+2
(This used to be commit e3d00fa47d38cd214f5e350e1d6b30d90ed8a52c)
2003-01-17This removes the 3rd argument from init_unistr2(). There were 240Andrew Tridgell1-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. (This used to be commit b9eff31b1433c81fbff733e194914a40f25e3bda)
2003-01-16allow a couple of LSA functions to take a username instead of a SID,Andrew Tridgell1-3/+44
They still accept a SID, it just can be tedious to have to type SIDs instead of names all the time. (This used to be commit 665cc9b1aceb454074e9de9c6e8636b39be29493)
2003-01-15* removed unused variable from rpcclient codeGerald Carter1-3/+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-15added cli_lsa_enum_account_rights() call. Note that this is inAndrew Tridgell1-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. (This used to be commit 65bac11d716f873dcdbda528313c33634c26a072)
2003-01-11A couple more fstring/pstring issues - and move from sizeof(fstring) toAndrew Bartlett2-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 (This used to be commit 9b761237321d475c324a3995fe6f0922550ae995)
2003-01-08Display an error message when the server cannot be resolved when running atTim Potter1-1/+1
debug level 0. (This used to be commit 451286febd251d25b8beeae9b41a09102240c219)
2003-01-02BIG patch...Andrew Bartlett3-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 (This used to be commit 92a777d0eaa4fb3a1c7835816f93c6bdd456816d)
2002-12-30the shutdown call does not have a 16 bit flags, but 2 byte representing booleansSimo Sorce1-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 (This used to be commit c5892b656dedd0367adc33d9606311d1dde99a58)
2002-12-23Finish adding strings to all talloc_init() calls.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 784d15761c3271bfd602866f8f9f880dac77671c)
2002-12-20Forward port the change to talloc_init() to make all talloc contextsJeremy Allison2-3/+3
named. Ensure we can query them. Jeremy. (This used to be commit 842e08e52a665ae678eea239759bb2de1a0d7b33)
2002-12-08make querygroup in rpcclient working, same fix as per 2.2 treeSimo Sorce1-4/+2
(This used to be commit 8877ff2482bfa880614a9f40eed448d60216419d)
2002-11-12Removed global_myworkgroup, global_myname, global_myscope. Added liberalJeremy Allison1-6/+6
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-11Add getdata and getdataex commandsJim McDonough1-38/+187
(This used to be commit 101727335fffd4011659bfa9f7f8ab24b641fc4e)
2002-11-09deldriver fixGerald Carter1-6/+11
(This used to be commit f20de1f9b0dcac15fbf968e6d5d5af2fdd5fbda1)
2002-11-08Add enumdataex commandJim McDonough1-0/+80
(This used to be commit 6d1d2849a7b2f99d927ba168ed2d01a879b09e69)
2002-11-08Implement enumdata commandJim McDonough1-2/+85
(This used to be commit a22fdf26fef0cd58c84ca13891a762e3fdc6af8b)
2002-11-08Add enumkey command (EnumPrinterKey api)Jim McDonough1-0/+76
(This used to be commit a2e17d4344f996b64cd9c4f01b6b15c069fde41b)
2002-11-07Merge of scalable printing code fix... Needs testing.Jeremy Allison1-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. (This used to be commit 10024ed06e9d91f24fdc78d59eef2f76bf395438)
2002-11-06Merge of get_dc_list() api change. This was slightly more intrusiveTim Potter1-5/+4
than the version in APPLIANCE so watch out for boogs. (This used to be commit 1e054e3db654801fbb5580211529cdfdea9ed686)
2002-10-17Added new error codes. Fix up connection code to retry in the same wayJeremy Allison1-1/+1
that app-head does. Jeremy. (This used to be commit b521abd86b10573ca8f9116907c81e6deb55f049)
2002-10-05Update popt help message and use popt-commonJelmer Vernooij1-12/+7
(This used to be commit 821b27037b991e143b87f0f1c7186c9a403376f0)
2002-10-04merge of working dsrolegetprimdominfo() client code from APP_HEADGerald Carter3-8/+61
(This used to be commit f70caa25e4ee198151b915cf2bc0a26b2d0e243d)
2002-10-04merge of new client side support the Win2k LSARPC UUID in rpcbindGerald Carter11-91/+99
from APP_HEAD (This used to be commit 38c9e4299845fd77cc8629945ce2d259489f7437)
2002-09-05The new popt_common_debug code obviates the need to muck around withTim Potter1-10/+2
AllowDebugChange, saving the debuglevel across lp_load() calls etc. (This used to be commit 561204905b78323fd0a03cc7ec5c9dbb2295bd5b)
2002-09-04remove inet_aton()Gerald Carter1-1/+1
(This used to be commit a7616b2b942eaf3be4e16fb9d38cdb42d8b95a94)