「OpenLDAP」:修訂間差異
跳至導覽
跳至搜尋
本頁面具有訪問限制。如果您看見此訊息,這代表您沒有訪問本頁面的權限。
(→外部連結) |
(→安裝) |
||
行 5: | 行 5: | ||
<syntaxhighlight lang="shell-session"> | <syntaxhighlight lang="shell-session"> | ||
# apt install slapd | # apt install slapd | ||
</syntaxhighlight> | |||
== 設定 == | |||
Ubuntu 16.04內的版本預設會使用目錄結構設定檔(預設讀取<code>/etc/ldap/slapd.d/</code>整個目錄),但這跟網路上一般使用單檔設定不同(通常會是<code>/etc/ldap/slapd.conf</code>),所以我們要告知slapd使用檔案設定檔。 | |||
這要修改<code>/etc/default/slapd</code>的內容,將<code>SLAPD_CONF</code>參數從空的值改為<code>/etc/ldap/slapd.conf</code>: | |||
<syntaxhighlight lang="bash"> | |||
# Default location of the slapd.conf file or slapd.d cn=config directory. If | |||
# empty, use the compiled-in default (/etc/ldap/slapd.d with a fallback to | |||
# /etc/ldap/slapd.conf). | |||
SLAPD_CONF=/etc/ldap/slapd.conf | |||
</syntaxhighlight> | </syntaxhighlight> | ||
於 2018年3月29日 (四) 08:38 的修訂
OpenLDAP是一套LDAP伺服器軟體。
安裝
由於OpenLDAP 2.4在2007年十月發行,至今只有一直發行minor release,所以通常都可以透過系統的套件裝到合理的版本:
# apt install slapd
設定
Ubuntu 16.04內的版本預設會使用目錄結構設定檔(預設讀取/etc/ldap/slapd.d/
整個目錄),但這跟網路上一般使用單檔設定不同(通常會是/etc/ldap/slapd.conf
),所以我們要告知slapd使用檔案設定檔。
這要修改/etc/default/slapd
的內容,將SLAPD_CONF
參數從空的值改為/etc/ldap/slapd.conf
:
# Default location of the slapd.conf file or slapd.d cn=config directory. If
# empty, use the compiled-in default (/etc/ldap/slapd.d with a fallback to
# /etc/ldap/slapd.conf).
SLAPD_CONF=/etc/ldap/slapd.conf