phpLDAPadmin - ArchWiki

Jump to content

# phpLDAPadmin

From ArchWiki

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

This article or section is out of date.

Reason: phpldapadmin-2 uses systemd service (Discuss in Talk:PhpLDAPadmin)

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

This article or section is out of date.

Reason: phpldapadmin-2 now uses .env file, see wiki (Discuss in Talk: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');

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

Category:

- Web admin interfaces

Hidden category:

- Pages or sections flagged with Template:Out of date

phpLDAPadmin
Add topic