
我試圖在 Ubuntu 上乾淨的 OpenLDAP 安裝上配置預設目錄樹(apt-get install slapd)。
我找到了 /usr/share/slapd/slapd.conf 並打算更改後綴設置,並注意到正在進行某種令牌替換 - @SUFFIX@ 和 @BACKEND@。
這些令牌如何被替換 - 提供的值在哪裡?
答案1
slapd.conf
在這種情況下沒有被使用。相反,配置 (OLC) 後端正在cn=config
.
更改預設 DIT 根最簡單的方法是重新運行配置:
sudo dpkg-reconfigure slapd
然後以不同的方式回答“域”問題。清除舊的 LDAP 內容並重新啟動 slapd 後,我得到了從 dc=nodomain 到 dc=whatever 的更改。