summaryrefslogtreecommitdiff
path: root/source3/lib/smbconf/smbconf_reg.c
AgeCommit message (Collapse)AuthorFilesLines
2010-09-22s3:registry: remove unneeded TALLOC_CTX argument from reg_deletekey_recursiveMichael Adam1-3/+2
2010-09-21s3:registry: move prototype from reg_init_smbconf.c to its own header.Michael Adam1-0/+1
2010-09-21s3:registry: move the reg_api prototypes to their own header.Michael Adam1-0/+1
2010-09-20s3:registry: move higher level function reg_open_path to new module reg_api_utilMichael Adam1-0/+1
The reg_api.c code should just export functions that direclty relate to winreg api calls.
2010-09-11s3-auth Change struct nt_user_token -> struct security_tokenAndrew Bartlett1-2/+2
This common structure is defined in security.idl Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-07-02s3-registry: avoid using registry_value union.Günther Deschner1-20/+48
Just pull and push data as is. Guenther
2010-05-25s3:registry: move prototype registry_create_admin_token() to new header ↵Michael Adam1-0/+1
reg_util_token.h and use it only where necessary.
2010-05-25s3:registry: extract the reg_backend_db prototypes into their own header.Michael Adam1-0/+1
And use them only where needed.
2010-05-18smbconf: only include smbconf headers where needed.Günther Deschner1-0/+2
Guenther
2010-05-18s3-registry: only include registry headers when really needed.Günther Deschner1-0/+1
Guenther
2009-04-27s3:libsmbconf: fix a comment typoMichael Adam1-1/+1
Michael
2009-04-21s3-secdesc: move all winreg access bits to IDL.Günther Deschner1-1/+1
Guenther
2009-04-07s3/smbconf_reg: Fix typo.Karolin Seeger1-1/+1
Karolin
2009-03-04s3:smbconf: move smbconf_share_exists checks into backendMichael Adam1-4/+9
Michael
2009-02-26s3:libsmbconf: add transactions to the libsmbconf apiMichael Adam1-0/+18
This is useful for wrapping higher level aggregate operations in transactions. The text backend implementations just return WERR_OK, the registry backend implementatoins use the regdb_transaction_start|commit|cancel routines just added. Michael
2009-02-26Speed up "net conf list"Volker Lendecke1-115/+41
For 1000 shares this speeds up net conf list from .6 to .25 seconds on my box Signed-off-by: Michael Adam <obnox@samba.org>
2009-02-26Speed up "net conf list"Volker Lendecke1-0/+3
With 1000 shares in the registry, this changed the time of "net conf list" from 1.1 seconds to .6 seconds. Signed-off-by: Michael Adam <obnox@samba.org>
2009-01-21s3:libsmbconf: include smbconf headers with lib/smbconf prefixMichael Adam1-1/+1
Michael
2009-01-21s3:libsmbconf: use talloc_free instead of TALLOC_FREE in reg backendMichael Adam1-20/+20
Michael
2008-11-01Rename dos_errstr() to win_errstr() for consistency with Samba 4.Jelmer Vernooij1-5/+5
2008-10-27[s3]libsmbconf: add method is_writeable() and wrapper smbconf_is_writeable()Michael Adam1-0/+12
This allows for per-config-source checking of write support. Michael
2008-10-27[s3]libsmbconf: add backend_requires_messaging() method to libsmbconf.Michael Adam1-0/+11
In a clustered environment, the registry backend needs messaging to be set up since ctdb requires this. Michael
2008-10-23Use WERR_FILE_EXISTS which is the equivalent of WERR_ALREADY_EXISTSJelmer Vernooij1-1/+1
previously present in Samba 3.
2008-06-23libsmbconf: add "includes" to the forbidden_valnames[].Michael Adam1-0/+1
This removes the warning messages 'Unknown parameter encountered: "includes"'. Michael (This used to be commit b20019ceaaf4a8964792f6ba37f50f91b6847e7f)
2008-06-23libsmbconf: fastpaths first in smbconf_reg_valname_valid().Michael Adam1-2/+2
Before dropping into lp_parameter_is_valid(). Michael (This used to be commit 59beb7acd777a4c224dce90fbbff7a137d2b89c1)
2008-04-23Increase level of debug msg when a regkey is not foundVolker Lendecke1-1/+1
This is a pretty normal situation if you have "include=registry" set but no configuration options have been set there yet. (This used to be commit 727127f1dcd49b31b5a48cc3f9314aa2380d60e1)
2008-04-23libsmbconf: remove unnecessary talloc success checks from smbconf_reg.cMichael Adam1-12/+1
talloc_stackframe panics on NOMEM. Michael (This used to be commit 03fd30eef803ff2718e7af618d38944d56ccd329)
2008-04-23libsmbconf: rewrite API to use smbconf_service structMichael Adam1-6/+27
instead of lists of strings and counters directly... Michael (This used to be commit 17415e2dc457ce41793a7e28e71f72c538c19c61)
2008-04-16libsmbconf: fix segfault in listing share names / config.Michael Adam1-1/+1
Discovered by Günther while giving a talk. - Sorry Günther! Michael (This used to be commit 518f4d4e6662138a2e71acc2296acedefc7c739a)
2008-04-15libmsbconf: add handling of NULL share parameters to registry backend.Michael Adam1-14/+92
Michael (This used to be commit 6c1181fda2f040d9555917b10a65bc0dfc1f0593)
2008-04-13libsmbconf: rename smbconf_init() to smbconf_init_internal().Michael Adam1-1/+1
smbconf_init should be the name of the dispatcher (to be written) Michael (This used to be commit 3fb95ab757650712716472ebaccb7119feb27596)
2008-04-13registry: change registry_init_smbconf() to return WERROR instead of boolMichael Adam1-2/+2
Michael (This used to be commit 7c343c60574cda091f59861fbcb2893aefb564e9)
2008-04-13registry: make registry_init_smbconf() hook the registry ops onto given key.Michael Adam1-1/+1
This still defaults to HKLM\Software\Samba\smbconf, but is interchangeable now. This allows us to open the libsmbconf registry backend on different registry keys. Michael (This used to be commit 8fe1a2f567afbecbe487f08825cb43b038065e99)
2008-04-10libsmbconf: return success and count 0 from get_includes when no includes ↵Michael Adam1-0/+3
present. Michael (This used to be commit 182433be5bae753d264491a3ec97433e2e316d10)
2008-04-10libsmbconf: add delete_includes mehtod to the api (and backend implementations)Michael Adam1-0/+25
Michael (This used to be commit daef50e54d58a6684b6a890ebf523ca6245f0290)
2008-04-10libsmbconf: let set_includes delete the includes paramter when given an ↵Michael Adam1-2/+9
empty list instead of complaining Michael (This used to be commit 0dc1fd68598529891429fb29ab1f561fb434bf38)
2008-04-10libsmbconf: prevent getting/deleting value "includes".Michael Adam1-0/+10
This has to be handled differently (by using get_includes / set_includes) Michael (This used to be commit 5a880c6a2f2415220557a76a9b4ce9a17c766819)
2008-04-10libsmbconf: consider "include" a forbidden parameter in regisry config again.Michael Adam1-0/+1
It is now taken care of by the special includes handling. Michael (This used to be commit 2c8c65d6900086e92c838333b31abf9efdb61343)
2008-04-10libsmbconf: add includes at the end of parameter list in reg_get_share().Michael Adam1-1/+24
Michael (This used to be commit 9bd06d5737aff2bb27c07575285e079fd561a566)
2008-04-10libsmbconf: add function smbconf_reg_valname_valid() and use it in get_values()Michael Adam1-4/+16
so "includes" doesn't get listed as a parameter Michael (This used to be commit 01c4bd07305b4ce800b99a098652623f118a74aa)
2008-04-10libsmbconf: refactor get_includes on opened key into ↵Michael Adam1-40/+56
smbconf_reg_get_includes_internal() Michael (This used to be commit 072a3228a4e08894c67ad2983bcea3417e202773)
2008-04-10libsmbconf: rename registry_smbconf_valname_forbidden() to ↵Michael Adam1-2/+2
smbconf_reg_valname_forbidden() Michael (This used to be commit 23fb33fd33a8287d8691a1a5e95bf160be3ed25c)
2008-04-10libsmbconf: make registry_smbconf_valname_forbidden() staticMichael Adam1-1/+1
Michael (This used to be commit 798808174d0d4cae3a746e26a253cad1a3177684)
2008-04-10libsmbconf: move registry_smbconf_valname_forbidden() to the registry backendMichael Adam1-0/+22
from util_reg.c - no other callers left Michael (This used to be commit 98151fd3e1c24e5c8aaf3f5132071e91ac6ef257)
2008-04-10libsmbconf: more sanely print multi_sz values in registry backendMichael Adam1-2/+2
Michael (This used to be commit 382c623948abd1c6a5cf8ab7ee2be784fcef76ee)
2008-04-10libsmbconf: implement get_includes() and set_includes() for registry backend.Michael Adam1-2/+117
includes are stored per share in a special registry value "includes" of type multi_sz. Michael (This used to be commit 3fee0d79cc618adc7dd82cfeff62c72ef061017b)
2008-04-10libsmbconf: add talloc context to the get_includes methods.Michael Adam1-0/+1
Michael (This used to be commit ed535b6b30b5c9412803f6373eadc704de6de2f9)
2008-04-10libsmbconf: add get_includes() and set_includes() to the API.Michael Adam1-1/+20
Includes have to get a special treatment, at least for registry. Includes are not like other smbconf parameters: they are some kind of metainformation. "include" has two effects when stated twice so it can not be stored boldly into registry, since there can only be one value named "include" in registry per key. I will provide special handling for includes for the registry backend. This patch provides the necessary methods in the smbconf API. Michael (This used to be commit e86eb375d9f83f73aeea0a16c8b43e2ef21a6e20)
2008-04-10libsmbconf: reformat smbconf_format_registry_value() - indentations/tabsMichael Adam1-12/+12
Michael (This used to be commit b79a33eb2f370b8d8b50ed5ed2a0acc83e711c1e)
2008-04-10libsmbconf: untangle assignment and test in for-loop condition.Michael Adam1-4/+4
Michael (This used to be commit 4339caff09e1277ae33d3810043bcb3f4e7c4e45)