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
Michael Adam
9f3c67e80c
s3:libsmbconf: remove the init headers from smbconf.h
...
give the smbconf_init() dispatcher and the backends
(smbconf_reg and smbconf_txt) a header of their own each.
This allows to use the basic infrastructure and
single backends individually.
Michael
2009-01-21 18:40:54 +01:00
Michael Adam
52b77c928c
s3:libsmbconf: remove unused function smbconf_is_writeable_bystring()
...
Michael
2009-01-21 18:40:54 +01:00
Jelmer Vernooij
ddcab787c4
Rename dos_errstr() to win_errstr() for consistency with Samba 4.
2008-11-01 17:19:26 +01:00
Michael Adam
e4fe3320ec
[s3]libsmbconf: add utility function smbconf_is_writeable_bystring()
...
This checks the writeability of a config source specified by the
config source name.
Michael
2008-10-27 13:02:41 +01:00
Michael Adam
3a06201086
[s3]libsmbconf: add method is_writeable() and wrapper smbconf_is_writeable()
...
This allows for per-config-source checking of write support.
Michael
2008-10-27 13:02:40 +01:00
Michael Adam
9c09d545bf
[s3]libsmbconf: create text config in smbconftort
...
Michael
2008-10-27 13:02:40 +01:00
Michael Adam
b23106745c
[s3]libsmbconf: return WERR_BADFILE when no path to text backend is provided.
...
Michael
2008-10-27 13:02:39 +01:00
Michael Adam
64ab71d2d7
[s3]libsmbconf: fall back to file backend when no valid backend was found
...
Interpret the source string as a file name when it contains
a ':' sign but the initial part is not a known backend.
This might occur even implicitly when "%T" is used in an
include file name (even though this is not realistic..).
Michael
2008-10-27 13:02:39 +01:00
Michael Adam
e453bf70c9
[s3]libsmbconf: fix comment typo.
...
Michael
2008-10-27 13:02:38 +01:00
Michael Adam
9299d53ef9
[s3]libsmbconf: add backend_requires_messaging() method to libsmbconf.
...
In a clustered environment, the registry backend needs messaging
to be set up since ctdb requires this.
Michael
2008-10-27 13:02:38 +01:00
Michael Adam
0ee8992331
[s3]libsmbconf: remove unused define.
...
Michael
2008-10-27 13:02:37 +01:00
Jelmer Vernooij
f9fb9436ae
Use WERR_FILE_EXISTS which is the equivalent of WERR_ALREADY_EXISTS
...
previously present in Samba 3.
2008-10-23 15:37:39 +02:00
Jelmer Vernooij
2d89b52be8
Use separate make variables for libutil and libcrypto.
2008-10-18 14:28:40 +02:00
Jeremy Allison
570d5ecdbd
Jim Brown <jim.brown@miami.edu> was right, this needs to be a signed int or
...
the loop never terminates.
Jeremy.
(This used to be commit 80e547665d
)
2008-07-01 15:51:54 -07:00
Jeremy Allison
4a8b39974b
Fix problem noticed by Jim Brown <jim.brown@miami.edu>. When reverse searching decrement index,
...
not increment. Michael please check !
Jeremy.
(This used to be commit d89f9d404f
)
2008-07-01 15:28:13 -07:00
Michael Adam
1ef07a6686
libsmbconf: add "includes" to the forbidden_valnames[].
...
This removes the warning messages 'Unknown parameter encountered: "includes"'.
Michael
(This used to be commit b20019ceaa
)
2008-06-23 11:11:59 +02:00
Michael Adam
cb5f5eac38
libsmbconf: fastpaths first in smbconf_reg_valname_valid().
...
Before dropping into lp_parameter_is_valid().
Michael
(This used to be commit 59beb7acd7
)
2008-06-23 11:11:59 +02:00
Volker Lendecke
82e36e083d
Increase level of debug msg when a regkey is not found
...
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 727127f1dc
)
2008-04-23 11:12:25 +02:00
Michael Adam
0ff2168bb6
libsmbconf: remove unnecessary talloc success check from smbconf_txt.c
...
talloc_stackframe() panics on NOMEM.
Michael
(This used to be commit dee57ad025
)
2008-04-23 01:49:11 +02:00
Michael Adam
21e82d7afc
libsmbconf: remove unnecessary talloc success checks from smbconf_reg.c
...
talloc_stackframe panics on NOMEM.
Michael
(This used to be commit 03fd30eef8
)
2008-04-23 01:48:26 +02:00
Michael Adam
8cf78fd594
libsmbconf: remove unnecessary talloc success checks from smbconf.c
...
talloc_stackframe() panics on NOMEM.
Michael
(This used to be commit be4f8447cc
)
2008-04-23 01:47:33 +02:00
Michael Adam
fb9232c0a9
libsmbconf: rewrite API to use smbconf_service struct
...
instead of lists of strings and counters directly...
Michael
(This used to be commit 17415e2dc4
)
2008-04-23 01:43:31 +02:00
Michael Adam
5dd54c58b4
libsmbconf: add a struct smbconf_service to hold the parameter names + values.
...
Michael
(This used to be commit 8118a8348f
)
2008-04-22 23:46:13 +02:00
Michael Adam
a376e2bf49
libsmbconf: fix comment headers in smbconf.h
...
Michael
(This used to be commit 54c0461679
)
2008-04-22 16:32:31 +02:00
Michael Adam
03a9ee1520
libsmbconf: text backend remove comment references to "simple".
...
Michael
(This used to be commit 640b8ae7ad
)
2008-04-22 16:11:38 +02:00
Michael Adam
b2425f88fa
libsmbconf: rename smbconf_init_txt_simple() to smbconf_init_txt().
...
...for consistency.
Michael
(This used to be commit 3d1da73f66
)
2008-04-22 16:11:37 +02:00
Michael Adam
9188c8e381
libsmbconf: rename text backend smbconf_txt_simple to smbconf_txt.
...
Michael
(This used to be commit dd9fe5aec4
)
2008-04-22 16:11:37 +02:00
Michael Adam
4a9e0e6034
libsmbconf: fix segfault in listing share names / config.
...
Discovered by Günther while giving a talk. - Sorry Günther!
Michael
(This used to be commit 518f4d4e66
)
2008-04-16 22:44:04 +02:00
Michael Adam
bcaac7fa36
libmsbconf: add handling of NULL share parameters to registry backend.
...
Michael
(This used to be commit 6c1181fda2
)
2008-04-15 17:40:28 +02:00
Michael Adam
be504b9d32
libsmbconf: don't complain with WERR_ALREADY_EXISTS for NULL share in smbconf_create_share().
...
These are values stored inside the base key for registry.
This is not getting deleted.
Michael
(This used to be commit aa167de825
)
2008-04-15 17:40:28 +02:00
Michael Adam
747d4a8f04
libsmbconf: make sure to always list the NULL section first in text backend.
...
Michael
(This used to be commit b50fdf321d
)
2008-04-15 17:40:27 +02:00
Michael Adam
34e8ec54ce
libsmbconf: default to the NULL section when a parameter is encountered w/o section
...
Michael
(This used to be commit e1b98f1cbc
)
2008-04-15 17:40:27 +02:00
Michael Adam
e700800720
libsmbconf: allow NULL sharename in smbconf_share_exists().
...
Michael
(This used to be commit cb23052b20
)
2008-04-15 17:40:27 +02:00