Ubuntu 23.04 OpenLDAP をインストールする手順
環境
# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 23.04
Release: 23.04
Codename: lunar
# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 23.04
Release: 23.04
Codename: lunar
# lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 23.04 Release: 23.04 Codename: lunar
openldapのインストール手順
1.OpenLDAP をインストールします
# apt -y install slapd ldap-utils
l---------------------------slapd を設定しています--------------------------
x あなたの LDAP ディレクトリでの管理者エントリのパスワードを入力してくださ x
x い。 x
x x
x 管理者のパスワード: x
x x
x _________________________________________________________________________ x
x x
x <了解>
l---------------------------slapd を設定しています--------------------------
x あなたの LDAP ディレクトリでの管理者エントリのパスワードを入力してくださ x
x い。 x
x x
x 管理者のパスワード: x
x x
x _________________________________________________________________________ x
x x
x <了解>
l---------------------------slapd を設定しています-------------------------- x あなたの LDAP ディレクトリでの管理者エントリのパスワードを入力してくださ x x い。 x x x x 管理者のパスワード: x x x x _________________________________________________________________________ x x x x <了解>
インストール中、LDAP サーバーの管理者パスワードの設定を求められます。
2.openldapの設定を確認する
# slapcat
# slapcat
# slapcat
3.ユーザーとグループ用の組織単位を新規登録します。
# 新規作成
# [dc=cft,dc=arkgame] の箇所は自身の suffix に置き換え
dn: ou=people,dc=cft,dc=arkgame
objectClass: organizationalUnit
ou: people
dn: ou=groups,dc=cft,dc=arkgame
objectClass: organizationalUnit
ou: groups
# 新規作成
# [dc=cft,dc=arkgame] の箇所は自身の suffix に置き換え
dn: ou=people,dc=cft,dc=arkgame
objectClass: organizationalUnit
ou: people
dn: ou=groups,dc=cft,dc=arkgame
objectClass: organizationalUnit
ou: groups
# 新規作成 # [dc=cft,dc=arkgame] の箇所は自身の suffix に置き換え dn: ou=people,dc=cft,dc=arkgame objectClass: organizationalUnit ou: people dn: ou=groups,dc=cft,dc=arkgame objectClass: organizationalUnit ou: groups
# ldapadd -x -D cn=admin,dc=cft,dc=arkgame -W -f base.ldif
Enter LDAP Password: # 管理者パスワード(インストール中に設定したパスワード)