summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2004-04-05 20:44:33 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:50:41 -0500
commitb96025eb15e3648e77e0e6aa343e23ca2f1156da (patch)
treede172e59aa322f1f015f941ca6cc8c5ff596777d /source4/lib
parent220ea5b6e6e4d049cb80c1c206ead6021b807283 (diff)
downloadsamba-b96025eb15e3648e77e0e6aa343e23ca2f1156da.tar.gz
samba-b96025eb15e3648e77e0e6aa343e23ca2f1156da.tar.bz2
samba-b96025eb15e3648e77e0e6aa343e23ca2f1156da.zip
r61: - Implement first call in the winreg rpc server
- Add some initial implementation of the ldb backend - More checks in the winreg torture test (This used to be commit ae2b63b6f1821bc4f693cb8e2a5f78718c483c24)
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/registry/reg_backend_ldb/reg_backend_ldb.c19
-rw-r--r--source4/lib/registry/reg_backend_rpc/reg_backend_rpc.c2
2 files changed, 19 insertions, 2 deletions
diff --git a/source4/lib/registry/reg_backend_ldb/reg_backend_ldb.c b/source4/lib/registry/reg_backend_ldb/reg_backend_ldb.c
index 75d5a95187..afa60c5c4a 100644
--- a/source4/lib/registry/reg_backend_ldb/reg_backend_ldb.c
+++ b/source4/lib/registry/reg_backend_ldb/reg_backend_ldb.c
@@ -43,9 +43,25 @@ static BOOL ldb_close_registry(REG_HANDLE *h)
return True;
}
+static BOOL ldb_fetch_subkeys(REG_KEY *k, int *count, REG_KEY ***subkeys)
+{
+ ldb_search();
+}
+
static REG_KEY *ldb_open_key(REG_HANDLE *h, const char *name)
{
- /* FIXME */
+ struct ldb_context *c = h->backend_data;
+ char *path;
+ struct ldb_message **msg;
+ REG_KEY *key = NULL;
+ (dn=key=Systems,
+ if(ldb_search(c, NULL, LDP_SCOPE_BASE, "", NULL,&msg) > 0) {
+ key = reg_key_new_abs(name, h, base);
+ }
+
+ ldap_search_free(c, msg);
+
+ return key;
}
static REG_OPS reg_backend_ldb = {
@@ -53,6 +69,7 @@ static REG_OPS reg_backend_ldb = {
.open_registry = ldb_open_registry,
.close_registry = ldb_close_registry,
.open_key = ldb_open_key,
+ .fetch_subkeys = ldb_fetch_subkeys,
};
NTSTATUS reg_ldb_init(void)
diff --git a/source4/lib/registry/reg_backend_rpc/reg_backend_rpc.c b/source4/lib/registry/reg_backend_rpc/reg_backend_rpc.c
index 84c3cb8aee..ad4d537f9b 100644
--- a/source4/lib/registry/reg_backend_rpc/reg_backend_rpc.c
+++ b/source4/lib/registry/reg_backend_rpc/reg_backend_rpc.c
@@ -90,7 +90,7 @@ static BOOL rpc_open_registry(REG_HANDLE *h, const char *location, BOOL try_full
DCERPC_WINREG_UUID,
DCERPC_WINREG_VERSION,
lp_workgroup(),
- "jelwin", "dds");
+ "tridge", "samba");
if(!NT_STATUS_IS_OK(status)) return False;