summaryrefslogtreecommitdiffstats
path: root/source/rpc_server/srv_reg_nt.c
Commit message (Collapse)AuthorAgeFilesLines
* r18789: Replace the winreg server code with the libndr parsing code.Gerald Carter2007-10-101-1352/+0
| | | | | | | Many things work (OpenHKLM, etc...) but some still don't. This shouldn't block anyone so I'm checking it in. Will probably move to a bzr tree after this for longer dev cycles between checkins.
* r18404: * swap from POLICY_HND to the struct policy_handle from ndr/misc.hGerald Carter2007-10-101-3/+0
| | | | * move OUR_HANDLE macro to include/rpc_misc.h
* r15570: Fix Coverity bug # 286. I really wonder why gcc -O1 did not catch ↵Volker Lendecke2007-10-101-1/+1
| | | | | | this one. Volker
* r14226: Fix Coverity bug # 109Volker Lendecke2007-10-101-1/+3
|
* r12043: It's amazing the warnings you find when compiling on a 64-bitJeremy Allison2007-10-101-1/+1
| | | | | | | | | | | box with gcc4 and -O6... Fix a bunch of C99 dereferencing type-punned pointer will break strict-aliasing rules errors. Also added prs_int32 (not uint32...) as it's needed in one place. Find places where prs_uint32 was being used to marshall/unmarshall a time_t (a big no no on 64-bits). More warning fixes to come. Thanks to Volker for nudging me to compile like this. Jeremy.
* r11072: add routines for converting REG_MULTI_SZ to and from char**Gerald Carter2007-10-101-1/+13
|
* r11069: make sure to zero memory when allocating a a REGVAL_CTR structGerald Carter2007-10-101-1/+5
|
* r10819: merging a couple of fixes from trunkGerald Carter2007-10-101-3/+2
| | | | | | | * only keep the registry,tdb file open when we have an open key handle * tpot's setup.py fix * removing files that no longer exist in trunk and copying some that were missing in 3.0
* r10781: merging eventlog and svcctl code from trunkGerald Carter2007-10-101-2/+4
|
* r10656: BIG merge from trunk. Features not copied overGerald Carter2007-10-101-259/+177
| | | | | | | * \PIPE\unixinfo * winbindd's {group,alias}membership new functions * winbindd's lookupsids() functionality * swat (trunk changes to be reverted as per discussion with Deryck)
* r10585: variation of fix in trunk for root-free-pass in registry access checksGerald Carter2007-10-101-3/+2
|
* r10264: reverse order of 'root free pass' checks in service and registry ↵Gerald Carter2007-10-101-8/+7
| | | | access_checks()
* r10221: add "free pass for root" in svcctl and default winreg access checksGerald Carter2007-10-101-0/+8
|
* r9788: more compiler warnings from Jason MaderGerald Carter2007-10-101-2/+2
|
* r9780: Clean up a bunch of compiler warnings.James Peach2007-10-101-2/+0
|
* r9739: conver the reg_objects (REGSUBKEY_CTR & REGVAL_CTR) to useGerald Carter2007-10-101-73/+92
| | | | | | | | | | | | | | | | the new talloc() features: Note that the REGSUB_CTR and REGVAL_CTR objects *must* be talloc()'d since the methods use the object pointer as the talloc context for internal private data. There is no longer a regXXX_ctr_intit() and regXXX_ctr_destroy() pair of functions. Simply TALLOC_ZERO_P() and TALLOC_FREE() the object. Also had to convert the printer_info_2->NT_PRINTER_DATA field to be talloc()'d as well. This is just a stop on the road to cleaning up the printer memory management.
* r9114: removing gratuitous debug messagesGerald Carter2007-10-101-28/+1
|
* r8027: driver information is now back via winregGerald Carter2007-10-101-2/+6
|
* r7995: * privileges are local except when they're *not*Gerald Carter2007-10-101-12/+14
| | | | | | | | | | | | | | | | | | printmig.exe assumes that the LUID of the SeBackupPrivlege on the target server matches the LUID of the privilege on the local client. Even though an LUID is never guaranteed to be the same across reboots. How *awful*! My cat could write better code! (more on my cat later....) * Set the privelege LUID in the global PRIVS[] array * Rename RegCreateKey() to RegCreateKeyEx() to better match MSDN * Rename the unknown field in RegCreateKeyEx() to disposition (guess according to MSDN) * Add the capability to define REG_TDB_ONLY for using the reg_db.c functions and stress the RegXXX() rpc functions.
* r7987: map generic bits to specific bits in open requestsGerald Carter2007-10-101-3/+4
|
* r7938: * move the hardcoded registry value names from _reg_query_value()Gerald Carter2007-10-101-91/+1
| | | | | | | to a thin layer in fetch_reg_values(). Not entirely efficient seeing as the the dynamic value paths are stored in an unsorted array but it is one strequal() per path. If this was really big it should be worked into the reghook_cache().
* r7908: * change REGISTRY_HOOK api to use const (fix compiler warningGerald Carter2007-10-101-18/+14
| | | | | | | | | | | | | | | | | | | in init_registry_data() * Add means of storing registry values in registry.tdb * add builtin_registry_values[] array for REG_DWORD and REG_SZ values needed during startup * Finish up RegDeleteValue() and RegSetValue() * Finish up regdb_store_reg_values() and regdb_fetch_reg_values() I can now create and retrieve values using regedit.exe on Win2k. bin/net -S rain -U% rpc registry enumerate 'hklm\software\samba' Valuename = Version Type = REG_SZ Data = 3.0.20 Next is to do the virtual writes in reg_printing.c and I'll be done with Print Migrator (yeah! finally)
* r7890: * add Reg[SG]etKeySec() server stubsGerald Carter2007-10-101-12/+95
| | | | * merge a compile warning fix from trunk to SAMBA_3_0
* r7878: mostly just a rename of REG_INFO to REG_QUERY_VALUE for better clarityGerald Carter2007-10-101-7/+4
|
* r7698: * clean upserver frontend for RegDeleteKey()Gerald Carter2007-10-101-13/+63
| | | | * implement RegDeleteKey() for reg_db backend
* r7691: * add .gdbinit to the svn:ignore filesGerald Carter2007-10-101-33/+195
| | | | | | | | | * start adding write support to the Samba registry Flesh out the server implementations of RegCreateKey(), RegSetValue(), RegDeleteKey() and RegDeleteValue() I can create a new key using regedit.exe now but the 'New Key #1' key cannot be deleted yet.
* r7664: add access check hooks to _reg_open_entry which are passed offGerald Carter2007-10-101-6/+29
| | | | | | to the reg_XXX backend. If the backend does not define a regkey_access_check() function, we default to using the standard registry_access_check()
* r7649: * fix compile breakage (sorry, should have done a make clean before theGerald Carter2007-10-101-0/+17
| | | | | | last checking). * rename unknown field in REG_GETVERSION * add server stubs for RegDeleteKey() and RegDeleteValue()
* r7648: adding REGISTRY_HOOK->reg_access_check() for authprization checks on ↵Gerald Carter2007-10-101-18/+19
| | | | RegOpenKey(); passing it off to the backend code for a given path
* r7647: add access checks to the top level hive open calls; will need to pass ↵Gerald Carter2007-10-101-3/+89
| | | | the open request through the backend access check for the subkey open calls
* r7645: adding server stubs for RegCreateKey() and RegSetValue()Gerald Carter2007-10-101-0/+16
|
* r7547: removing unused fields in the REGISTRY_KEY structure associated with ↵Gerald Carter2007-10-101-8/+0
| | | | open handles
* r7440: * merge registry server changes from trunk (so far) for moreGerald Carter2007-10-101-4/+112
| | | | | | printmig.exe work * merge the sys_select_signal(char c) change from trunk in order to keeo the winbind code in sync
* r6942: * merging the registry changes back to the 3.0 treeGerald Carter2007-10-101-20/+217
| | | | * removing the testprns tool
* r6232: more cleanups; remove BUFFER3; rename BUFFER4 -> RPC_DATA_BLOB; ↵Gerald Carter2007-10-101-2/+8
| | | | rename REG_CREATE_VALE -> REG_SET_VALUE
* r6218: * fix a segv in EnumPrinters():rpc_buffer_alloc when the caller does ↵Gerald Carter2007-10-101-29/+53
| | | | | | | | not provide an RPC_BUFFER in the request * add initial (but wire untested) support for RegRestoreKey()
* r6014: rather large change set....Gerald Carter2007-10-101-46/+95
| | | | | | | | | | | | | | pulling back all recent rpc changes from trunk into 3.0. I've tested a compile and so don't think I've missed any files. But if so, just mail me and I'll clean backup in a couple of hours. Changes include \winreg, \eventlog, \svcctl, and general parse_misc.c updates. I am planning on bracketing the event code with an #ifdef ENABLE_EVENTLOG until I finish merging Marcin's changes (very soon).
* r5349: After talking with Jerry, reverted the addition of account policies toGünther Deschner2007-10-101-1/+1
| | | | | | passdb in 3_0 (they are still in trunk). Guenther
* r4925: Migrate Account Policies to passdb (esp. replicating ldapsam).Günther Deschner2007-10-101-1/+1
| | | | | | | | Does automated migration from account_policy.tdb v1 and v2 and offers a pdbedit-Migration interface. Jerry, please feel free to revert that if you have other plans. Guenther
* r4824: wrap the shutdown and abort_shutdown calls in check for the ↵Gerald Carter2007-10-101-1/+24
| | | | SE_REMOTE_SHUTDOWN privilege
* r4656: Convert the winreg pipe to use WERROR returns (as it should).Jeremy Allison2007-10-101-45/+45
| | | | | | Also fix return of NT_STATUS_NO_MORE_ENTRIES should be ERROR_NO_MORE_ITEMS reported by "Marcin Porwit" <mporwit@centeris.com>. Jeremy.
* r4651: Add "refuse machine password change" policy field. This update will justJim McDonough2007-10-101-1/+12
| | | | | | | return the appropriate reg value. Enforcement to be added soon. Also, fix account policy tdb upgrade so it doesn't just wipe out everything that was in there from a a previous version.
* r4088: Get medieval on our ass about malloc.... :-). Take control of all our ↵Jeremy Allison2007-10-101-2/+2
| | | | | | | | | allocation functions so we can funnel through some well known functions. Should help greatly with malloc checking. HEAD patch to follow. Jeremy.
* convert snprintf() calls using pstrings & fstringsGerald Carter2003-07-231-3/+3
| | | | | | to pstr_sprintf() and fstr_sprintf() to try to standardize. lots of snprintf() calls were using len-1; some were using len. At least this helps to be consistent.
* don't free() auto variables; fixes segfault when looking up ↵Gerald Carter2003-01-211-3/+5
| | | | RefusePasswordChange registry value
* strip any trailing \'s from reg key names in an openGerald Carter2003-01-191-2/+10
|
* removing extra debug statementGerald Carter2003-01-181-2/+0
|
* The last of the merge of idra's shutdown changes from head...Andrew Bartlett2003-01-041-2/+2
| | | | Andrew Bartlett
* Merge from HEAD - make Samba compile with -Wwrite-strings without additionalAndrew Bartlett2003-01-031-2/+2
| | | | | | warnings. (Adds a lot of const). Andrew Bartlett
* Merge a bunch of trivial changes from HEAD. The difference remainingTim Potter2002-11-291-1/+0
| | | | | | | | | should actual functional differences between HEAD and 3.0. - Mostly reformatting - Removal of unecessary #include "smb.h" - Merge of dyn_DRIVERFILE removal - Silly bug fix for python code