diff options
author | Andrew Tridgell <tridge@samba.org> | 2009-06-02 17:27:37 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2009-06-04 14:10:11 +1000 |
commit | 8ca8dabe4615416153be9be7be16558e43d17381 (patch) | |
tree | 880fb0f26e8ca7596b07873377b24084f6491c6e /lib/util/util_ldb.h | |
parent | da3ee2790089e771689afbebef021a8c8c776306 (diff) | |
download | samba-8ca8dabe4615416153be9be7be16558e43d17381.tar.gz samba-8ca8dabe4615416153be9be7be16558e43d17381.tar.bz2 samba-8ca8dabe4615416153be9be7be16558e43d17381.zip |
add gendb_search_single_extended_dn()
This function searches for a single record using a given filter,
adding the extended-dn control so that any returned DNs will have the
GUID and SID fields returned. This will be used in the sam auth code
to prevent us doing a member= search for the groups, which invokes an
unindexed search.
Diffstat (limited to 'lib/util/util_ldb.h')
-rw-r--r-- | lib/util/util_ldb.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/util/util_ldb.h b/lib/util/util_ldb.h index f9eb028916..4575c6565a 100644 --- a/lib/util/util_ldb.h +++ b/lib/util/util_ldb.h @@ -26,4 +26,12 @@ int gendb_search_dn(struct ldb_context *ldb, int gendb_add_ldif(struct ldb_context *ldb, const char *ldif_string); char *wrap_casefold(void *context, void *mem_ctx, const char *s, size_t n); +int gendb_search_single_extended_dn(struct ldb_context *ldb, + TALLOC_CTX *mem_ctx, + struct ldb_dn *basedn, + enum ldb_scope scope, + struct ldb_message **msg, + const char * const *attrs, + const char *format, ...) PRINTF_ATTRIBUTE(7,8); + #endif /* __LIB_UTIL_UTIL_LDB_H__ */ |