# LDAP plugin not populating

**URL:** <https://discuss.elastic.co/t/ldap-plugin-not-populating/17092>\
**Category:** Elasticsearch\
**Created:** [April 18, 2014, 10:05pm UTC](https://discuss.elastic.co/t/ldap-plugin-not-populating/17092 "2014-04-18T22:05:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tom\_Wilson](https://avatars.discourse-cdn.com/v4/letter/t/b487fb/32.png) [@Tom\_Wilson](https://discuss.elastic.co/u/Tom_Wilson)\
**Post date:** [April 18, 2014, 10:05pm UTC](https://discuss.elastic.co/t/ldap-plugin-not-populating/17092/1 "2014-04-18T22:05:39Z")

</div>

I'm trying to set up search of LDAP objects using the ldap river plugin. I  
managed to install the plugin and set up my new river, but all searches are  
coming up empty. The elasticsearch stdout says:

[2014-04-18 15:00:16,904][INFO][river.ldap] [Silver  
Scorpion] [ldap][hpd] now, ldap river null waiting for 1m ms

Why is my ldap river "null?" Maybe someone can look at this and tell me  
what I'm doing wrong.

I am trying to index one LDAP object (objectClass=HCProfessional), which  
resides in the container ou=HCProfessional,o=testhie,dc=hpdtest

I included a list of basic attributes, and am authenticating using the  
default admin account. Here is the REST payload I sent the server

PUT [http://localhost:9200/\_river/hpd/\_meta](http://localhost:9200/_river/hpd/_meta)  
{  
"type" : "ldap",  
"ldap" : {  
"host" : "localhost",  
"port" : "10389",  
"ssl" : false,  
"userDn" : "uid=admin,ou=users,ou=system",  
"credentials" : "secret",  
"baseDn" : "ou=HCProfessional,o=testhie,dc=hpdtest",  
"filter" : "(objectClass=HCProfessional)",  
"scope" : "subtree",  
"attributes" : [  
"uid",  
"sn",  
"cn",  
"description",  
"facsimileTelephoneNumber",  
"gender",  
"givenName",  
"hcSpecialization",  
"hpdMedicalRecordsDeliveryEmail",  
"hpdProviderLanguageSupported",  
"hpdProviderMailingAddress",  
"mail",  
"telephoneNumber"  
],  
"fields" : [  
"\_id",  
"sn",  
"cn",  
"description",  
"facsimileTelephoneNumber",  
"gender",  
"givenName",  
"hcSpecialization",  
"hpdMedicalRecordsDeliveryEmail",  
"hpdProviderLanguageSupported",  
"hpdProviderMailingAddress",  
"mail",  
"telephoneNumber"  
],  
"poll" : 60000  
},  
"index" : {  
"index" : "hpd",  
"type" : "HCProfessional"  
}  
}

Now, when I send what I think is a simple search command:

GET [http://localhost:9200/hpd/\_search](http://localhost:9200/hpd/_search)

I get back this:

1. {
2. "took": 1,
3. "timed\_out": false,
4. "\_shards": {
5. "total": 5,
6. "successful": 5,
7. "failed": 0
8. },
9. "hits": {
10. "total": 0,
11. "max\_score": null,
12. "hits": []
13. }
14. }

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/5b4ee277-2eee-4100-a74c-67c858d0e907%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/5b4ee277-2eee-4100-a74c-67c858d0e907%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [July 6, 2017, 1:34am UTC](https://discuss.elastic.co/t/ldap-plugin-not-populating/17092/2 "2017-07-06T01:34:56Z")

</div>


