{"issue":{"created_at":"2011-12-14T20:45:23Z","state":"open","updated_at":"2011-12-14T21:33:40Z","user":{"gravatar_id":"c87e4b0183b191844a3c970979f091e1","id":1263979,"url":"https://api.github.com/users/dauerbach","login":"dauerbach","avatar_url":"https://secure.gravatar.com/avatar/c87e4b0183b191844a3c970979f091e1?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"comments":2,"body":"I am trying to setup a simple rails 3.1 app with omniauth/ldap authentication. I have the following in my code:\r\n\r\nin application.rb added:\r\nrequire 'omniauth'\r\nuse OmniAuth::Strategies::LDAP, \r\n        :title => 'My LDAP AUTH', \r\n        :host => 'myhostname', \r\n        :port => 389, \r\n        :method => :plain, \r\n        :base => 'dc=hostnamepart1, dc=hostnamepart2, dc=edu',\r\n        :try_sasl => false,\r\n        :uid => 'uid',\r\n        :bind_dn => \"anonymous\",\r\n        :password => \"let me in please\"\r\n\r\nNote: when aI try to require 'omniauth-ldap' I get a load error. Same for require 'omniauth/ldap'.\r\n\r\nin Gemfile added:\r\ngem 'omniauth', '~> 1.0.1'\r\ngem 'omniauth-ldap', '~> 1.0.1'\r\n\r\n(both gems are installed)\r\n\r\nI must be missing something,but I don't know what.\r\n\r\nWhen I start the server (in development mode) I get the following error in application.rb:\r\n\r\n/Users/dauerbach/Dev/rails31apps/dodrc_photo_review/config/application.rb:17: uninitialized constant OmniAuth::Strategies::LDAP (NameError)\r\n\r\n\r\nAny help MUCH appreciated...\r\ndan\r\n","assignee":null,"id":2557978,"labels":[],"number":6,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"title":"uninitialized constant OmniAuth::Strategies::LDAP","html_url":"https://github.com/intridea/omniauth-ldap/issues/6","closed_at":null,"url":"https://api.github.com/repos/intridea/omniauth-ldap/issues/6","milestone":null},"action":"created","comment":{"created_at":"2011-12-14T21:33:40Z","updated_at":"2011-12-14T21:33:40Z","user":{"gravatar_id":"c87e4b0183b191844a3c970979f091e1","id":1263979,"url":"https://api.github.com/users/dauerbach","login":"dauerbach","avatar_url":"https://secure.gravatar.com/avatar/c87e4b0183b191844a3c970979f091e1?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"thanks... I'll try that. Did you revert omniauth to 1.0.0 also?","id":3150471,"url":"https://api.github.com/repos/intridea/omniauth-ldap/issues/comments/3150471"}}