我已经在机子上安装了openldap,slapd.conf的配置如下:
#######################################################################
# BDB database definitions
#######################################################################databasebdb
suffix"dc=china,dc=com"
rootdn"cn=root,dc=china,dc=com"
# Cleartext passwords, especially for the rootdn, should
# be avoid.  See slappasswd(8) and slapd.conf(5) for details.
# Use of strong authentication encouraged.
rootpwsecret
# The database directory MUST exist prior to running slapd AND 
# should only be accessible by the slapd and slap tools.
# Mode 700 recommended.
directory./data
# Indices to maintain
indexobjectClasseqldap启动正常
程序ldap_connect,ldap_bind运行也都没有问题。但运行到
ldap_search($ds,"","")页面就报了Warning: ldap_search() [function.ldap-search]: Search: No such object 
是不是没有定义classobject,如何定义啊,请高手们详细解说一下吧。初次接触ldap,网上关于这方面的详细解决也实在太少,实在头痛啊!
非常感谢!