- 论坛徽章:
- 0
|
我做了好久,都没有成功,什么办法都试过了,哪位高手有经验请帮帮忙,
pam_ldap与LDAP不知道配置的对不对
现在的问题是:
系统log信息:
May 22 10:04:29 fzgbsd sshd[3971]: pam_ldap: error trying to bind as user "uid=root,dc=Peoples,dc=cztmn,dc=com" (Invalid credentials)
slapd.conf如下:
include /opt/openldap/etc/openldap/schema/core.schema
include /opt/openldap/etc/openldap/schema/cosine.schema
include /opt/openldap/etc/openldap/schema/nis.schema
include /opt/openldap/etc/openldap/schema/pureftpd.schema
#include /opt/openldap/etc/openldap/schema/inetorgperson.schema
pidfile /opt/openldap/var/slapd.pid
argsfile /opt/openldap/var/slapd.args
database bdb
suffix "dc=cztmn, dc=com"
rootdn "cn=Manager, dc=cztmn, dc=com"
rootpw crypt
directory /opt/openldap/var/openldap-data
index cn,sn,uid pres,eq,approx,sub
index objectClass eq
access to *
by self write
by anonymous auth
by * read
/usr/local/etc/ldap.conf内容:
host 127.0.0.1
base dc=cztmn,dc=com
ldap_version 3
binddn cn=Manager,dc=cztmn,dc=com
bindpw crypt
rootbinddn cn=Manager,dc=cztmn,dc=com
port 389
scope sub
bind_timelimit 5
idle_timelimit 3600
pam_filter objectclass=account
pam_login_attribute uid
pam_password crypt
nss_base_passwd dc=cztmn,dc=com?sub
nss_base_group dc=cztmn,dc=com?sub
我是参考www.padl.com网站做的,哪位能指教一下,不胜感激 |
|