1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-16 00:23:52 +03:00

r26692: registry: Treat key and value names case-insensitively.

This commit is contained in:
Jelmer Vernooij
2008-01-07 23:41:55 -06:00
committed by Stefan Metzmacher
parent fdd2ba336b
commit 9fc5f098e0

View File

@@ -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);