phpLDAPadmin

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 phpldapadmin package.

Configuration

Apache

Create the Apache configuration file:

/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>

And include it in /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

You need to enable the ldap and gettext extensions in PHP by editing /etc/php/php.ini and uncommenting the following lines:

extension=ldap
extension=gettext

You need to make sure that PHP can access /usr/share/webapps and . Add them to in /etc/php/php.ini :

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

phpLDAPadmin configuration

phpLDAPadmin's configuration file is located at . 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/

gollark: No, I mean that they probably won't pay it back immediately at least some of the time.
gollark: Thusly you may need to actually be specific.
gollark: In most cases you'll presumably be lending them money with a significant payback time, or they would just wait a bit to buy thing.
gollark: Well, if they do intend to pay back things, it shouldn't really matter. An actual legal document might be hard, but a less formal one just setting out terms is easy.
gollark: Orbital lawsuit lasers or disown them entirely.
This article is issued from Archlinux. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.