summaryrefslogtreecommitdiffstats
path: root/source/rpcclient
Commit message (Collapse)AuthorAgeFilesLines
...
* more updates. several spoolss commands added as placeholdersGerald Carter2001-03-154-15/+102
| | | | to be filled in one at a time.
* set of changes in the beginning of bringing rpcclient changesGerald Carter2001-03-144-269/+294
| | | | | | | | | | | | | | | | | back to working order. The main change is that the cli_*() RPC functions from libsmb/*.c now should accept a struct cli_state*. The reason for this is that rpcclient should establish the connection to the server at startup so that it is not necessary to keep the clear test or password hash in memory for each command. enumports and enumprinters now works as well. lsa* functions have been tested. SAMR calls may or may not work (one of the core dumps I know), but it compiles :-) jerry
* move charset_initialize() up in the food chain so that lp_load_servicesGerald Carter2001-03-131-1/+2
| | | | and stuff will work....
* Merge of new 2.2 code into HEAD (Gerald I hate you :-) :-). Allows new SAMRJeremy Allison2001-03-111-3/+0
| | | | | | RPC code to merge with new passdb code. Currently rpcclient doesn't compile. I'm working on it... Jeremy.
* rpcclient functions for remaining samr and lsa functions. All functionsTim Potter2001-01-153-25/+458
| | | | | now pass through insure except for some of the dodgy spoolss prs weirdness.
* Pass correctly formatted args to cli_spoolss_open_printer_ex()Tim Potter2001-01-121-2/+7
|
* Memory leak fixes and uninitialised variables spotted by insure.Tim Potter2001-01-121-16/+18
|
* Memory leak fixes spotted by insure.Tim Potter2001-01-122-1/+14
|
* Use MAXIMUM_ALLOWED_ACCESS when doing a cli_spoolss_open_printer_ex()Tim Potter2001-01-121-1/+1
|
* Start of a rewrite of rpcclient based on the libsmb rpc client routines.Tim Potter2001-01-114-1598/+954
| | | | | Currently there are a small selection of lsa, samr and spoolss functions implemented. More to follow...
* Port of lsa_lookup_sids() and lsa_lookup_names() rpc client functions fromTim Potter2000-12-082-146/+177
| | | | | | | | | TNG branch. Re-instated lsa_lookup_sids and lsa_lookup_names functions in rpcclient. This requires most samba binaries to link in another handful of object files due to uncessary coupling between modules. )-:
* Modified argc passed to rpc_client cmd_* functions to include argv[0].Tim Potter2000-12-081-12/+12
| | | | | Gerald, could you check to see I haven't introduced any bugs into rpcclient/cmd_spoolss.c?
* spoolgetprinterdriver now returns "Windows NT x86" and "Windows 4.0"Gerald Carter2000-09-121-1/+9
| | | | | | | | | | driver information. Will merge into TNG. jerry
* added -P (for no prompt) and -A <authfile> optionsGerald Carter2000-08-291-11/+10
| | | | jerry
* fixed an off by one error where I was tromping on memoryGerald Carter2000-08-181-1/+1
| | | | | | | | when initializing a driver_info_3 struct. See spoolss_addprinterdriver() jerry
* FIxed some unmarshalling problems with relstr and unistr arraysGerald Carter2000-08-121-2/+5
| | | | jerry
* Tidied up security rights definitions.Jeremy Allison2000-08-101-4/+4
| | | | Jeremy.
* Working on spoolss_getprinterdriver() as it does not display all theGerald Carter2000-08-102-6/+21
| | | | | | | | dependentfiles. jery
* Needed to add the SHARED attribute bit when creating a printerGerald Carter2000-08-101-7/+9
| | | | | | | | | | | | on a Samba host. Also needed to add an option to pass the share name (printer name) on the command line. And fixed the checking of the return code for spoolss_r_addprinterex() jerry
* More work on AddPrinterDriver() and AddPrinterEx() client RPC'sGerald Carter2000-08-091-44/+40
| | | | | | | | Also fixed init_unistr() to deal with a NULL source character string. -jerry
* Fixed AddPrinterDriver()Gerald Carter2000-08-091-1/+0
| | | | jerry
* All changes related to rpcclient...Gerald Carter2000-08-081-4/+235
| | | | | | | | | | | | | - cleaned up some code - Fixed a few memory leaks of my own making - Add AddPrinterDriver(); I'm missing some of the semantics here as the call is done correctly, but I'm not getting all the information right in the DRIVER_INFO_3 struct I think. Will work on it tomorrow some more... --jerry
* spoolss_addprinterex() was adding the printer and returning theGerald Carter2000-08-041-3/+3
| | | | | | | | | correct handle, but was deleting the connection to the server. Doh!! --jerry
* clunky support for calling AddPrinterEx(). The code currently reportsGerald Carter2000-08-041-8/+10
| | | | | | | | | | | that the call failed, but the printer shows up on the remote NT client. (note this is the client side call). I've botched the return value somewhere and will fix that today. jerry
* Tidyup removing many of the 0xC0000000 | NT_STATUS_XXX stuff (only need ↵Jeremy Allison2000-08-012-5/+5
| | | | | | | | NT_STATUS_XXX). Removed IS_BITS_xxx macros as they were just reproducing "C" syntax in a more obscure way. Jeremy.
* More work on rpcclient...Gerald Carter2000-07-313-25/+121
| | | | | | | | | | | | * Fixed to work with Jeremy's recent changes re: dunamic memory allocation when unmarshalling unistr[2] * included EnumPorts level 1 * more work on AddPrinterEx --jerry
* Found out that we are crashing spoolss in enumprinterdata.Jean-François Micouleau2000-07-261-2/+2
| | | | | | | | | So fixed enumprinterdatas in rpcclient to debug the server code, and found that the parsing code was missing 2 prs_align(). We are not crashing NT anymore. :-) J.F.
* some initial code for AddPrinterEx() project. Most is ifdef'd outGerald Carter2000-07-252-1/+119
| | | | | | | 'cause it's not all written. -jerry
* A rather big change set ! (listed in no particular order)Jean-François Micouleau2000-07-251-1/+1
| | | | | | | | | | | | | | | | | | | | | - changed the default forms flag to 2 - all short architecture name are uppercased - get_short_archi() is now case unsensitive - the drivers TDB is indexed by archi/version/name - implemented code to move drivers from the upload area to the download area. Someone else need to look at that code. - don't return anymore a default driver if it doesn't exist in the TDB. Instead return an error. - cleaned prs_unistr. - #ifdef out jeremy's new SD parsing in printer_info_2 - removed the unused MANGLE_CODE - #ifdef out the security checking in update_printer() as it doesn't work for me. Zap your ntdrivers.tdb, it won't work anymore. J.F.
* Added EnumPorts() and fixed up some problemsGerald Carter2000-07-213-0/+96
| | | | | | | | | | with the other spoolss client calls. Also cleaned up output for 'help' command. jerry
* Fixed unitilized secdesc pointer which was causing spoolgetprinterGerald Carter2000-07-201-2/+2
| | | | | | | | | rpcclient command to fail on shared printers. jerry
* Fixed some more SPOOLSS functions. The followingGerald Carter2000-07-181-5/+4
| | | | | | | | | | | | | | | | | | | functions work now: - spoolenum - spoolopen - spoolgetprinter - spoolgetprinterdriver Items todo: - track down memory bug with spoolenumdata - fix spoolgetprinterdriverdir - fix spoolgetdata - fix display_job_info_ctr in spooljobs --jerry
* adding more spoolss command into rpcclient. They don't all workGerald Carter2000-07-142-2/+368
| | | | | | | currently. More to come later. --jerry
* More rpcclient merge issues:Gerald Carter2000-07-075-1/+1222
| | | | | | | | | | | | * fixes some readline bugs from the merge * first attempt at commands (spoolenum almost works) * no changes to existing functions in HEAD; only additions of new functions. I'll weed out what I can as I go. --jerry
* first pass at merging rpcclient from TNG to HEAD. You can get aGerald Carter2000-07-031-745/+16
| | | | | | | semi-connection and a rpcclient prompt, but no functionality there yet. Will be a few more days on that. --jerry
* just enough to get rpcclient to compile. Look for #if 0Gerald Carter2000-06-234-3/+13
| | | | | | | | blocks around a few unimplemented functions. Also had to add cli_reg.c to Makefile.in --jerry
* Linux kernel oplocks now seem to work, but need a _lot_ of testingAndrew Tridgell2000-06-111-1/+1
| | | | | I had to modify sys_select() to not loop on EINTR. I added a wrapper called sys_select_intr() which gives the old behaviour.
* moved secrets fns into secrets.cAndrew Tridgell2000-06-031-2/+2
|
* Added the NETDFS pipe to allow remote administration of the msdfs symlinksShirish Kalele2000-05-181-1/+1
| | | | on the samba server.
* the beginnings of a new scheme I've working on to allow an easierAndrew Tridgell2000-05-091-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | head/tng merge. It goes something like this: - headers from tng get copied over one at a time - the old headers get renamed to *_old.h - server side code that used the old headers gets a #define OLD_NTDOMAIN 1 #undef OLD_NTDOMAIN at the start and end of the code - mkproto.awk recognises these special defines and does magic stuff so that each .c file sees the right headers - we start moving the rpc client libraries from tng to head. if this goes OK then, in theory, we should be able to move the client side rpc code from tng to head without disturbing the existing head server side code. Then when that works we can consider merging the server side. it remains to be seen if this scheme will work. So far I've moved rpc_samr.h and don't seem to have broken anything. Note this this is still a very delicate operation, as at every step of the way I want to keep head fully functional. Please don't take part unless you discuss it with me first.
* added secrets.tdb and changed storage of trust account password to useAndrew Tridgell2000-05-081-2/+4
| | | | it
* moved trans2.h and nterr.h into includes.h with all our other includesAndrew Tridgell2000-04-256-6/+0
|
* indent update to make t easier to see setuid mods in TNG. someLuke Leighton2000-03-211-0/+2
| | | | code from these modules i had to leave out (nothing to do withj setuid)
* After 3AM, it's getting hard for Luke :-)Jean-François Micouleau2000-02-041-5/+4
|
* 1) added void* state argument to tdb_traverse. guess what! there wereLuke Leighton2000-02-041-0/+4
| | | | | | | | | | | | | | | | | | two places i found where it was appropriate to _use_ that third argument, in locking.c and brlock.c! there was a static traverse_function and i removed the static variable, typecast it to a void*, passed it to tdb_traverse and re-cast it back to the traverse_function inside the tdb_traverse function. this makes the use of tdb_traverse() reentrant, which is never going to happen, i know, i just don't like to see statics lying about when there's no need for them. as i had to do in samba-tng, all uses of tdb_traverse modified to take the new void* state argument. 2) disabled rpcclient: referring people to use SAMBA_TNG rpcclient. i don't know how the other samba team members would react if i deleted rpcclient from cvs main. damn, that code's so old, it's unreal. 20 rpcclient commands, instead of about 70 in SAMBA_TNG.
* use GET_DENY_MODE() macro instead of the bit shiftAndrew Tridgell2000-01-161-3/+2
|
* a consequence of the access_table() fixes is that we can't treatAndrew Tridgell2000-01-161-0/+2
| | | | | DENY_DOS and DENY_FCB as the same thing anymore (the difference matters for *.exe files)
* this looks like a big commit, but it isn't really :)Andrew Tridgell2000-01-071-4/+5
| | | | | | | | This fixes our netbios scope handling. We now have a 'netbios scope' option in smb.conf and the scope option is removed from make_nmb_name() this was prompted by a bug in our PDC finding code where it didn't append the scope to the query of the '*' name.
* got rid of mem_manAndrew Tridgell2000-01-031-8/+0
| | | | | | | yamd is much better, and doesn't require any source code changes if you haven't seen yamd then take a look at http://www3.hmc.edu/~neldredge/yamd/ its excellent!
* more files from 2.0.6Andrew Tridgell1999-12-171-0/+1324
|