Andrew Bartlett
b74fe73a6f
build: Remove sys_fopen wrapper
2012-04-05 02:39:08 +02:00
Gregor Beck
3db91e6599
s3:smbconf let drop leave the smbconf key in place to match a virgin registry.tdb
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-08-08 15:27:07 +02:00
Michael Adam
88ee6973f0
s3:libsmbconf: use lp_load_global() in the testsuite
2011-07-28 11:17:30 +02:00
Andrew Bartlett
ad0a07c531
s3-talloc Change TALLOC_ZERO_P() to talloc_zero()
...
Using the standard macro makes it easier to move code into common, as
TALLOC_ZERO_P isn't standard talloc.
2011-06-09 12:40:08 +02:00
Günther Deschner
7da530e1e4
s3-lib/smbconf: fix uninitialized error code in smbconf_reg_init().
...
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Thu May 12 18:09:16 CEST 2011 on sn-devel-104
2011-05-12 18:09:16 +02:00
Andreas Schneider
e1f0b91c5f
libsmbconf: Convert smbconf_transaction_*() to sbcErr.
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-05-10 19:13:22 +02:00
Andreas Schneider
72d15f0c03
libsmbconf: Convert smbconf_delete_includes() to sbcErr.
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-05-10 19:13:22 +02:00
Andreas Schneider
d911bafea6
libsmbconf: Convert smbconf_set_includes() to sbcErr.
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-05-10 19:13:22 +02:00
Andreas Schneider
9f9711490a
libsmbconf: Convert smbconf_get_includes() to sbcErr.
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-05-10 19:13:21 +02:00
Andreas Schneider
e19c4f278b
libsmbconf: Convert smbconf_delete_parameter() to sbcErr.
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-05-10 19:13:21 +02:00
Andreas Schneider
ff5838d97a
libsmbconf: Convert smbconf_get_parameter() to sbcErr.
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-05-10 19:13:21 +02:00
Andreas Schneider
ddc28a683f
libsmbconf: Convert smbconf_set_parameter() to sbcErr.
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-05-10 19:13:21 +02:00
Andreas Schneider
fbd7626656
libsmbconf: Convert smbconf_delete_share() to sbcErr.
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-05-10 19:13:21 +02:00
Andreas Schneider
7f355e05f9
libsmbconf: Convert smbconf_get_share() to sbcErr.
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-05-10 19:13:21 +02:00
Andreas Schneider
7af2876e45
libsmbconf: Convert smbconf_create_share() to smbErr.
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-05-10 19:13:20 +02:00
Andreas Schneider
823cd472b4
libsmbconf: Convert smbconf_get_share_names() to sbcErr.
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-05-10 19:13:20 +02:00
Andreas Schneider
720ba8e7e7
libsmbconf: Convert smbconf_drop() to sbcErr.
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-05-10 19:13:20 +02:00
Andreas Schneider
9082c7cee8
libsmbconf: Convert smbconf_open() to sbcErr.
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-05-10 19:13:20 +02:00
Andreas Schneider
29eea4b09a
libsmbconf: Convert smbconf_init() to sbcErr.
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-05-10 19:13:20 +02:00
Volker Lendecke
7e7ad53cbd
s3: Fix Coverity ID 1340, NULL_RETURNS
2011-04-22 10:06:33 +02:00
Günther Deschner
0a250f4946
registry: create and use shared libcli/registry/util_reg.h header.
...
Guenther
2011-03-30 01:13:07 +02:00
Andrew Bartlett
9da4ace1d9
s3-debug Impove setup_logging() to specify logging to stderr
...
This change improves the setup_logging() API so that callers which
wish to set up logging to stderr can simply ask for it, rather than
directly modify the dbf global variable.
Andrew Bartlett
2010-11-02 04:36:04 +00:00
Michael Adam
7a25d13742
s3:registry: remove unneeded TALLOC_CTX argument from reg_deletekey_recursive
2010-09-22 06:30:01 +02:00
Michael Adam
a35daebaf1
s3:registry: move prototype from reg_init_smbconf.c to its own header.
2010-09-21 08:52:06 +02:00
Michael Adam
b11cc30508
s3:registry: move the reg_api prototypes to their own header.
2010-09-21 08:52:06 +02:00
Michael Adam
0f7e503d21
s3:registry: move higher level function reg_open_path to new module reg_api_util
...
The reg_api.c code should just export functions that direclty relate to winreg
api calls.
2010-09-20 19:58:01 +02:00
Andrew Bartlett
4bfc8d3b1a
s3-auth Change struct nt_user_token -> struct security_token
...
This common structure is defined in security.idl
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-09-11 18:46:05 +10:00
Andreas Schneider
ce2a086119
s3-popt: Only include popt-common.h when needed.
2010-08-05 12:08:31 +02:00
Günther Deschner
b381fba089
s3-registry: avoid using registry_value union.
...
Just pull and push data as is.
Guenther
2010-07-02 10:50:21 +02:00
Michael Adam
f3053739b7
s3:registry: move prototype registry_create_admin_token() to new header reg_util_token.h
...
and use it only where necessary.
2010-05-25 10:35:26 +02:00
Michael Adam
d335f292ce
s3:registry: extract the reg_backend_db prototypes into their own header.
...
And use them only where needed.
2010-05-25 10:35:25 +02:00
Günther Deschner
e9f5bdf6b5
smbconf: only include smbconf headers where needed.
...
Guenther
2010-05-18 10:36:33 +02:00
Günther Deschner
fe31b67d5e
s3-registry: only include registry headers when really needed.
...
Guenther
2010-05-18 01:15:38 +02:00
Michael Adam
65527216f1
s3:libsmbconf: fix a comment typo
...
Michael
2009-04-27 13:25:07 +02:00
Günther Deschner
38264bb3b8
s3-secdesc: move all winreg access bits to IDL.
...
Guenther
2009-04-21 12:42:51 +02:00
Karolin Seeger
6343cab308
s3/smbconf_reg: Fix typo.
...
Karolin
2009-04-07 20:05:21 +02:00
Björn Jacke
c3691b839c
fix "dubious escape" warning of Studio compiler
2009-03-09 10:47:30 +01:00
Michael Adam
9d798494a9
s3:smbconf: move smbconf_share_exists checks into backend
...
Michael
2009-03-04 22:49:24 +01:00
Michael Adam
bd121b532c
s3:libsmbconf: add transactions to the libsmbconf api
...
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-26 11:05:23 +01:00
Volker Lendecke
16f61a6f90
Speed up "net conf list"
...
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-26 11:05:21 +01:00
Volker Lendecke
26f238466c
Speed up "net conf list"
...
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-02-26 11:05:21 +01:00
Stefan Metzmacher
50db8ede23
s3:smbconftort: don't use reserved words ('test:', 'failure:', 'success:')
...
Temporary results printfs should not contain reserved subunit words.
metze
2009-01-30 19:47:59 +01:00
Michael Adam
a868d2f3d5
libsmbconf: move the non-registry parts of libsmbconf to top level
...
Michael
2009-01-21 18:40:58 +01:00
Michael Adam
85447ac747
s3:libsmbconf: include smbconf headers with lib/smbconf prefix
...
Michael
2009-01-21 18:40:57 +01:00
Michael Adam
7ac06f1609
s3:libsmbconf: use talloc_free instead of TALLOC_FREE in reg backend
...
Michael
2009-01-21 18:40:57 +01:00
Michael Adam
1ed0cc7c9b
s3:libsmbconf: use talloc_free instead of TALLOC_FREE in txt backend
...
Michael
2009-01-21 18:40:56 +01:00
Michael Adam
d0a8c356fb
s3:libsmbconf: use talloc_free instead of TALLOC_FREE in smbconf_init
...
Michael
2009-01-21 18:40:56 +01:00
Michael Adam
f0f5029fd7
s3:libsmbconf: use talloc_free instead of TALLOC_FREE in testsuite
...
Michael
2009-01-21 18:40:56 +01:00
Michael Adam
53ea574255
s3:libsmbconf: use talloc_free instead of TALLOC_FREE in smbconf_util.c
...
Michael
2009-01-21 18:40:55 +01:00
Michael Adam
c94fd054ca
s3:libsmbconf: use talloc_free instead of TALLOC_FREE in smbconf.c
...
Michael
2009-01-21 18:40:55 +01:00