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