*/
#include "includes.h"
-#include "libcli/ldap/ldap.h"
#include "libcli/ldap/ldap_client.h"
/*
msg->r.SearchRequest.attributesonly = attributesonly;
msg->r.SearchRequest.tree = tree;
msg->r.SearchRequest.num_attributes = n;
- msg->r.SearchRequest.attributes = attrs;
+ msg->r.SearchRequest.attributes = discard_const(attrs);
req = ldap_request_send(conn, msg);
talloc_steal(msg, req);
{
struct ldb_parse_tree *tree = ldb_parse_tree(conn, expression);
NTSTATUS status;
- status = ildap_search(conn, basedn, scope, tree, attrs, attributesonly, results);
+ status = ildap_search_bytree(conn, basedn, scope, tree, attrs,
+ attributesonly, results);
talloc_free(tree);
return status;
}