# ActiveLDAP StartTLS connection problem

**URL:** <https://rubytalk.org/t/activeldap-starttls-connection-problem/52397>\
**Category:** ruby-talk\
**Created:** [19 March 2009 20:34 UTC](https://rubytalk.org/t/activeldap-starttls-connection-problem/52397 "2009-03-19T20:34:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Henrik\_Hodne1](https://avatars.discourse-cdn.com/v4/letter/h/59ef9b/32.png) [@Henrik\_Hodne1](https://rubytalk.org/u/Henrik_Hodne1)\
**Post date:** [19 March 2009 20:34 UTC](https://rubytalk.org/t/activeldap-starttls-connection-problem/52397/1 "2009-03-19T20:34:26Z")

</div>

Hello,

I'm having trouble using ActiveLDAP connecting using starttls. When using starttls I get ActiveLdap::ConnectionError: Giving up to reconnect with the server. I have a suspicion it doesn't use the correct certificate...

Any ideas?

Regards,  
Henrik Hodne

---

<div class="post-metadata">

**Author:** ![Kouhei\_Sutou1](https://yyz1.discourse-cdn.com/flex029/user_avatar/rubytalk.org/kouhei_sutou1/32/2034_2.png) [@Kouhei\_Sutou1](https://rubytalk.org/u/Kouhei_Sutou1)\
**Post date:** [20 March 2009 01:20 UTC](https://rubytalk.org/t/activeldap-starttls-connection-problem/52397/2 "2009-03-20T01:20:18Z")

</div>

Hi,

In \<105B5A07-2B9D-4A6F-B6CB-C8494643B586@cluenet.org\>  
&nbsp;&nbsp;"ActiveLDAP StartTLS connection problem" on Fri, 20 Mar 2009 05:34:26 +0900,

> I'm having trouble using ActiveLDAP connecting using  
> starttls. When using starttls I get  
> ActiveLdap::ConnectionError: Giving up to reconnect with the  
> server. I have a suspicion it doesn't use the correct  
> certificate...
> 
> Any ideas?

Could you show your config/ldap.yml?  
(You use ActiveLdap with Rails, don't you?)

If you use debug log level, you will get more information.

config/environment.rb:

&nbsp;&nbsp;...  
&nbsp;&nbsp;Rails::Initializer.run do |config|  
&nbsp;&nbsp;&nbsp;&nbsp;...  
&nbsp;&nbsp;&nbsp;&nbsp;config.log\_level = :debug  
&nbsp;&nbsp;&nbsp;&nbsp;...  
&nbsp;&nbsp;end  
&nbsp;&nbsp;...

Thanks,

> **···**
>
> Henrik Hodne \<dvyjones@cluenet.org\> wrote:  
> --  
> kou
