- 论坛徽章:
- 0
|
谢谢版主
如版主所说, 我的数据是从ldif文件直接导入的。而且是用了slapadd做的导入.我选用ldbm 是因为AS4自带的openldap 支持bdm好象有点问题.
[root@mail ~]# more ldap.example.com.ldif
# Diese Datei wurde erstellt am 2004-06-29 um 23:51:06
# von Softerra LDAP Administrator v3 [ http://www.ldapadministrator.com ]
version: 1
dn: dc=example,dc=com
objectClass: dcObject
objectClass: organization
dc: example
o: The Example Corporation
creatorsName: cn=manager,dc=example,dc=com
modifiersName: cn=manager,dc=example,dc=com
createTimestamp: 20040530141258Z
modifyTimestamp: 20040530141258Z
subschemaSubentry: cn=Subschema
[root@mail openldap]# ldapsearch -x -D "cn=Manager,dc=example,dc=com" -W -b "dc=example,dc=com" -s base "(objectclass=*)"
Enter LDAP Password:
# extended LDIF
#
# LDAPv3
# base <dc=example,dc=com> with scope base
# filter: (objectclass=*)
# requesting: ALL
#
# search result
search: 2
result: 32 No such object
# numResponses: 1
[root@mail ~]# slapd -d 256
@(#) $OpenLDAP: slapd 2.2.13 (Apr 20 2005 18:32:13) $
root@decompose.build.redhat.com:/usr/src/build/557148-i386/BUILD/openldap-2.2.13/openldap-2.2.13/build-servers/servers/slapd
bdb_initialize: Sleepycat Software: Berkeley DB 4.2.52: (December 3, 2003)
bdb_initialize: Sleepycat Software: Berkeley DB 4.2.52: (December 3, 2003)
slapd starting
conn=0 fd=8 ACCEPT from IP=127.0.0.1:32887 (IP=0.0.0.0:389)
conn=0 op=0 BIND dn="cn=Manager,dc=example,dc=com" method=128
conn=0 op=0 BIND dn="cn=Manager,dc=example,dc=com" mech=SIMPLE ssf=0
conn=0 op=0 RESULT tag=97 err=0 text=
connection_input: conn=0 deferring operation: binding
conn=0 op=1 SRCH base="dc=example,dc=com" scope=0 deref=0 filter="(objectClass=*)"
conn=0 op=1 SEARCH RESULT tag=101 err=32 nentries=0 text=
conn=0 op=2 UNBIND
conn=0 fd=8 closed
conn=1 fd=8 ACCEPT from IP=127.0.0.1:32888 (IP=0.0.0.0:389)
conn=1 op=0 BIND dn="cn=Manager,dc=example,dc=com" method=128
conn=1 op=0 BIND dn="cn=Manager,dc=example,dc=com" mech=SIMPLE ssf=0
conn=1 op=0 RESULT tag=97 err=0 text=
conn=1 op=1 SRCH base="dc=example,dc=com" scope=0 deref=0 filter="(objectClass=*)"
conn=1 op=1 SEARCH RESULT tag=101 err=32 nentries=0 text=
conn=1 op=2 UNBIND
conn=1 fd=8 closed
conn=2 fd=8 ACCEPT from IP=127.0.0.1:32889 (IP=0.0.0.0:389)
conn=2 op=0 SRCH base="ou=people,dc=example,dc=com" scope=2 deref=0 filter="(maildrop=yahoo.com)"
conn=2 op=0 SRCH attr=mail
conn=2 op=0 SEARCH RESULT tag=101 err=0 nentries=0 text=
conn=2 op=1 SRCH base="ou=people,dc=example,dc=com" scope=2 deref=0 filter="(maildrop=yahoo.com)"
conn=2 op=1 SRCH attr=mail
conn=2 op=1 SEARCH RESULT tag=101 err=0 nentries=0 text=
conn=2 op=2 SRCH base="ou=people,dc=example,dc=com" scope=2 deref=0 filter="(maildrop=example.com)"
conn=2 op=2 SRCH attr=mail
conn=2 op=2 SEARCH RESULT tag=101 err=0 nentries=0 text=
[root@mail openldap]# cat ldap.conf
#
# LDAP Defaults
#
# See ldap.conf(5) for details
# This file should be world readable but not world writable.
#BASE dc=example, dc=com
#URI ldap://ldap.example.com ldap://ldap-master.example.com:666
#SIZELIMIT 12
#TIMELIMIT 15
#DEREF never
#HOST 127.0.0.1
#URI ldap://127.0.0.1
#BASE dc=example,dc=com
#TLS_CACERTDIR /etc/openldap/cacerts |
|