summaryrefslogtreecommitdiffstats
path: root/source/registry
Commit message (Collapse)AuthorAgeFilesLines
* Add the correct file :-( to ignore .po and .po32 files.Martin Pool2003-03-191-0/+2
|
* Remove this .po file from the repository. I meant to add a cvsignoreMartin Pool2003-03-191-0/+0
| | | | file that ignored it, but I slipped.
* Ignore .po and .po32 files.Martin Pool2003-03-191-0/+0
|
* More const fixes.Jeremy Allison2003-03-051-1/+1
| | | | Jeremy.
* Progress on CR 601Gerald Carter2003-02-251-4/+3
| | | | | | | | | cache the printer_info_2 with the open printer handle. cache is invalidated on a mod_a_printer() call **on that smbd**. Yes, this means that the window for admins to step on each other from different clients just got larger, but since handles a generally short lived this is probably ok.
* reverted this patch till I sort out the craziness with UNIHDRAndrew Tridgell2003-01-171-16/+16
|
* This removes the 3rd argument from init_unistr2(). There were 240Andrew Tridgell2003-01-171-16/+16
| | | | | | | | | | | | | | 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.
* BIG patch...Andrew Bartlett2003-01-022-3/+3
| | | | | | | | | | | | | | | | 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
* Forward port the change to talloc_init() to make all talloc contextsJeremy Allison2002-12-201-2/+2
| | | | | named. Ensure we can query them. Jeremy.
* Add some constJim McDonough2002-12-051-3/+3
|
* Don't segfault when trying to delete a key when none exist.Jim McDonough2002-12-031-0/+2
|
* fix up print portion of registry. Merge from APP_HEAD.Gerald Carter2002-08-301-23/+46
|
* break out REGISTRY_VALUE & REGVAL_CR objects into separate file forGerald Carter2002-08-302-347/+372
| | | | cleaning linking....
* fix registry editor API for printing backend after I changedGerald Carter2002-08-222-38/+68
| | | | the NT_PRINTER_PARAM to a REGISTRY_VALUE
* Fix compile warnings.Tim Potter2002-08-221-4/+0
|
* fix GetPrinterDataEx() to work with registry subkeys using a depth > 1Gerald Carter2002-08-181-1/+1
|
* fix to allow EnumPrinterKey() to enumerate multiple levels of subkeys.Gerald Carter2002-08-181-2/+1
| | | | Works on the top level. Needs more testing for levels > 1.
* Fairly large change to printing code.Gerald Carter2002-08-162-4/+93
| | | | | | | | | | | | | | | | | | | * 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
* Merge of case fixes from APPLIANCE_HEAD.Tim Potter2002-08-111-5/+5
|
* Back out idra's change (at his request) - the values in the tdb *should* beAndrew Bartlett2002-08-061-1/+1
| | | | | | | | | | upper cased already. However, if you created your registry tdb in the very early versions of jerry's patch, you could find that usrmgr doesn't function. Simply delete the registry.tdb, it will be recreated on startup. Andrew Bartlett
* commented out strupper before key check against internal db, it's no goodSimo Sorce2002-08-041-1/+1
| | | | | | | | | | | | to check for uppercased strings when we store them not uppercased. jerry, this fix is needed to make usrmgr.exe work again. meanwhile we found out that NT_STATUS code may not be appropriate there. In particular it seem that an NT PDC will send back 02 as error (ERRbadfile) not 0xc000000f (NT_STATUS_NO_SUCH_FILE NT) I think further investigation is need to understand which are aprropriate return codes here.
* hardcode printprocessor name since it is everywhere elseGerald Carter2002-07-291-1/+1
|
* 3 things:Gerald Carter2002-07-261-1/+5
| | | | | | | | | | * 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).
* * fix return code so we don't let a client just open any key it wantsGerald Carter2002-07-241-2/+2
| | | | | | (even nonexistent ones). This gets rid of the Scheduling Agent icon. * fix NT_STATUS return code for bad registry path (NT_STATUS_NO_SUCH_FILE)
* done! printer_info_2, devicemode, sec_desc, & printer data all enumerateGerald Carter2002-07-242-23/+188
| | | | | | | | | and display correctly in regedit.exe. Not sure about REG_SZ values in PrinterDriverData. If we store these in UNICODE, I'll have to fix up a few things. REG_BINARY & REG_DWORD are fine.
* several changes in this checkinGerald Carter2002-07-243-59/+346
| | | | | | | | | | | | | | | | | | | * 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....
* * fix to display correct form information in REG_BINARY informationGerald Carter2002-07-231-17/+19
| | | | | | This should be 8 x uint32 (not 7. I'm guessing the 2nd to the last uint32 is the index number for the form? Not that big a deal I don't think.
* * changed structure of REG_R_ENUM_VALUE structure since the BUFFER2Gerald Carter2002-07-231-145/+260
| | | | | | | | 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
* fix seg fault due to memory allocation goof.Gerald Carter2002-07-221-0/+8
|
* another intermediate checkin on the way to enumerating formsGerald Carter2002-07-202-23/+116
| | | | | | via the registry. There is a seg fault here which shouldn't bother anyone until I can get it fixed. I just need a check point in case I need to roll back to this version later on.
* enumeration of printers keys ( no data yet ) via the registryGerald Carter2002-07-204-28/+59
| | | | functions now works :-)
* fixed a logic error in the sorted_tree_find_child() routineGerald Carter2002-07-202-1/+6
| | | | | that caused a valid search to fail. The printing registry view now works again.
* fixed seg fault in registry frontend caused by trying toGerald Carter2002-07-193-12/+21
| | | | use a destroyed TALLOC_CTX*
* Fixed a compiler warning.Tim Potter2002-07-191-3/+3
|
* * refactored registry operations some. subkey lists andGerald Carter2002-07-194-170/+385
| | | | | | | | | | | | | | | | | | registry values are now passed around in containers (REGSUBKEY_CTR & REGVAL_CTR) which each possess a TALLOC_CTX. * removed subkey_specific_fn() from REGISTRY_OPS. Is implemented in the form of a wrapper * temporarily broke the printing registry ops. * implemented inheritence for the data_p of nodes in a SORTED_TREE * All REGISTRY_KEY instances now store a valid REGISTRY_HOOK since the default REGOSTRY_OPS structure is stored in the root of the cache_tree. * Probably some other change I forgot.... T
* Formatting fixup. Fix shadow warning.Jeremy Allison2002-07-191-6/+6
| | | | Jeremy.
* virtual registry framework with initial printing hooks.Gerald Carter2002-07-184-254/+709
|
* splitting off storage/retrieval routines for abstracting theGerald Carter2002-07-151-0/+334
registry view front end. Now to plug in the various hooks.