# AD over SSL using Net/LDAP?

**URL:** <https://rubytalk.org/t/ad-over-ssl-using-net-ldap/37513>\
**Category:** ruby-talk\
**Created:** [10 May 2007 23:00 UTC](https://rubytalk.org/t/ad-over-ssl-using-net-ldap/37513 "2007-05-10T23:00:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amos](https://avatars.discourse-cdn.com/v4/letter/a/ebca7d/32.png) [@Amos](https://rubytalk.org/u/Amos)\
**Post date:** [10 May 2007 23:00 UTC](https://rubytalk.org/t/ad-over-ssl-using-net-ldap/37513/1 "2007-05-10T23:00:05Z")

</div>

Has anybody gotten Net/LDAP (0.4) to work with AD over SSL? I can  
connect without SSL, but not able to connect with SSL even though nmap  
shows that port 636 is listening. In fact I can connect using openssl,  
which reveals it's a self-signed cert.

---

<div class="post-metadata">

**Author:** ![Francis\_Cianfrocca](https://avatars.discourse-cdn.com/v4/letter/f/7bcc69/32.png) [@Francis\_Cianfrocca](https://rubytalk.org/u/Francis_Cianfrocca)\
**Post date:** [14 May 2007 11:33 UTC](https://rubytalk.org/t/ad-over-ssl-using-net-ldap/37513/2 "2007-05-14T11:33:14Z")

</div>

At least one of my commercial clients has done exactly this. Are you sending  
the correct encryption parameters to Net::LDAP#new/#open? Also, if you get  
the head revision of Net::LDAP from rubyforge, you'll find that  
Kouhei Sutou has added support for the LDAP STARTTLS verb (documentation is  
in the rdoc). This of course eliminates the need for a separate port.

> **···**
>
> On 5/10/07, Amos \<a.goo0h@gmail.com\> wrote:
> 
> > Has anybody gotten Net/LDAP (0.4) to work with AD over SSL? I can  
> > connect without SSL, but not able to connect with SSL even though nmap  
> > shows that port 636 is listening. In fact I can connect using openssl,  
> > which reveals it's a self-signed cert.
