Michael Adam
6b85938f27
registry: change regdb_init() to return WERROR instead of bool.
...
Michael
(This used to be commit c312852abc
)
2008-04-13 15:33:47 +02:00
Volker Lendecke
16198dc51e
Convert dbwrap_trans_delete to NTSTATUS
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
(This used to be commit dead193f46
)
2008-04-01 14:04:22 +02:00
Volker Lendecke
fcdfff1cc8
Convert dbwrap_trans_store to NTSTATUS
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
(This used to be commit 5f4de856af
)
2008-04-01 14:04:22 +02:00
Stefan Metzmacher
b8dcade819
regdb: let regdb_fetch_keys() handle NULL and failure cases in the same way and return -1
...
metze
(This used to be commit 983fd58805
)
2008-04-01 14:04:20 +02:00
Stefan Metzmacher
b55942a763
regdb: get the seqnum before the record, to not miss something
...
metze
(This used to be commit c214107bd9
)
2008-04-01 14:04:20 +02:00
Stefan Metzmacher
2b21b02c6a
regdb: use dbwrap->fetch() instead of fetch_locked() for readonly access"
...
This is the fixed version of commit 5c28c74aa0
.
metze
(This used to be commit 924acd7f69
)
2008-04-01 14:04:20 +02:00
Michael Adam
ce0bbc82fd
Revert "regdb: use dbwrap->fetch() instead of fetch_locked() for readonly access"
...
This reverts commit 4e2be189e9
.
Metze, this broke the registry (reg_api layer), but I don't yet know
exactly how and why. By the way, the locks there had the purpose of
fetching the seqnum that really matches the data.
This needs some more thought / debugging. But I wanted to have
the tree in a working state again.
Michael
(This used to be commit 5c28c74aa0
)
2008-03-30 03:05:34 +02:00
Michael Adam
f8fdc36fdb
regdb: use == 0 (instead of != -1) as indicator for success of dbwrap_trans_[delete|store]()
...
Michael
(This used to be commit 7dcd0c1e53
)
2008-03-27 18:14:57 +01:00
Michael Adam
c86d10ae83
regdb: use != 0 instead of == -1 check for transaction_[commit|cancel]
...
Michael
(This used to be commit b6ceeaabae
)
2008-03-27 18:14:57 +01:00
Stefan Metzmacher
5439f5f710
regdb: use db_open_trans()
...
metze
Signed-off-by: Stefan Metzmacher <metze@samba.org>
(This used to be commit a77b5b91dd
)
2008-03-27 18:14:56 +01:00
Stefan Metzmacher
618f22409a
regdb: use regdb->transaction_start(regdb) != 0 consistent
...
metze
Signed-off-by: Stefan Metzmacher <metze@samba.org>
(This used to be commit 093c3bced9
)
2008-03-27 18:14:56 +01:00
Stefan Metzmacher
2a95f3f874
regdb: use dbwrap->fetch() instead of fetch_locked() for readonly access
...
metze
Signed-off-by: Stefan Metzmacher <metze@samba.org>
(This used to be commit 4e2be189e9
)
2008-03-27 18:14:56 +01:00
Stefan Metzmacher
d9de61341c
regdb: use dbwrap_trans_store_int32
...
metze
Signed-off-by: Stefan Metzmacher <metze@samba.org>
(This used to be commit 9620696083
)
2008-03-27 18:14:56 +01:00
Michael Adam
060f554adc
registry: use available string constant in debug statement.
...
Michael
(This used to be commit 6bac03a2ec
)
2008-03-20 15:01:52 +01:00
Michael Adam
cef4e1bd9e
registry: in regdb_init, not only complain about INFO/version, store it...
...
Michael
(This used to be commit 27d67365ad
)
2008-03-20 15:01:52 +01:00
Michael Adam
4bac0e505f
registry: reformat regdb_init() slightly, breaking long lines.
...
Michael
(This used to be commit 11da885f1e
)
2008-03-20 15:01:52 +01:00
Michael Adam
13b894b01e
registry: untangle assignment and if-statement in regdb_init().
...
Michael
(This used to be commit 504058df97
)
2008-03-20 15:01:52 +01:00
Michael Adam
2f01e055cf
registry: separate initialization of registry data from regdb_init().
...
Leave this to the users (currently registry_init_smbconf() and
init_registry()) to initialize as much of preliminary registry data
as needed.
Michael
(This used to be commit 59fdd30c78
)
2008-03-20 15:01:52 +01:00
Michael Adam
8880111466
registry: add a transaction wrapper to init_registry_key_internal().
...
Michael
(This used to be commit 8b9cff84d5
)
2008-03-20 15:01:52 +01:00
Michael Adam
1f3139df25
registry: refactor creation of subkeys out of init_registry_data().
...
Michael
(This used to be commit 55233f875e
)
2008-03-20 15:01:51 +01:00
Günther Deschner
e8bd75ec73
Bind Group Policy processing closer to the samba registry.
...
Guenther
(This used to be commit e9c56250eb
)
2008-03-18 21:31:24 +01:00
Michael Adam
6a2a76bc92
registry: untangle assignment and if-clause in init_registry_data().
...
Michael
(This used to be commit 64664d25cf
)
2008-03-17 13:12:47 +01:00
Michael Adam
cc2e3f180b
registry: convert regdb REGISTRY_OPS to named struct initializers.
...
Michael
(This used to be commit 3ea0a0beb4
)
2008-03-17 08:22:33 +01:00
Michael Adam
9741e07140
registry: use talloc instead of malloc and provide common exit point
...
in regdb_get_secdesc().
Michael
(This used to be commit df848d8eee
)
2008-03-17 08:22:33 +01:00
Michael Adam
647432a40c
registry: remove an unused variable from regdb_set_secdesc().
...
Michael
(This used to be commit 76dad05e4c
)
2008-03-17 08:22:33 +01:00
Michael Adam
18a407de8c
registry: untangle assignments and if statements in regdb_set_secdesc().
...
Michael
(This used to be commit d553b5d725
)
2008-03-17 08:22:33 +01:00
Michael Adam
40e6ec16ee
registry: use talloc_stackframe instead of hand crafted temporary context.
...
Michael
(This used to be commit e4f2c856ec
)
2008-03-17 08:22:33 +01:00
Michael Adam
2ce3d4b918
registry: use talloc instead of malloc for tdb data in regdb_store_values().
...
Michael
(This used to be commit 860316cbe7
)
2008-03-17 08:22:33 +01:00
Michael Adam
ae7f7e44ff
registry: don't use talloc_stackframe() instead of talloc_tos() als temp ctx
...
in regdb_store_values(). Also provide common exit path for
freeing memory.
Michael
(This used to be commit 7454e426f2
)
2008-03-17 08:22:33 +01:00
Michael Adam
ecd7479be2
registry: don't leak to talloc stack in regdb_fetch_keys().
...
Michael
(This used to be commit 3a1d79116b
)
2008-03-17 08:22:33 +01:00
Michael Adam
3b250d17d9
registry: explicitly use talloc context instead of talloc_tos()
...
in regdb_fetch_keys().
Michael
(This used to be commit 93ea27a3e2
)
2008-03-17 08:22:33 +01:00
Michael Adam
46ea0d333e
registry: don't leak on success path in regdb_store_keys().
...
Michael
(This used to be commit 331d7fd2ea
)
2008-03-17 08:22:33 +01:00
Michael Adam
a0d4c1e127
registry: allocate tempory data in talloc stack in regdb_store_keys().
...
Michael
(This used to be commit a99b51159a
)
2008-03-17 08:22:33 +01:00
Michael Adam
78adf71669
registry: separate cancel and failur exit paths in regdb_store_keys().
...
Michael
(This used to be commit e1d4a2fa5b
)
2008-03-17 08:22:33 +01:00
Michael Adam
e64825e620
registry: don't leak memory on transaction fail in regdb_store_keys().
...
Michael
(This used to be commit 9315de4048
)
2008-03-17 08:22:33 +01:00
Michael Adam
ba8607acc1
registry: don't leak (to talloc_tos()) in regdb_store_keys().
...
use talloc_stackframe() and free on error path.
Michael
(This used to be commit 95525772f2
)
2008-03-17 08:22:33 +01:00
Michael Adam
a37811727a
registry: reformat regdb_store_keys_internal(), killing long lines.
...
Michael
(This used to be commit 966b2414cb
)
2008-03-17 08:22:32 +01:00
Michael Adam
a446378e7a
registry: don't leak (to talloc_tos()) in regdb_store_keys_internal().
...
Michael
(This used to be commit 76e4cdc25f
)
2008-03-17 08:22:32 +01:00
Michael Adam
8432f7f8cf
registry: reformat init_registry_data() some, killing long lines.
...
Michael
(This used to be commit f357b1ddd3
)
2008-03-17 08:22:32 +01:00
Michael Adam
0a98b3ce1d
registry: explicitly use talloc context instead of talloc_tos()
...
in init_registry_data().
Michael
(This used to be commit 8b0dd1e758
)
2008-03-17 08:22:32 +01:00
Michael Adam
0ca465f054
registry: don't leak (to talloc_tos()) in init_registry_data().
...
Michael
(This used to be commit 7fd0ae3edc
)
2008-03-17 08:22:32 +01:00
Michael Adam
7c6de9b0bd
registry: rename tdb_refcount to regdb_refcount after change to dbwrap.
...
Michael
(This used to be commit d39957e2c9
)
2008-03-17 08:22:32 +01:00
Michael Adam
62556cd6f0
registry: rename tdb_reg to regdb after change to dbwrap.
...
Michael
(This used to be commit 79f37d4765
)
2008-03-17 08:22:32 +01:00
Michael Adam
178f3afe41
registry: migrate tdb registry backend to dbwrap.
...
Michael
(This used to be commit 3c42d8ee16
)
2008-03-17 08:22:32 +01:00
Günther Deschner
87222d3f11
Fix init_registry_data for subkeyless top-level keys.
...
On a fresh install with no existing registry.tdb, make sure we are able to
create our initial top-level entries.
Michael, Volker, please check.
Guenther
(This used to be commit 956bc60206
)
2008-03-01 01:02:15 +01:00
Michael Adam
9e9cd40a7d
Make regdb_init() behave like regdb_open() when registry is already opened.
...
I.e. increment the refcounter.
Michael
(This used to be commit 951d3fae2c
)
2008-02-19 09:09:04 +01:00
Michael Adam
b5666ceefb
Rename reg_db.c to reg_backend_db.c
...
Michael
(This used to be commit c3f695d3b1
)
2008-01-21 08:49:12 +01:00