设置LDAP登录非常容易,我可以使用以下方法.
yum -y install openldap-clients nss-pam-ldapd git
Basic Configuration
authconfig --enableldap \
--enableldapauth \
--ldapserver={ldap.domain.com,192.168.1.255} \
--ldapbasedn="dc=domain,dc=com" \
--enablemkhomedir \
--update
但是我不能让LDAP组限制工作,这是最重要的,我不希望整个公司都能访问,就像5个人一样。我正在使用CentOS 7完全更新。
发布于 2016-12-25 04:31:33
在sssd.conf中,在正确的域中添加ldap_access_filter。例如:
access_provider = ldap
ldap_access_filter = memberOf=cn=Group Name,ou=Groups,dc=example,dc=com
https://unix.stackexchange.com/questions/332578
复制相似问题