Difference between revisions of "PhpLDAPadmin"

From ArchWiki
Jump to: navigation, search
(restructure)
m
(4 intermediate revisions by the same user not shown)
Line 12: Line 12:
  
 
==Configuration==
 
==Configuration==
 
===PHP===
 
You need to enable the {{ic|php-ldap}} extension in PHP by editing {{ic|/etc/php/php.ini}} and uncommenting the line
 
;extension=ldap.so
 
 
Add the following to the {{ic|open_basedir}} line in {{ic|php.ini}}:
 
:/usr/share/webapps/
 
  
 
===Apache===
 
===Apache===
Copy the Apache configuration file:
+
Copy the example Apache configuration file to your Apache configuration directory:
 
  # cp /etc/webapps/phpldapadmin/apache.example.conf /etc/httpd/conf/extra/httpd-phpldapadmin.conf
 
  # cp /etc/webapps/phpldapadmin/apache.example.conf /etc/httpd/conf/extra/httpd-phpldapadmin.conf
  
 
And include it in {{ic|/etc/httpd/conf/httpd.conf}}:
 
And include it in {{ic|/etc/httpd/conf/httpd.conf}}:
  # phpldapadmin configuration
+
  # phpLDAPadmin configuration
 
  Include conf/extra/httpd-phpldapadmin.conf
 
  Include conf/extra/httpd-phpldapadmin.conf
  
 
By default, everyone can see the phpLDAPadmin page, to change this, edit {{ic|/etc/httpd/conf/extra/httpd-phpldapadmin.conf}} to your liking. For example, if you only want to be able to access it from the same machine, replace {{ic|Allow from all}} by {{ic|Allow from localhost}}.
 
By default, everyone can see the phpLDAPadmin page, to change this, edit {{ic|/etc/httpd/conf/extra/httpd-phpldapadmin.conf}} to your liking. For example, if you only want to be able to access it from the same machine, replace {{ic|Allow from all}} by {{ic|Allow from localhost}}.
  
===Optional configuration===
+
===PHP===
phpLDAPadmin's configuration file is located at {{ic|/etc/webapps/phpldapadmin/config.php}}. It should be usable without making any modifications.
+
You need to enable the {{ic|php-ldap}} extension in PHP by editing {{ic|/etc/php/php.ini}} and uncommenting the line
 +
;extension=ldap.so
  
Although not strictly neccessary you can edit {{ic|config.php}} and name your server with the line  
+
===phpLDAPadmin configuration===
 +
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.
 +
 
 +
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');
  
 
==Accessing your phpLDAPadmin installation==
 
==Accessing your phpLDAPadmin installation==
Line 40: Line 40:
 
Your phpLDAPadmin installation is now complete. Before start using it you need to restart 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
+
You can access your phpLDAPadmin installation by going to http://localhost/phpldapadmin/

Revision as of 18:26, 8 November 2013

phpLDAPadmin is an web-based LDAP adminstration interface.

Pre-Installation

See LAMP for a guide to setting up Apache, MySQL, and PHP.

Installation

Install the package phpldapadmin from the official repositories.

Configuration

Apache

Copy the example Apache configuration file to your Apache configuration directory:

# cp /etc/webapps/phpldapadmin/apache.example.conf /etc/httpd/conf/extra/httpd-phpldapadmin.conf

And include it in /etc/httpd/conf/httpd.conf:

# phpLDAPadmin configuration
Include conf/extra/httpd-phpldapadmin.conf

By default, everyone can see the phpLDAPadmin page, to change this, edit /etc/httpd/conf/extra/httpd-phpldapadmin.conf to your liking. For example, if you only want to be able to access it from the same machine, replace Allow from all by Allow from localhost.

PHP

You need to enable the php-ldap extension in PHP by editing /etc/php/php.ini and uncommenting the line

;extension=ldap.so

phpLDAPadmin configuration

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');

Accessing your phpLDAPadmin installation

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/