phpLDAPadmin
phpLDAPadmin はウェブベースの LDAP 管理インターフェイスです。
インストール前の設定
Apache, MySQL, PHP をセットアップするガイドは LAMP を見て下さい。
インストール
公式リポジトリから phpldapadmin パッケージをインストールしてください。
設定
Apache
Apache の設定ファイルを作成:
/etc/httpd/conf/extra/phpldapadmin.conf
Alias /phpldapadmin "/usr/share/webapps/phpldapadmin"
<Directory "/usr/share/webapps/phpldapadmin">
DirectoryIndex index.php
AllowOverride All
Options FollowSymlinks
Require all granted
</Directory>
そして /etc/httpd/conf/httpd.conf にファイルを記述:
# phpLDAPadmin configuration Include conf/extra/phpldapadmin.conf
By default, everyone can see the phpLDAPadmin page, to change this, edit /etc/httpd/conf/extra/phpldapadmin.conf to your liking. For example, if you only want to be able to access it from the same machine, replace Require all granted by Require local.
PHP
/etc/php/php.ini を編集して以下の行をアンコメントすることで PHP の php-ldap 拡張を有効にする必要があります:
;extension=ldap.so
You need to make sure that PHP can access /usr/share/webapps and /etc/webapps. Add them to open_basedir in /etc/php/php.ini :
open_basedir = /srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/:/etc/webapps
phpLDAPadmin の設定
phpLDAPadmin's configuration file is located at /etc/webapps/phpldapadmin/config.php. If you have a local LDAP server, it should be usable without making any modifications.
If your LDAP server is not on the localhost, uncomment and edit the following line:
$servers->setValue('server','host','127.0.0.1');
Although not strictly necessary you can name your server by editing the following line:
$servers->setValue('server','name','My LDAP server');
phpLDAPadmin にアクセス
Your phpLDAPadmin installation is now complete. Before start using it you need to restart Apache.
You can access your phpLDAPadmin installation by going to http://localhost/phpldapadmin/