ldb-samba: use ldap enum instead of ldb enum
authorUri Simchoni <uri@samba.org>
Sun, 19 Nov 2017 13:02:56 +0000 (13:02 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 22 Nov 2017 09:20:20 +0000 (10:20 +0100)
This silences a picky compiler warning.

Signed-off-by: Uri Simchoni <uri@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/ldb-samba/ldb_ildap.c

index a4e96e4f138053ef718e55efc963f19970148172..0cdf738e0be2e1af1c70ee0a2e31bbadafefcde5 100644 (file)
@@ -476,7 +476,7 @@ static int ildb_search(struct ildb_context *ac)
        }
 
        if (req->op.search.scope == LDB_SCOPE_DEFAULT) {
-               msg->r.SearchRequest.scope = LDB_SCOPE_SUBTREE;
+               msg->r.SearchRequest.scope = LDAP_SEARCH_SCOPE_SUB;
        } else {
                msg->r.SearchRequest.scope = req->op.search.scope;
        }