# ActiveLDAP StartTLS connection problem

**URL:** <https://www.ruby-forum.com/t/activeldap-starttls-connection-problem/163392>\
**Category:** Ruby\
**Created:** [March 19, 2009, 9:37pm UTC](https://www.ruby-forum.com/t/activeldap-starttls-connection-problem/163392 "2009-03-19T21:37:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![groogy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/47e85d/32.png) [@groogy](https://www.ruby-forum.com/u/groogy)\
**Post date:** [March 19, 2009, 9:37pm UTC](https://www.ruby-forum.com/t/activeldap-starttls-connection-problem/163392/1 "2009-03-19T21:37:44Z")

</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 H.

---

<div class="post-metadata">

**Author:** ![groogy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/47e85d/32.png) [@groogy](https://www.ruby-forum.com/u/groogy)\
**Post date:** [March 20, 2009, 2:23am UTC](https://www.ruby-forum.com/t/activeldap-starttls-connection-problem/163392/2 "2009-03-20T02:23:32Z")

</div>

Hi,

In [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
“ActiveLDAP StartTLS connection problem” on Fri, 20 Mar 2009 05:34:26  
+0900,  
Henrik H. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> 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:

…  
Rails::Initializer.run do |config|  
…  
config.log\_level = :debug  
…  
end  
…

Thanks,
