Reorder arguments to ldb_search() to match what is in Samba 4.
[kai/samba-autobuild/.git] / source3 / lib / ldb / examples / ldbreader.c
index baf0e9ab6519f5ecba8e0fe7eab28d1e1837e030..9ab21ee25f87628164883e03514377677da0dcda 100644 (file)
@@ -88,8 +88,8 @@ int main(int argc, const char **argv)
          quite fine grained results with the LDAP search syntax, however it is a bit
          confusing to start with. See RFC2254.
        */
-       if (LDB_SUCCESS != ldb_search(ldb, NULL, LDB_SCOPE_DEFAULT,
-                                     expression, NULL, &resultMsg) ) {
+       if (LDB_SUCCESS != ldb_search(ldb, ldb, &resultMsg, NULL, LDB_SCOPE_DEFAULT,
+                                     NULL, expression) ) {
                printf("Problem in search\n");
                exit(-1);
        }