diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-01-07 23:41:55 -0600 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2008-01-07 17:48:02 -0600 |
commit | 83a7d865e41e56ee7ad6c732f743df51a418168e (patch) | |
tree | b09aa1205f3cfa69e310968f3782c21271ab1d80 | |
parent | 20bf9e1f7f1f084fa00af79850c30fa9c70ede35 (diff) | |
download | samba-83a7d865e41e56ee7ad6c732f743df51a418168e.tar.gz samba-83a7d865e41e56ee7ad6c732f743df51a418168e.tar.bz2 samba-83a7d865e41e56ee7ad6c732f743df51a418168e.zip |
r26692: registry: Treat key and value names case-insensitively.
(This used to be commit 9fc5f098e01145db5b01efb0bf22cdddf0213d20)
-rw-r--r-- | source4/lib/registry/ldb.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source4/lib/registry/ldb.c b/source4/lib/registry/ldb.c index 1e345ba9f3..259315cc39 100644 --- a/source4/lib/registry/ldb.c +++ b/source4/lib/registry/ldb.c @@ -345,6 +345,7 @@ WERROR reg_open_ldb_file(TALLOC_CTX *parent_ctx, const char *location, { struct ldb_key_data *kd; struct ldb_context *wrap; + struct ldb_message *attrs_msg; if (location == NULL) return WERR_INVALID_PARAM; @@ -357,6 +358,15 @@ WERROR reg_open_ldb_file(TALLOC_CTX *parent_ctx, const char *location, return WERR_FOOBAR; } + attrs_msg = ldb_msg_new(wrap); + W_ERROR_HAVE_NO_MEMORY(attrs_msg); + attrs_msg->dn = ldb_dn_new(attrs_msg, wrap, "@ATTRIBUTES"); + W_ERROR_HAVE_NO_MEMORY(attrs_msg->dn); + ldb_msg_add_string(attrs_msg, "key", "CASE_INSENSITIVE"); + ldb_msg_add_string(attrs_msg, "value", "CASE_INSENSITIVE"); + + ldb_add(wrap, attrs_msg); + ldb_set_debug_stderr(wrap); kd = talloc_zero(parent_ctx, struct ldb_key_data); |