1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-31 20:22:15 +03:00

Replace ldb_search() with ldb_search_exp_fmt(), like in Samba 4.

This commit is contained in:
Jelmer Vernooij
2009-01-21 16:15:53 +01:00
parent 47951fc5d0
commit f3ecb70133
10 changed files with 28 additions and 122 deletions

View File

@ -56,7 +56,6 @@ static int vprintf_fn(void *private_data, const char *fmt, ...)
int main(int argc, const char **argv)
{
struct ldb_context *ldb;
const char *expression = "(dn=*)";
struct ldb_result *resultMsg;
int i;
@ -89,7 +88,7 @@ int main(int argc, const char **argv)
confusing to start with. See RFC2254.
*/
if (LDB_SUCCESS != ldb_search(ldb, ldb, &resultMsg, NULL, LDB_SCOPE_DEFAULT,
NULL, expression) ) {
NULL, "(dn=*)") ) {
printf("Problem in search\n");
exit(-1);
}