[root@pd920 openldap]# service ldap start
正在為 slapd 檢查設定檔案: config file testing succeeded
[ 確定 ]
正在啟動 slapd: [ 確定 ]
[root@pd920 openldap]# ldapsearch -x -b "dc=ichiayi,dc=com"
# extended LDIF
#
# LDAPv3
# base <dc=ichiayi,dc=com> with scope subtree
# filter: (objectclass=*)
# requesting: ALL
#
# ichiayi.com
dn: dc=ichiayi,dc=com
dc: ichiayi
objectClass: dcObject
objectClass: organizationalUnit
ou: ichiayi Dot com
# login, ichiayi.com
dn: ou=login,dc=ichiayi,dc=com
ou: login
objectClass: organizationalUnit
# user, login, ichiayi.com
dn: ou=user,ou=login,dc=ichiayi,dc=com
ou: user
objectClass: organizationalUnit
# group, login, ichiayi.com
dn: ou=group,ou=login,dc=ichiayi,dc=com
ou: group
objectClass: organizationalUnit
# company, ichiayi.com
dn: ou=company,dc=ichiayi,dc=com
ou: company
objectClass: organizationalUnit
# unit, company, ichiayi.com
dn: ou=unit,ou=company,dc=ichiayi,dc=com
ou: unit
objectClass: organizationalUnit
# hr, unit, company, ichiayi.com
dn: ou=hr,ou=unit,ou=company,dc=ichiayi,dc=com
ou: hr
objectClass: organizationalUnit
# mis, unit, company, ichiayi.com
dn: ou=mis,ou=unit,ou=company,dc=ichiayi,dc=com
ou: mis
objectClass: organizationalUnit
# tech, unit, company, ichiayi.com
dn: ou=tech,ou=unit,ou=company,dc=ichiayi,dc=com
ou: tech
objectClass: organizationalUnit
# customer, company, ichiayi.com
dn: ou=customer,ou=company,dc=ichiayi,dc=com
ou: customer
objectClass: organizationalUnit
# search result
search: 2
result: 0 Success
# numResponses: 11
# numEntries: 10
[root@pd920 openldap]#