1: 2021-06-16 (水) 19:10:54 iseki |
現: 2021-06-29 (火) 12:30:25 iseki |
| ** phpLDAPadmin [#d263e0f0] | | ** phpLDAPadmin [#d263e0f0] |
| #br | | #br |
| + | *** CentOS8 の [[389-ds>389 Directory Server]] で使う [#b2cb6c6d] |
| + | - https://kifarunix.com/install-phpldapadmin-on-centos-8/ |
| + | #br |
| + | **** Install [#v2342461] |
| + | - defaultでは /usr/share/phpldapadmin/ に作る |
| + | |
| + | # git clone https://github.com/breisig/phpLDAPadmin.git phpldapadmin |
| + | # cd phpldapadmin/conf |
| + | # cp config.php{.example,} |
| + | # vi config.php |
| + | # ../.. |
| + | # chown -R apache.apache phpldapadmin |
| + | DocumentRoot 以下から,適当にシンボリックリンクを張る |
| + | |
| + | **** /usr/share/phpldapadmin/config/config.php [#e6f6ac7c] |
| + | $servers->setValue('server', 'name', 'NSL LDAP Server'); |
| + | $servers->setValue('server', 'host', '202.26.###.###'); |
| + | $servers->setValue('server', 'base', array('cn=config', 'dc=nsl,dc=tuis,dc=ac,dc=jp')); |
| + | |
| + | $servers->setValue('login', 'bind_id', 'cn=******'); |
| + | $servers->setValue('login', 'bind_pass', '******'); |
| + | #br |
| + | |
| + | **** サーバの動的設定 [#q69cb7c7] |
| + | - 匿名アクセスの許可:cn=config, nsslapd-allow-anonymous-access |
| + | #br |
| + | *** 構築例 [#l5b00c26] |
| + | + ou=group と ou=user を作る.ou は ''Generic: Organisational Unit'' を選択 |
| + | + ou=group の下に ''Generic: Posix Group'' でエントリを作る |
| + | + ou=user の下に ''Generic: User Account'' でエントリを作る |
| + | ++ ユーザID は一回作った後で,変更する. |
| + | #br |
| + | **** User Account のテンプレートに mail アドレスを追加 [#gc4580f7] |
| + | - /usr/share/phpldapadmin/templates/creation/posixAccount.xml に以下を追加 |
| + | <attribute id="mail"> |
| + | <display>Email</display> |
| + | <icon>mail.png</icon> |
| + | <order>10</order> |
| + | <page>1</page> |
| + | </attribute> |
| + | </attributes> |