Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Active Directory howto #68

Closed
blackfist opened this issue Dec 27, 2011 · 1 comment
Closed

Active Directory howto #68

blackfist opened this issue Dec 27, 2011 · 1 comment

Comments

@blackfist
Copy link

Is anyone willing to share the ldap.yml configuration they use to authenticate against Active Directory? I have tried to configure devise_ldap_authenticatable with the same configuration that works for me in omniauth-ldap, but I am getting nowhere.

This is what I am using right now:

development:
  host: IP ADDRESS
  port: 389 
  attribute: sAMAccountName 
  base: dc=domain,dc=example,dc=com
  admin_user: cn=User\, Name,cn=Users,dc=domain,dc=example,dc=com 
  admin_password: Password
  ssl: false
  # <<: *AUTHORIZATIONS

Right now I just want to allow any user to log in. I'll worry about group membership after I get over this hurdle. Also, is there any way to put devise_ldap_authenticatable into a debug mode so I can get more detailed logging?

@blackfist
Copy link
Author

I realized the mistake that I was making. in config/initializers/devise.rb I did not set config.ldap_use_admin_to_bind = true.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant