小弟我參考
http://www.shellhung.org/technical/ldapauth.html
來建立ldap server 但每次做到
# ldapsearch -LL -h [hostname] -b "dc=yourdomain,dc=com" -W -x \
-D "cn=proxyuser,dc=yourdomain,dc=com" "(uid=username)" userPassword
的時候 , 每次都是出現ldap_bind: Can't contact LDAP server的訊息,真不知該如何解決也。
我查netstat -all時結果是
tcp 0 0 *:ldap *:* LISTEN
我的環境如下
區域網路
沒有架DNS server
hosts 有設定
debian woody3.0
slapd.conf內容是
# This is the main ldapd configuration file. See slapd.conf(5) for more
# info on the configuration options.
# Schema and objectClass definitions
include /etc/ldap/schema/core.schema
include /etc/ldap/schema/cosine.schema
include /etc/ldap/schema/nis.schema
include /etc/ldap/schema/inetorgperson.schema
# Our Access Control
include /etc/ldap/slapd.acl
# Schema check allows for forcing entries to
# match schemas for their objectClasses's
schemacheck on
# Where the pid file is put. The init.d script
# will not stop the server if you change this.
pidfile /var/run/slapd.pid
# List of arguments that were passed to the server
argsfile /var/run/slapd.args
# Where to store the replica logs
replogfile /var/lib/ldap/replog
# Read slapd.conf(5) for possible values
loglevel 0
#######################################################################
# ldbm database definitions
#######################################################################
# The backend type, ldbm, is the default standard
database ldbm
# The base of your directory
suffix "dc=debian,dc=com"
# Where the database file are physically stored
directory "/var/lib/ldap"
# Indexing options
index objectClass eq
# Save the time that the entry gets modified
lastmod on
slapd.acl的內容同網路上