openldap log:
Oct 14 08:36:42 mail slapd[24028]: slapd stopped.
Oct 14 08:36:42 mail slapd[24028]: connections_destroy: nothing to destroy.
注意:
OpenLDAP 的数据目录的权限设置
# chown -R _openldap:_openldap /var/openldap-data
# chmod -R 700 /var/openldap-data
# ldapsearch -x -D 'cn=Manager,dc=atyu30,dc=com' -b 'dc=atyu30,dc=com' -WEnter LDAP Password:
# extended LDIF
#
# LDAPv3
# base
with scope subtree
# filter: (objectclass=*)
# requesting: ALL
#
# search result
search: 2
result: 32 No such object
添加区域后,却查询不到
检查database directory属主及权限
# chown -R _openldap:_openldap /var/openldap-data
# chmod -R 700 /var/openldap-data
# ldapsearch -x -D 'cn=Manager,dc=atyu30,dc=com' -b 'dc=atyu30,dc=com' -W
Enter LDAP Password:
# extended LDIF
#
# LDAPv3
# base with scope subtree
# filter: (objectclass=*)
# requesting: ALL
#
# atyu30.com
dn: dc=atyu30,dc=com
objectClass: dcObject
objectClass: organization
dc: atyu30
o: atyu30
# search result
search: 2
result: 0 Success
# numResponses: 2
# numEntries: 1
至此表示添加区域成功
阅读(3023) | 评论(0) | 转发(0) |