LoginSignup
11
10

More than 5 years have passed since last update.

【LDAP環境構築:2】 ベースLDIFファイル作成から登録まで

Posted at
LDAP サーバーへのデータの登録
ベースLDIFファイルの作成
vi /etc/openldap/tmp/base.ldif
#-----------------------------------------------------------
# Domain
#-----------------------------------------------------------
dn: dc=example,dc=com
objectClass: dcObject
objectClass: organization
dc: example
o: Example Inc.

#-----------------------------------------------------------
# Manager (管理者エントリ)
#-----------------------------------------------------------
dn: cn=Manager,dc=example,dc=com
objectClass: organizationalRole
cn: Manager
description: Directory Manager

#-----------------------------------------------------------
# People (ユーザーエントリ)
#-----------------------------------------------------------
dn: ou=People,dc=example,dc=com
objectClass: organizationalUnit
ou: People

#-----------------------------------------------------------
# Group (グループエントリ)
#-----------------------------------------------------------
dn: ou=Group,dc=example,dc=com
objectClass: organizationalUnit
ou: Group
ベースLDIFファイルを登録する
ldapadd -x -D "cn=Manager,dc=example,dc=com" -W -f /etc/openldap/tmp/base.ldif
adding new entry "dc=example,dc=com"

adding new entry "cn=Manager,dc=example,dc=com"

adding new entry "ou=People,dc=example,dc=com"

adding new entry "ou=Group,dc=example,dc=com"
11
10
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
11
10