summaryrefslogtreecommitdiffstats
path: root/source/include/rpc_reg.h
Commit message (Collapse)AuthorAgeFilesLines
* BIG patch...Andrew Bartlett2003-01-021-1/+1
| | | | | | | | | | | | | | | | 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-5/+2
| | | | | | | | 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
* add another registry rpc (opnum 0x14). Have no idea what it's real nameGerald Carter2002-07-291-1/+24
| | | | | | | 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.
* done! printer_info_2, devicemode, sec_desc, & printer data all enumerateGerald Carter2002-07-241-13/+5
| | | | | | | | | 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-241-4/+9
| | | | | | | | | | | | | | | | | | | * 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-231-2/+4
| | | | | | | | 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
* * refactored registry operations some. subkey lists andGerald Carter2002-07-191-9/+24
| | | | | | | | | | | | | | | | | | 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
* Prevent gcc warning about shadowed global "index".Jeremy Allison2002-07-181-1/+1
| | | | Jeremy
* virtual registry framework with initial printing hooks.Gerald Carter2002-07-181-3/+40
|
* splitting off storage/retrieval routines for abstracting theGerald Carter2002-07-151-0/+16
| | | | registry view front end. Now to plug in the various hooks.
* first cut at implementing support for browsing printer and driver driverGerald Carter2002-07-031-20/+25
| | | | | | | | | | | | | | | | | | | | | | | 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....
* Removed version number from file header.Tim Potter2002-01-301-2/+1
| | | | Changed "SMB/Netbios" to "SMB/CIFS" in file header.
* Add 'net rpc shutdown' and 'net rpc abortshutdown'.Andrew Bartlett2001-12-311-0/+4
| | | | | | | | These two little features are very useful, but the passing of options about needs some serious work. The popt stuff in the shutdown code is #ifdef'ed out until the main popt loop can be convinced not to chew on the options :-( Andrew Bartlett
* Added some constants for registry data types.Tim Potter2001-12-171-4/+14
|
* merge from 2.2Gerald Carter2001-11-221-0/+5
|
* converted another bunch of stuff to NTSTATUSAndrew Tridgell2001-08-271-19/+19
|
* - avoid possible mem leaks in rpcclient/cmd_*.c (talloc_destroy not performed)Simo Sorce2001-08-101-53/+121
| | | | | | | - ported two rpc back from TNG (WINREG: shutdown and abort shutdown) - some optimizations and changed some DEBUG statement in loadparm.c - changed rpcclient a bit moved from non reentrant next_token_nr to next_token - in cmd_reg.c not sure if getopt will work ok on all platforms only setting optind=0
* Added Shirish's reg changes to HEAD. Sync up with 2.2.0 backport.Jeremy Allison2000-05-151-24/+24
| | | | | Also added prs_xx error return checks to new code in rpc_parse/parse_reg.c Jeremy.
* first pass at updating head branch to be to be the same as the SAMBA_2_0 branchAndrew Tridgell1999-12-131-67/+28
|
* rewrote policy handle code to be generic (it's needed for client-side too)Luke Leighton1999-11-241-2/+0
| | | | attempted to fix regsetsec command
* updating reg_value_info() parsing code to take BUFFER2 instead of justLuke Leighton1999-11-181-2/+2
| | | | a char*. now copes with multiple types.
* added regqueryval command (experimental) to get reg_io_q_info() andLuke Leighton1999-11-181-20/+18
| | | | | | | | reg_io_r_info() working properly. previously they weren't well understood (well, they were the first of the registry functions i did, back in december 97, ok??? :-) set ntversion to 0x1 in SAMQUERY, so that we reply same as NT4 srv.
* added HKEY_CLASSES_ROOT MSRPC open call. reg_open_hkcr etc. supportedLuke Leighton1999-10-291-5/+27
| | | | in rpcclient, regenum HKEY_CLASSES_ROOT or regenum HKCR to test.
* rpcclient shutdown commandLuke Leighton1999-02-161-0/+21
|
* security descriptorsLuke Leighton1998-11-131-14/+6
|
* security descriptors.Luke Leighton1998-11-121-5/+5
| | | | kanji const char* warnings.
* security descriptors and registry.Luke Leighton1998-11-121-1/+1
|
* security descriptor info, provided by jean-francoisLuke Leighton1998-11-111-0/+22
|
* changed syntax of registry commands so keys can start with HKLM or HKU.Luke Leighton1998-11-111-0/+2
| | | | sorted lookupsids command
* registry delete value command: "regdeleteval".Luke Leighton1998-11-111-1/+20
| | | | this is just so unbelievably simple to do...
* renamed unk_1b to flush_keyLuke Leighton1998-11-111-7/+7
|
* - renamed open_policy to open_hklm.Luke Leighton1998-11-111-14/+21
| | | | | | - renamed open_unk_4 to open_hku - fixed createkey issue spotted by phil cox
* rpcclient registry key delete command: "regdeletekey".Luke Leighton1998-11-101-0/+21
|
* registry modification requires a "sync" or "refresh" on the parent key.Luke Leighton1998-11-101-0/+16
| | | | opcode 0xb added to do this. a likely candidate name is "RegFlushKey".
* rpcclient registry commands.Luke Leighton1998-11-101-11/+257
|
* "For I have laboured mightily on Luke's code, and hath brokenJeremy Allison1998-03-111-0/+141
all I saw" - the book of Jeremy, chapter 1 :-). So here is the mega-merge of the NTDOM branch server code. It doesn't include the new client side pieces, we'll look at that later. This should give the same functionality, server wise, as the NTDOM branch does, only merged into the main branch. Any fixes to domain controler functionality should be added to the main branch, not the NTDOM branch. This code compiles without warnings on gcc2.8, but will need further testing before we are sure all the working functionality of the NTDOM server branch has been correctly carried over. I hereby declare the server side of the NTDOM branch dead (and all who sail in her :-). Jeremy.