1
我一直在嘗試在Ubuntu 14上使用以下指令安裝LDAP服務器:https://help.ubuntu.com/lts/serverguide/openldap-server.html。Ubuntu上的LDAP服務器安裝問題
根據URL,如果我想DC =例如,DC = com的後綴,我應該有這樣一行:
127.0.1.1 hostname.example.com hostname
在我的/ etc/hosts中
。 ,
127.0.1.1 localhost.example.com localhost
現在,當我安裝使用
$ sudo apt-get install slapd ldap-utils
它要求管理員密碼,並安裝成功:我添加了這樣一行。
但是,當我運行的ldapsearch這樣的:
$ldapsearch -x -LLL -H ldap:/// -b dc=example,dc=com dn
它返回我的留言:
No such object(32)
而不是按照文章如下:
dn: dc=example,dc=com
dn: cn=admin,dc=example,dc=com
我不確定發生了什麼問題。