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:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user