需要帮助才能让它工作,现在它说
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
用户.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
谢谢!
D