# LDAP support for ROM

**URL:** <https://discourse.rom-rb.org/t/ldap-support-for-rom/384>\
**Category:** Uncategorized\
**Created:** [July 20, 2020, 1:08pm UTC](https://discourse.rom-rb.org/t/ldap-support-for-rom/384 "2020-07-20T13:08:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![abhas](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.rom-rb.org/abhas/32/198_2.png) [@abhas](https://discourse.rom-rb.org/u/abhas)\
**Post date:** [July 20, 2020, 1:08pm UTC](https://discourse.rom-rb.org/t/ldap-support-for-rom/384/1 "2020-07-20T13:08:21Z")

</div>

Dear ROM community,

I just discovered ROM a few minutes back and I already find the whole idea of ROM extremely sensible and useful. I would like to build LDAP support for it so that I can use ROM with OpenLDAP. I currently use ActiveLDAP with Rails and find it insufficient to do what I need to do.

Any pointers on how to get started with this will be great… I would love to build and contribute LDAP backend support to ROM, if I could.

Cheers, Abhas.

---

<div class="post-metadata">

**Author:** ![solnic](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.rom-rb.org/solnic/32/279_2.png) [@solnic](https://discourse.rom-rb.org/u/solnic)\
**Post date:** [July 21, 2020, 8:45am UTC](https://discourse.rom-rb.org/t/ldap-support-for-rom/384/2 "2020-07-21T08:45:20Z")

</div>

Hey,

It should be relatively easy to build an LDAP adapter. You could check out our official [“how to build an adapter”](https://rom-rb.org/guides/adapters/how-to-build-an-adapter/) guide. Once you understand the basic concepts, the simplest way would be to clone an existing adapter and tweak it to use LDAP. I typically recommend rom-elasticsearch because it’s up-to-date with latest rom and it’s not as complex as rom-sql but it already uses some advanced rom features. It should be a good starting point.

Feel free to ask any questions you may have here 😄

---

<div class="post-metadata">

**Author:** ![pdh](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.rom-rb.org/pdh/32/225_2.png) [@pdh](https://discourse.rom-rb.org/u/pdh)\
**Post date:** [April 14, 2021, 8:03pm UTC](https://discourse.rom-rb.org/t/ldap-support-for-rom/384/3 "2021-04-14T20:03:19Z")

</div>

Hi Abhas,

I came to the same conclusion. Check out this [stream](https://rom-rb.zulipchat.com/#narrow/stream/191800-general/topic/rom-ldap) and this [code](https://gitlab.com/peterdavidhamilton/rom-ldap). I’d love to get your feedback and identify any improvements.

Peter

---

<div class="post-metadata">

**Author:** ![solnic](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.rom-rb.org/solnic/32/279_2.png) [@solnic](https://discourse.rom-rb.org/u/solnic)\
**Post date:** [April 19, 2021, 12:46pm UTC](https://discourse.rom-rb.org/t/ldap-support-for-rom/384/4 "2021-04-19T12:46:08Z")

</div>

BTW I did not forget about your adapter and I’ll eventually add a link to it to [rom-rb.org](http://rom-rb.org) 😅
