ruby on rails 3 - Devise ldap authenticatable returns 401 error -
ruby on rails 3 - Devise ldap authenticatable returns 401 error -
i making application in rails in user needs log-in first see content. used devise , ldap_devise_authenticatable create user log-in through existing ldap account.
however, when tried log in business relationship application log-in failure occurs(401 error unauthorized) though have business relationship on ldap.
i next this tutorial
and next screenshot of ldap server page:
i know problem in ldap configuration file. how can configure application send right string ldap server in above screenshot
code of ldap.yml follows:
authorizations: &authorizations group_base: ou=groups,dc=test,dc=com required_groups: - cn=admins,ou=groups,dc=test,dc=com - cn=users,ou=groups,dc=test,dc=com - ["moremembers", "cn=users,ou=groups,dc=test,dc=com"] require_attribute: objectclass: inetorgperson authorizationrole: postsadmin ## environment development: host: 172.16.100.6 port: 389 attribute: cn base: ou=people,dc=iitj,dc=ac,dc=in #admin_user: cn=admin,dc=test,dc=com #admin_password: admin_password ssl: false
have tried setting attribute: samaccountname? need set admin_ser , admin_password match credentials of business relationship have in ldap.
ruby-on-rails-3 devise ldap
Comments
Post a Comment