[英]LDAP Authentication for Ruby on Rails , using Devise
需要幫助使其正常運行,現在它說
Completed 401 Unauthorized in 1ms
感謝任何建議
ldap.yml
authorizations: &AUTHORIZATIONS
## Authorization
group_base: : ou=Group, dc=company, dc=com
required_groups:
- cn=proxyagent,ou=profile,dc=company,dc=com
require_attribute:
obectclass=*
authorizationRole: memberuid
attribute: cn
development:
host: ldap-33.company.com
port: 389
attribute: uid
base: ou=People,dc=company,dc=com; ou=People, ou=mcdata,dc=company,dc=com
admin_user: cn=proxyagent,ou=profile,dc=company,dc=com
admin_password: welcome
ssl: true
<<: *AUTHORIZATIONS
user.rb
class User < ActiveRecord::Base
devise :ldap_authenticatable,:rememberable, :trackable
請告訴我我錯了,Splunk的正確設置是:
Host: ldap-33.company.com
Port: 389
Bind DN: cn=proxyagent,ou=profile,dc=company,dc=com
Bind DB Pass: welcome
User base DN:ou=People,dc=company,dc=com; ou=People, ou=mcdata,dc=company,dc=com
User base filter: (objectclass=person)
User name attribute: uid
Real Name attribute: cn
Group mapping attribute: uid
Group settings:
Group base DN: ou=Group, dc=company, dc=com
Group base filter: (obectclass=*)
Group name attribute: cn
Group member attribute: memberuid
謝謝!
ð
在主機替換中
ldap-33.company.com
到ldap://33.company.com
或ldap.33.company.com
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.