Skip to content

Instantly share code, notes, and snippets.

@frozenfoxx
Created November 21, 2013 17:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save frozenfoxx/7586306 to your computer and use it in GitHub Desktop.
Save frozenfoxx/7586306 to your computer and use it in GitHub Desktop.
Started GET "/users/sign_in" for 127.0.0.1 at 2013-11-21 11:51:26 -0600
Processing by Devise::SessionsController#new as HTML
Rendered devise/sessions/_new_ldap.html.haml (3.2ms)
Rendered devise/sessions/_new_base.html.haml (5.4ms)
Rendered devise/sessions/_oauth_providers.html.haml (2.0ms)
Rendered devise/sessions/new.html.haml within layouts/devise (22.2ms)
Rendered layouts/_head.html.haml (438.0ms)
Rendered layouts/_flash.html.haml (1.9ms)
Completed 200 OK in 636ms (Views: 569.8ms | ActiveRecord: 0.0ms)
Started POST "/users/auth/ldap/callback" for 127.0.0.1 at 2013-11-21 11:51:38 -0600
Processing by OmniauthCallbacksController#failure as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"vdLbxJG3+jPt5YqBKohoIiszliKgQUqdJaw04TbIXmM=", "username"=>"tcarr@somecompany.local", "password"=>"[FILTERED]"}
Redirected to http://repo.somecompany.local/users/sign_in
Completed 302 Found in 13ms (ActiveRecord: 0.0ms)
Started GET "/users/sign_in" for 127.0.0.1 at 2013-11-21 11:51:38 -0600
Processing by Devise::SessionsController#new as HTML
Rendered devise/sessions/_new_ldap.html.haml (3.1ms)
Rendered devise/sessions/_new_base.html.haml (6.1ms)
Rendered devise/sessions/_oauth_providers.html.haml (1.9ms)
Rendered devise/sessions/new.html.haml within layouts/devise (22.4ms)
Rendered layouts/_head.html.haml (434.3ms)
Rendered layouts/_flash.html.haml (2.1ms)
Completed 200 OK in 538ms (Views: 475.5ms | ActiveRecord: 0.0ms)
@frozenfoxx
Copy link
Author

ldap:
enabled: true
host: 'myadserver.somecompany.local'
base: 'CN=Users,DC=SomeCompany,DC=Local'
port: 389
uid: 'sAMAccountName'
method: 'plain' # "ssl" or "plain"
bind_dn: 'CN=Operations LDAP,CN=Users,DC=SomeCompany,DC=local'
password: 'OperationsLdapPassString'

@frozenfoxx
Copy link
Author

From the unicorn.stdout.log:
(ldap) Callback phase initiated.
(ldap) Authentication failure! invalid_credentials encountered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment