summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/util/util_ldb.c5
-rw-r--r--source4/lib/ldb-samba/ldb_wrap.c9
2 files changed, 9 insertions, 5 deletions
diff --git a/lib/util/util_ldb.c b/lib/util/util_ldb.c
index 9fd2acef16..5e50fddf1c 100644
--- a/lib/util/util_ldb.c
+++ b/lib/util/util_ldb.c
@@ -127,8 +127,3 @@ int gendb_add_ldif(struct ldb_context *ldb, const char *ldif_string)
return ret;
}
-char *wrap_casefold(void *context, void *mem_ctx, const char *s, size_t n)
-{
- return strupper_talloc_n(mem_ctx, s, n);
-}
-
diff --git a/source4/lib/ldb-samba/ldb_wrap.c b/source4/lib/ldb-samba/ldb_wrap.c
index 299dbf49e7..5d870550a8 100644
--- a/source4/lib/ldb-samba/ldb_wrap.c
+++ b/source4/lib/ldb-samba/ldb_wrap.c
@@ -103,6 +103,15 @@ static int ldb_wrap_destructor(struct ldb_wrap *w)
return 0;
}
+/*
+ * The casefolder for s4's LDB databases - Unicode-safe
+ */
+char *wrap_casefold(void *context, void *mem_ctx, const char *s, size_t n)
+{
+ return strupper_talloc_n(mem_ctx, s, n);
+}
+
+
struct ldb_context *samba_ldb_init(TALLOC_CTX *mem_ctx,
struct tevent_context *ev,
struct loadparm_context *lp_ctx,