# Ruby on Rails and LDAP

**URL:** <https://www.ruby-forum.com/t/ruby-on-rails-and-ldap/108092>\
**Category:** Rails\
**Created:** [June 29, 2007, 12:08am UTC](https://www.ruby-forum.com/t/ruby-on-rails-and-ldap/108092 "2007-06-29T00:08:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dev](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e8c25b/32.png) [@Dev](https://www.ruby-forum.com/u/Dev)\
**Post date:** [June 29, 2007, 12:08am UTC](https://www.ruby-forum.com/t/ruby-on-rails-and-ldap/108092/1 "2007-06-29T00:08:40Z")

</div>

Hey guys,  
I’m new to both Ruby, ROR and LDAP, although not new to programming.  
I’ve been messing with Ruby for the last couple weeks and have been  
enjoying it. My setup for Ruby is Locomotive on Mac OS X. I successfully  
ran the â€œHello Worldâ€œ of ruby on rails.

I’m trying to create a small webapp which will connect to our LDAP  
server and autofill a text field when the user starts typing the name.  
(similar to the functionality in the Apple’s Mail , when a new mail is  
created and in the ‘TO’ field when I start typing the name, Mail  
connects to my LDAP to show similar names and lets me pick one).

I would appreciate if anyone gives me pointers in implementing the above  
and which LDAP libraries to use .

Thanks,  
Dev

---

<div class="post-metadata">

**Author:** ![Dev](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e8c25b/32.png) [@Dev](https://www.ruby-forum.com/u/Dev)\
**Post date:** [June 29, 2007, 12:12am UTC](https://www.ruby-forum.com/t/ruby-on-rails-and-ldap/108092/2 "2007-06-29T00:12:59Z")

</div>

Hey Dev,

We did something like this for a client a while back - http://  
[thoughtbot case studies featuring design and development projects for websites, mobile and web applications.](http://thoughtbot.com/projects/ldap-ar-gateway) - and we’ve sinced hooked it  
up to the Mac OS X addressbook as well.

Feel free to grab our code, and/or get in touch w/ Tammer (linked  
from page above).

-Matt

---

<div class="post-metadata">

**Author:** ![Dev](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e8c25b/32.png) [@Dev](https://www.ruby-forum.com/u/Dev)\
**Post date:** [June 29, 2007, 3:52pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-and-ldap/108092/3 "2007-06-29T15:52:11Z")

</div>

Matt,  
Thanks for the reply.  
But I’m not sure if thats what I am looking for. Let me just restate  
what I’m looking for:

Basically I’m trying to add Users information (who are in LDAP, just  
their email) to a table called “Groups” in MySQL.  
So in my webapp, there should be a webpage called “Add users to  
Groups”, it should have a text field and when I start entering my first  
name, it should lookup information in LDAP and bring the matching names  
and I can pick one (similar to google suggest) and then add the selected  
peson’s email address to a selected group.

Hopefully, I made myself clear.

Thanks,  
Dev
