From be4a0d35ac8c55a102e5a938a4b7627e0defd23d Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Sun, 17 Oct 2010 10:20:40 +0200 Subject: s4:"wrap_casefold" - move it to "ldb_wrap.c" since it's only used there --- source4/lib/ldb-samba/ldb_wrap.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'source4/lib') 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, -- cgit