Michael Adam
ac4899eaa1
s3:net registry import: implement dry-run with "--test"
...
Pair-Programmed-With: Gregor Beck <gbeck@sernet.de>
Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Tue Jun 26 21:43:49 CEST 2012 on sn-devel-104
2012-06-26 21:43:49 +02:00
Michael Adam
3705119bb0
s3:net registry import: add an assert
...
Pair-Programmed-With: Gergor Beck <gbeck@sernet.de>
2012-06-26 19:57:19 +02:00
Michael Adam
8bf08505c1
s3:net registry import: reduce indentation
...
Pair-Programmed-With: Gregor Beck <gbeck@sernet.de>
2012-06-26 19:57:19 +02:00
Michael Adam
d5ab3282e4
s3:net registry import: fix the return code when transaction commit fails
...
Pair-Programmed-With: Gregor Beck <gbeck@sernet.de>
2012-06-26 19:57:19 +02:00
Michael Adam
a3ed47a09b
s3:net registry import: improve regdb_open/close layering
...
Pair-Programmed-With: Gregor Beck <gbeck@sernet.de>
2012-06-26 19:57:19 +02:00
Michael Adam
c55a6dae65
s3:net registry import: untangle nested function calls
2012-06-26 19:57:19 +02:00
Michael Adam
20e5e8ef26
s3:net registry import: reduce indentation and untangle assignment from check
...
in import_with_precheck_action().
2012-06-26 19:57:19 +02:00
Michael Adam
f9ff84b0b4
s3:net registry import: move precheck-and-import code to its own function
...
This is the code that is executed in a registry transaction.
The purpose of the refactoring is to be able to simplify and
untangle the code structure in the sequel.
2012-06-26 19:57:19 +02:00
Gregor Beck
e28b4b10a6
s3:net registry: fix violation of coding conventions
...
Signed-off-by: Michael Adam <obnox@samba.org>
2012-06-26 19:57:19 +02:00
Gregor Beck
0fb847b738
s3:net registry import: add option --precheck
...
Signed-off-by: Michael Adam <obnox@samba.org>
2012-06-26 19:57:19 +02:00
Gregor Beck
69add7e4fd
s3:net registry import: check return values + codecleanup
...
Signed-off-by: Michael Adam <obnox@samba.org>
2012-06-26 19:57:18 +02:00
Michael Adam
dc4cf82fb5
s3:net registry: fix a copy and paste error in a help text
2012-01-31 17:00:30 +01:00
Volker Lendecke
0f9d14820e
s3: Remove a bunch of calls to procid_self()
...
All callers to messaging_[re]init only used procid_self()
2011-12-12 21:50:25 +01:00
Michael Adam
b15d3251ac
s3:net registry: fix segfault when net registry is called without subcommands...
...
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Fri Oct 14 17:51:53 CEST 2011 on sn-devel-104
2011-10-14 17:51:53 +02:00
Gregor Beck
491afa3a4c
s3:net: avoid unnecessary initialization of the registry.
...
This allows for using help without having access to the registry and
prevents update code to run if only a readonly check is to be performed.
Signed-off-by: Michael Adam <obnox@samba.org>
2011-10-12 22:45:53 +02:00
Gregor Beck
502f0b8edc
s3:net: add command registry check
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-10-12 22:45:53 +02:00
Stefan Metzmacher
5d736d8777
s3:utils/net_*registry: use c99 initializers which are supported by old gcc 2.95 compilers (bug #8226 )
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Jun 15 03:48:41 CEST 2011 on sn-devel-104
2011-06-15 03:48:41 +02:00
Gregor Beck
723ba6024c
s3:net: registry export: close key after recursion returns
...
Signed-off-by: Michael Adam <obnox@samba.org>
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Mon May 30 18:53:28 CEST 2011 on sn-devel-104
2011-05-30 18:53:28 +02:00
Michael Adam
0d746f653e
s3:net registry: polish output of net registry enumerate[_recursive]
...
so that net registry enumerate output is as before, and
net registry enumerate_recursive is formatted more nicely
2011-05-30 17:42:27 +02:00
Gregor Beck
5ec479fa0c
s3:net: registry: use recursive implementation for enumerate
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-05-30 17:42:27 +02:00
Gregor Beck
22011ddc9e
s3:net: registry: add new command enumerate_recursive
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-05-30 17:42:27 +02:00
Günther Deschner
235f148590
s3-passdb: use passdb headers where needed.
...
Guenther
2011-03-30 01:13:08 +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
Günther Deschner
49ccae1c20
s3-includes: no point in including all security headers globally.
...
Guenther
2011-03-30 01:13:07 +02:00
Günther Deschner
e1f84330ba
libcli/security: move display_sec headers to own header file and add to
...
security.h grouping header.
Guenther
2011-03-16 10:11:08 +01:00
Michael Adam
e57d4c41d7
s3:net registry: ignore WERR_BADFILE when --force is given in deletekey[_recursive]
...
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Sun Jan 30 14:53:13 CET 2011 on sn-devel-104
2011-01-30 14:53:13 +01:00
Michael Adam
e81ddbcade
s3:net registry: fix a debug message.
2011-01-30 14:09:04 +01:00
Michael Adam
3649798bee
s3:net registry: fix a debug message.
2011-01-30 14:09:04 +01:00
Volker Lendecke
0e95fca747
s3: Add "net registry getvaluesraw"
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Tue Nov 2 15:42:22 UTC 2010 on sn-devel-104
2010-11-02 15:42:22 +00:00
Michael Adam
cb5c86e502
s3:net: add subcommand net registry deletekey_recursive
...
to delete a key including subkeys
2010-09-22 06:30:01 +02:00
Michael Adam
7a25d13742
s3:registry: remove unneeded TALLOC_CTX argument from reg_deletekey_recursive
2010-09-22 06:30:01 +02:00
Gregor Beck
0afc83c255
s3-net: add command registry convert
...
Signed-off-by: Michael Adam <obnox@samba.org>
2010-09-22 06:30:00 +02:00
Gregor Beck
e7c2724c81
s3-net: add command registry export
...
Signed-off-by: Michael Adam <obnox@samba.org>
2010-09-22 06:30:00 +02:00
Gregor Beck
2a10fd769b
s3-net: add command registry import
...
Signed-off-by: Michael Adam <obnox@samba.org>
2010-09-22 06:30:00 +02:00
Michael Adam
0bd2756b97
s3:registry: move prototypes from reg_init_basic.c to their 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
Andrew Bartlett
d1bb21b0d5
s3:auth Remove NT_USER_TOKEN
...
The all UPPER case typedef is no longer the preferred Samba style
and this makes it easier to see that this is the IDL-derivied structure
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-09-11 18:46:06 +10:00
Volker Lendecke
0f83aa8650
s3: Remove the dependency of g_lock on procid_self
...
procid_self() references global vars, don't depend on them unnecessarily
2010-08-28 12:28:53 +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
Günther Deschner
fe31b67d5e
s3-registry: only include registry headers when really needed.
...
Guenther
2010-05-18 01:15:38 +02:00
Günther Deschner
6864828d9d
s3: use shared registry functions.
...
Guenther
2010-04-27 16:42:15 +02:00
Volker Lendecke
e3913084cd
s3: Add "net registry increment"
...
A convenience function to increment a DWORD value under a (cluster-wide) lock
2010-03-12 16:55:28 +01:00
Volker Lendecke
67d1b01590
s3: Fix some "net registry" usage messages
2010-03-12 11:47:37 +01:00
Michael Adam
27ae935a8d
s3:net: add a command "net registry setsd_sdd"
...
This permits to set the security descriptor of a registry
key from the unix command line.
Michael
2010-03-03 09:16:38 +01:00
Michael Adam
6f4bdbccf7
s3:net: fix some i18n messages in net_registry_getsd_internal().
...
Michael
2010-03-03 09:16:38 +01:00
Michael Adam
d8b828d4a9
s3:net: add i18n macro _() to one message
...
Michael
2010-03-03 09:16:38 +01:00
Michael Adam
caa27bb165
s3:net: add new subcommand "net registry getsd_sddl" to print secdesc in sddl format
...
Michael
2010-03-03 09:16:37 +01:00
Michael Adam
93d438d970
s3:net: refactor getting of secdesc out of net_registry_getsd()
...
New net_registry_getsd_internal does the work(),
net_registry_getsd() just prints the result.
This in preparation to add support for other output formats
than the currently used display_sec_desc().
Michael
2010-03-03 09:16:36 +01:00
Kai Blin
66de52c4f4
s3 net: Fix compile warnings
2010-01-19 14:48:34 +01:00