如果没有tls_checkpeer,pam_ldapconfiguration中的CA根证书将不起作用
系统是相同configuration的Debian Squeeze和Ubuntu Precise。 在两个发行版中,libpam-ldap的版本是184-8.5。 在/etc/pam_ldap.conf ,以下configuration一切正常。 host 10.220.100.11 base ou=companies,ou=asp,ou=sweden,dc=domain,dc=inet ldap_version 3 ssl on tls_checkpeer no binddn svc_unix_auth bindpw secret scope sub timelimit 30 pam_filter objectclass=User nss_map_attribute uid sAMAccountName pam_login_attribute sAMAccountName pam_password crypt pam_groupdn CN=Linux_Authentication,OU=Groups,OU=ourcompany,OU=Companies,OU=ASP,OU=sweden,DC=domain,DC=inet 在/etc/pam.d/common-auth ,只有一个更改为pamconfiguration。 auth [success=2 default=ignore] pam_unix.so nullok_secure auth [success=1 default=ignore] pam_ldap.so use_first_pass 第二行是为了启用ldaplogin而添加的内容。 只要我们从文件/etc/pam_ldap.conf删除tls_checkpeer no ,它就会失败,因为LDAP服务器具有自签名证书。 尝试从LDAP服务器以base64格式导出根CA证书,并将其放在/ etc / ssl […]