1 #ifndef __LIB_UTIL_UTIL_LDB_H__
2 #define __LIB_UTIL_UTIL_LDB_H__
4 /* The following definitions come from lib/util/util_ldb.c */
6 int gendb_search_v(struct ldb_context *ldb,
9 struct ldb_message ***msgs,
10 const char * const *attrs,
12 va_list ap) PRINTF_ATTRIBUTE(6,0);
13 int gendb_search(struct ldb_context *ldb,
15 struct ldb_dn *basedn,
16 struct ldb_message ***res,
17 const char * const *attrs,
18 const char *format, ...) PRINTF_ATTRIBUTE(6,7);
19 int gendb_search_dn(struct ldb_context *ldb,
22 struct ldb_message ***res,
23 const char * const *attrs);
24 int gendb_add_ldif(struct ldb_context *ldb, const char *ldif_string);
25 char *wrap_casefold(void *context, void *mem_ctx, const char *s, size_t n);
27 #endif /* __LIB_UTIL_UTIL_LDB_H__ */