# Elasticsearch query equivalent to LDAP search

**URL:** <https://discuss.elastic.co/t/elasticsearch-query-equivalent-to-ldap-search/204178>\
**Category:** Elasticsearch\
**Created:** [October 18, 2019, 7:05am UTC](https://discuss.elastic.co/t/elasticsearch-query-equivalent-to-ldap-search/204178 "2019-10-18T07:05:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MKU](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mku/32/48327_2.png) [@MKU](https://discuss.elastic.co/u/MKU)\
**Post date:** [October 18, 2019, 7:05am UTC](https://discuss.elastic.co/t/elasticsearch-query-equivalent-to-ldap-search/204178/1 "2019-10-18T07:05:46Z")

</div>

```auto
base: "cn=schema"
	scope:0 dereference:3 sizelimit:0 timelimit:0 attrsonly:0
	filter: "(objectClass=subschema)"
	attribute: "objectClasses"
	attribute: "attributeTypes"
	attribute: "matchingRules"
	attribute: "ldapSyntaxes"

```

i have same data on both ldap and elastic searver.  
but what would be the corresponding elastic query, to above search.

How do you deal with scope and base .

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 15, 2019, 7:05am UTC](https://discuss.elastic.co/t/elasticsearch-query-equivalent-to-ldap-search/204178/2 "2019-11-15T07:05:48Z")

</div>

Closed on November 15, 2019, 7:05am UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
