{"action":"closed","issue":{"url":"https://api.github.com/repos/activeldap/activeldap/issues/122","labels_url":"https://api.github.com/repos/activeldap/activeldap/issues/122/labels{/name}","comments_url":"https://api.github.com/repos/activeldap/activeldap/issues/122/comments","events_url":"https://api.github.com/repos/activeldap/activeldap/issues/122/events","html_url":"https://github.com/activeldap/activeldap/issues/122","id":104350974,"number":122,"title":"Server crash - with activeldap + ruby-ldap + pg (postgresql) gem combinations","user":{"login":"arunkarthick","id":59977,"avatar_url":"https://avatars.githubusercontent.com/u/59977?v=3","gravatar_id":"","url":"https://api.github.com/users/arunkarthick","html_url":"https://github.com/arunkarthick","followers_url":"https://api.github.com/users/arunkarthick/followers","following_url":"https://api.github.com/users/arunkarthick/following{/other_user}","gists_url":"https://api.github.com/users/arunkarthick/gists{/gist_id}","starred_url":"https://api.github.com/users/arunkarthick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arunkarthick/subscriptions","organizations_url":"https://api.github.com/users/arunkarthick/orgs","repos_url":"https://api.github.com/users/arunkarthick/repos","events_url":"https://api.github.com/users/arunkarthick/events{/privacy}","received_events_url":"https://api.github.com/users/arunkarthick/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-01T20:44:26Z","updated_at":"2015-10-29T22:40:23Z","closed_at":"2015-10-29T22:40:23Z","body":"Whenever i use the below gem combinations for a rails application, its crashing if i try to contact an ActiveLdap child class. \r\n\r\n`gem 'pg'`\r\n`gem 'activeldap', :require => 'active_ldap'`\r\n`gem 'ruby-ldap', :require => 'ldap'`\r\n\r\nI am getting the following exception and then the server is crashed.\r\n\r\n  `LDAP: connect (353.8ms) {:uri=>\"ldap://ldapserver_hostname\", :with_start_tls=>false}\r\n  Assertion failed: (LDAP_VALID( ld )), function ldap_set_option, file options.c, line 450.\r\n  Abort trap: 6`\r\n\r\nIt looks like an issue related to ruby-ldap library,  but the temporary workaround will be changing the gem order (positions) like below (calling `'pg'` after `'activeldap'` and `'ruby-ldap'` in your Gemfile) \r\n\r\n`gem 'activeldap', :require => 'active_ldap'`\r\n`gem 'ruby-ldap', :require => 'ldap'`\r\n`gem pg`\r\n\r\nHope this helps for users who faced similiar kind of issue.\r\n"}}