コンテンツにスキップ

「PhpLDAPadmin」の版間の差分

提供: ArchWiki
削除された内容 追加された内容
ページの作成:「Category:ウェブサーバー en:phpLDAPadmin {{lowercase title}} [http://phpldapadmin.sourceforge.net/ phpLDAPadmin] はウェブベースの LDAP 管理イ...」
 
編集の要約なし
30行目: 30行目:
Include conf/extra/phpldapadmin.conf
Include conf/extra/phpldapadmin.conf


By default, everyone can see the phpLDAPadmin page, to change this, edit {{ic|/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 {{ic|Require all granted}} by {{ic|Require local}}.
デフォルトでは、誰でも phpLDAPadmin ページを見れるようになっています。これを変更したいときは、{ic|/etc/httpd/conf/extra/phpldapadmin.conf}} を好きなように編集してください。例えば、同一マシンからしかアクセスできないようにしたい場合、{{ic|Require all granted}} {{ic|Require local}} に置き換えてください。


===PHP===
===PHP===
36行目: 36行目:
;extension=ldap.so
;extension=ldap.so


You need to make sure that PHP can access {{ic|/usr/share/webapps}} and {{ic|/etc/webapps}}. Add them to {{ic|open_basedir}} in {{ic|/etc/php/php.ini}} :
PHP {{ic|/usr/share/webapps}} {{ic|/etc/webapps}} にアクセスできるようにしてください。以下を {{ic|/etc/php/php.ini}} {{ic|open_basedir}} に追加してください:
open_basedir = /srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/:/etc/webapps
open_basedir = /srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/:/etc/webapps


===phpLDAPadmin の設定===
===phpLDAPadmin の設定===
phpLDAPadmin's configuration file is located at {{ic|/etc/webapps/phpldapadmin/config.php}}. If you have a local LDAP server, it should be usable without making any modifications.
phpLDAPadmin の設定ファイルは {{ic|/etc/webapps/phpldapadmin/config.php}} にあります。ローカル LDAP サーバーを動かしている場合、何も変更しなくても使用できるはずです。


LDAP サーバーが localhost 上にない場合、以下の行をアンコメントして編集してください:
If your LDAP server is not on the localhost, uncomment and edit the following line:
$servers->setValue('server','host','127.0.0.1');
$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');
$servers->setValue('server','name','My LDAP server');


==phpLDAPadmin にアクセス==
==phpLDAPadmin にアクセス==


phpLDAPadmin のインストールが完了したら、使いはじめる前に Apache を再起動してください。
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/
phpLDAPadmin には http://localhost/phpldapadmin/ からアクセスできます。

2015年3月24日 (火) 20:00時点における版

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

デフォルトでは、誰でも phpLDAPadmin ページを見れるようになっています。これを変更したいときは、{ic|/etc/httpd/conf/extra/phpldapadmin.conf}} を好きなように編集してください。例えば、同一マシンからしかアクセスできないようにしたい場合、Require all grantedRequire local に置き換えてください。

PHP

/etc/php/php.ini を編集して以下の行をアンコメントすることで PHP の php-ldap 拡張を有効にする必要があります:

;extension=ldap.so

PHP が /usr/share/webapps/etc/webapps にアクセスできるようにしてください。以下を /etc/php/php.iniopen_basedir に追加してください:

open_basedir = /srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/:/etc/webapps

phpLDAPadmin の設定

phpLDAPadmin の設定ファイルは /etc/webapps/phpldapadmin/config.php にあります。ローカル LDAP サーバーを動かしている場合、何も変更しなくても使用できるはずです。

LDAP サーバーが localhost 上にない場合、以下の行をアンコメントして編集してください:

$servers->setValue('server','host','127.0.0.1');

絶対に必要というわけではありませんが、以下の行を編集することでサーバーに名前を付けることができます:

$servers->setValue('server','name','My LDAP server');

phpLDAPadmin にアクセス

phpLDAPadmin のインストールが完了したら、使いはじめる前に Apache を再起動してください。

phpLDAPadmin には http://localhost/phpldapadmin/ からアクセスできます。