summaryrefslogtreecommitdiffstats
path: root/source/rpc_parse
Commit message (Collapse)AuthorAgeFilesLines
* * the printing code should now be back to the working state it wasGerald Carter2002-08-171-1/+1
| | | | | | | | | | before the swap from NT_PRINTER_PARAM to REGISTRY_VALUE. * XxxPrinterDataEx() functions have not been expanded to support keys other than SPOOL_PRINTERDATA_KEY yet * fixed apparent long standing bug regarding the dependentfiles list in the DRIVER_INFO struct
* Fairly large change to printing code.Gerald Carter2002-08-161-36/+0
| | | | | | | | | | | | | | | | | | | * removed support for PHANTOM_DEVMODE printer data * s/NT_PRINTER_PARAM/REGISTRY_VALUE/g - This was a good bit of work. Everything seems stable, but is not complete. * support for printer data keys other than PrinterDriverData in the store and fetch routines. Still needs to be plugged into the XxxPrinterDataEx() calls. Tested against NT4.0 & 2k. Like I said, it's not done, but doesn't crash so it shouldn't upset anyone (unless you're trying to build a Samba printer server off of HEAD). More work to come. Should settle by Monday. jerry
* Rename unknown_0 field in create_user2 reply in the actual struct.Tim Potter2002-08-151-1/+1
|
* The unknown_0 field in a CREATE_USER2 reply is the access granted.Tim Potter2002-08-151-1/+1
|
* added comment about a new specversion seen from client.Gerald Carter2002-08-141-0/+2
| | | | | | | | | Device mode size is still the same though. jerry
* Add lsa 0x2e (queryinfo2) client sideJim McDonough2002-08-121-0/+13
|
* Add client side support for samr connect4 (0x3e). Seems to have oneJim McDonough2002-08-121-0/+22
| | | | | additional parm compared to samr connect, but I've only seen 0x00000002 in that field...
* printing change notification merge from APPLIANCE_HEADGerald Carter2002-08-081-2/+17
|
* Merge of incomplete rffpcnex testing code from APPLIANCE_HEAD.Tim Potter2002-08-081-0/+28
|
* Add SAMR 0x3e, which is samr_connect4. Seems to be the same as ourJim McDonough2002-08-061-2/+60
| | | | | existing connect (which I've been told is really connect2), with one extra dword. We've only seen 0x00000002 there...
* Spelling fix.Tim Potter2002-08-051-1/+1
|
* Winbind updates!Andrew Bartlett2002-07-311-1/+1
| | | | | | | | | | | | | | | | This updates the 'winbind' authentication module and winbind's 'PAM' (actually netlogon) code to allow smbd to cache connections to the DC. This is particulary relevent when we need mutex locks already - there is no parallelism to be gained anyway. The winbind code authenticates the user, and if successful, passes back the 'info3' struct describing the user. smbd then interprets that in exactly the same way as an 'ntdomain' logon. Also, add parinoia to winbind about null termination. Andrew Bartlett
* Add LSA RPC 0x2E, lsa_query_info2. Only level implemented is 0x0c, whichJim McDonough2002-07-301-2/+108
| | | | | is netbios and dns domain info. Also add code to set/fetch the domain GUID from secrets.tdb (although set is not yet called by anyone).
* add another registry rpc (opnum 0x14). Have no idea what it's real nameGerald Carter2002-07-291-4/+56
| | | | | | | is. I'm calling it REG_SAVE_KEY, because 2k preps a regedt32.exe Registry->Save Key with this call. Done in the process of tracking down a PrinterDriverData issue.
* passing -1 for the src length in rpcstr_pull results in onlyGerald Carter2002-07-291-1/+1
| | | | | converting the first character of the unicode string., See convert_string() for why. uniarray_2_dosarray() passes 0 for the src length now which works.
* A very long time ago (actually 6 months ago) I promised to commit this codeAndrew Bartlett2002-07-271-66/+634
| | | | | | | | | | | | | | | to the Samba tree. Originally written by Nigel Williams" <nigel@veritas.com>, I've been trying to keep it in some form of shape for the last 6 months. In particular I think some of the code got committed a few months ago, and others have made changes to the CVS version over time. anyway, its finally in - and doesn't appear to have broken anything. Now to try the client-side patches :-) Andrew Bartlett
* 3 things:Gerald Carter2002-07-261-1/+7
| | | | | | | | | | * normalize all registry key strings before storing or looking up paths in the registry tdb * return the current buffer size for REG_INFO even when not returning actual data * fix a segfault report by metze on #samba-technical so that the user/group object picker works again (was the "ProductType" key lookup that was failing).
* several changes in this checkinGerald Carter2002-07-241-21/+153
| | | | | | | | | | | | | | | | | | | * added REG_OPEN_HKCR for supporting regedit.exe * All data n a REGISTRY_VALUE is stored to a pointer now * fixed REG_INFO to correctly display data when double clicking on and entry in the registry editor * Will now enumerate installed driver_info_3 data * fixed numerous bugs related to pointer offsets, memory issues, etc.. in the registry routines * added a simple caching mechanism to fetch_reg_[keys|values]_specific() All that is left now is to enumerate PrinterData and I will have finished what I started out to do....
* * changed structure of REG_R_ENUM_VALUE structure since the BUFFER2Gerald Carter2002-07-232-4/+39
| | | | | | | | is not and [in/out] buffer * registry value enumeration is working now for the Print\Forms key. The format of the binary data is not quite right yet but all installed forms are listed
* Name get and set dir drive functions consistently.Tim Potter2002-07-211-1/+1
|
* Try to fix up warnings - particularly on the IRIX 64 bit compiler (which had aAndrew Bartlett2002-07-201-1/+2
| | | | | | | | distinction between uchar and char). Lots of const etc. Andrew Bartlett
* fixed a number of real bugs found by warnings on the 64 bit irix compilerAndrew Tridgell2002-07-151-2/+2
|
* The changes in make_sec_desc to make us match W2K broke the ↵Jeremy Allison2002-07-121-19/+24
| | | | | | | | | marshalling/unmarshalling of security descriptors. We need to calculate the maximum offset and set the offset back after reading/writing every field in the SEC_DESC. This was *nasty* to find.... Jeremy.
* all that is left to do is to actually perform theGerald Carter2002-07-111-0/+4
| | | | | file deletion now. I have the file list. One more commit should do it.
* 8-byte alignment needed for beginning driver_info_level_6.Gerald Carter2002-07-092-22/+36
| | | | | Verified by looking at NT4 and 2k servers. First time for everything I guess.
* fixup ADDPRINTERDRIVEREX some more. unknown uint32 for now.Gerald Carter2002-07-081-21/+24
|
* added parsing routines for SPOOLSS_ADDPRINTERDRIVEREX andGerald Carter2002-07-081-0/+101
| | | | | SPOOLSS_DELETEPRINTERDRIVEREX. Ran them through some testing. I know I'm off by 2 x uint32's in the former RPC.
* * basic implementation of SPOOLSS_DELETEPRINTERDATAEX andGerald Carter2002-07-081-0/+80
| | | | | | SPOOLSS_DELETEPRINTERKEY * stub funnctions for SPOOLSS_ADDPRINTERDRIVEREX and SPOOLSS_DELETEPRINTERDRIVEREX
* fixed the geyed out registry keys. Stupid typo on my part.Gerald Carter2002-07-041-3/+3
| | | | | | Now on to plug in the printing tdbs to the registry view.... jerry
* More code from "Kai Krueger" <kai@kruegernetz.de>, this time starting to makeAndrew Bartlett2002-07-041-0/+52
| | | | | | | the 'user cannot change password' button work. Needs help from a future SAM backend, but at least this parses the data, and returns an error. Andrew Bartlett
* first cut at implementing support for browsing printer and driver driverGerald Carter2002-07-031-17/+40
| | | | | | | | | | | | | | | | | | | | | | | via regedt32.exe. The regsitry.tdb is only a framework. It is not intended to store values, only key/subkey structure. The data will be retrieved from nt*tdb (for printers) creating a virtual view of the data. You can currently connect to a Samba box using regedt32.exe (haven't tried regedit.exe). Some basic keys are created in registry.tdb for use. There are two problems.... * something is getting freed in the winreg code that causes heap corruption later on. As long as you don't play with the winreg server functionality, I don't think you'll be bitten by this. * no access controls are currently implemented * I can't browse HKLM because regedt32 greys out the SYSTEM subkey. ok so that was three....
* Break up the passdb objects (to allow RPC clients to link without brining inAndrew Bartlett2002-07-031-11/+80
| | | | | | | | | | | | | | | | | *.o) and implment new enum_dom_users code in the SAMR RPC subsystem. Incresingly, we are using the pdb_get_{user,group}_sid() functions, in the eventual hope that we might one day support muliple domains off a single passdb. To extract the RID, we use sid_peek_check_rid(), and supply an 'expected' domain SID. The id21 -> SAM_ACCOUNT and id23 -> SAM_ACCOUNT code has been moved to srv_samr_util.c, to ease linking in passdb users. Compatiblity code that uses 'get_global_sam_sid()' for the 'expected' sid is in pdb_compat.c Andrew Bartlett
* fixed our winreg parsing to handle a diifferent form given to us byAndrew Tridgell2002-07-021-6/+8
| | | | WinXP. This fixes setting security decsriptors from XP Professional.
* Merge of constant renames from APPLIANCE_HEAD.Tim Potter2002-07-021-8/+8
|
* used findstatic.pl to make some variables static and remove some deadAndrew Tridgell2002-07-011-6/+6
| | | | code
* Proper merge of all the working printing stuff from APPLIANCE_HEAD.Jeremy Allison2002-06-281-37/+110
| | | | | Now let's keep this in sync ! Jeremy.
* a null grp_sid should have a 0 offset. Also removed a few more unnecessaryGerald Carter2002-06-272-17/+6
| | | | prs_align() for sec_desc.
* merge from APP_HEADGerald Carter2002-06-262-16/+9
|
* Typo...Jeremy Allison2002-06-261-1/+1
| | | | Jeremy.
* Added prs_align_uint16 for SD aligns.Jeremy Allison2002-06-261-0/+11
| | | | Jeremy.
* sync with the sec_desc parsing fix from APP_HEAD. I will probably needGerald Carter2002-06-241-16/+11
| | | | to revisit this some.
* printing merge from SAMBA_2_2. Ther server code looks to be in sync now.Gerald Carter2002-06-241-0/+2
| | | | | | | | Mostly formatting and s/free/SAFE_FREE/g changes with the two exceptions being * John driver init changes * Tim's printer enumeration bug fix
* more debug classess activatedSimo Sorce2002-06-1812-0/+36
|
* Add a touch of const to this - helps with some yet-to-be-commited changesAndrew Bartlett2002-06-141-3/+3
|
* Merge of Jerry's fix from 2.2.Jeremy Allison2002-06-101-5/+8
| | | | Jeremy.
* Add user name to netsessenum RPC to stop 1783 messages. Also fix where ↵Jim McDonough2002-06-031-5/+13
| | | | username was sent as machine name.
* Fixed bogus alignment in unmarshalling of SAMR_GET_DOM_PWINFO reply.Tim Potter2002-06-031-4/+0
|
* Add rpc for file close, expand file enum to take usernameJim McDonough2002-06-011-4/+67
|
* Add fns for netshareadd and netsharedel rpcsJim McDonough2002-05-311-4/+46
|
* Update netfileenum on both client and server sides to do an arbitrary numberJim McDonough2002-05-311-65/+43
| | | | | of files. This was done to better enable net rpc file. Perhaps we can start giving back real info this way, too.