• Categories
    Category
  • Categories
    Category
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial Comments FAQ Related Articles

How to install phpLDAPadmin on Ubuntu 17.04

2260

To install phpLDAPadmin on Ubuntu 17.04

phpLDAPadmin is a free and open source web based application used for managing LDAP servers. It was written in PHP language. Phpldapadmin can be installed on any kind of linux operating systems like redhat, centos, debian, Ubuntu, fedora, openSUSE, FreeBSD, OpenBSD and Solaris. In this tutorial, you will be briefed about the method to install phpLDAPadmin on Ubuntu 17.04.

Installing phpLDAPadmin

First, you need to install the packages for LDAP using the following command.

root@linuxhelp:~# apt-get install slapd ldap-utils -y
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libldap-2.4-2 libldap-common libodbc1
Suggested packages:
  libsasl2-modules-gssapi-mit | libsasl2-modules-gssapi-heimdal libmyodbc odbc-postgresql tdsodbc unixodbc-bin
The following NEW packages will be installed:
  ldap-utils libodbc1 slapd
The following packages will be upgraded:
  libldap-2.4-2 libldap-common
2 upgraded, 3 newly installed, 0 to remove and 290 not upgraded.
Need to get 1,694 kB/1,866 kB of archives.
After this operation, 17.1 MB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu zesty/main amd64 libodbc1 amd64 2.3.4-1 [183 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu zesty-updates/main amd64 slapd amd64 2.4.44+dfsg-3ubuntu2.1 [1,390 kB]                                                                    
Get:3 http://us.archive.ubuntu.com/ubuntu zesty-updates/main amd64 ldap-utils amd64 2.4.44+dfsg-3ubuntu2.1 [122 kB]
Fetched 1,694 kB in 15s (107 kB/s)
Preconfiguring packages ...
(Reading database ... 170562 files and directories currently installed.).
.
.
.
Processing triggers for man-db (2.7.6.1-2) ...
Setting up ldap-utils (2.4.44+dfsg-3ubuntu2.1) ...
Processing triggers for libc-bin (2.24-9ubuntu2) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for systemd (232-21ubuntu2) ...
Processing triggers for ufw (0.35-4) ...

While installing LDAP package, it will ask you to set administrator password, so create the password for admin. You should also open LDAP configuration and add some details as listed below. So open the conf file as follows.

root@linuxhelp:~# vim /etc/ldap/ldap.conf

And uncomment the below mentioned lines and change values according to your settings like domain name and ip address.

BASE    dc=example,d=com
URI    ldap://192.168.7.237:389

Now, you need to reconfigure SLAPD as follows.

root@linuxhelp:~# dpkg-reconfigure slapd
  Moving old database directory to /var/backups:
  - directory unknown... done.
  Creating initial configuration... done.
  Creating LDAP directory... done.

After that, you should follow the following steps to configure settings as shown below.

CONFIGURE

You should enter domain name now and proceed further.

Domain

And then, provide the organization name and carry on with the next step.

name

Later you need to give your admin password.

admin

ok

It will ask you if you want to remove the database, give NO.

1

Move your old database files.

package

Now you shall install your phpLDAPadmin and for that, you need to run the following command.

root@linuxhelp:~# apt-get install phpldapadmin -y
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  apache2 apache2-bin apache2-data apache2-utils libapache2-mod-php libapache2-mod-php7.0 libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap liblua5.2-0 php-common
  php-ldap php-xml php7.0-cli php7.0-common php7.0-json php7.0-ldap php7.0-opcache php7.0-readline php7.0-xml
Suggested packages:
  apache2-doc apache2-suexec-pristine | apache2-suexec-custom php-pear
The following NEW packages will be installed:
  apache2 apache2-bin apache2-data apache2-utils libapache2-mod-php libapache2-mod-php7.0 libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap liblua5.2-0 php-common
  php-ldap php-xml php7.0-cli php7.0-common php7.0-json php7.0-ldap php7.0-opcache php7.0-readline php7.0-xml phpldapadmin
0 upgraded, 22 newly installed, 0 to remove and 290 not upgraded.
Need to get 5,921 kB of archives.
After this operation, 26.2 MB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu zesty/main amd64 libapr1 amd64 1.5.2-5 [85.8 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu zesty/main amd64 libaprutil1 amd64 1.5.4-3 [77.9 kB]
.
.
.
Setting up libapache2-mod-php (1:7.0+49) ...
Processing triggers for libc-bin (2.24-9ubuntu2) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for systemd (232-21ubuntu2) ...
Processing triggers for ufw (0.35-4) ...

After your phpLDAPadmin has been installed, you need to open its configuration file and then configure it for your domain as shown below.

root@linuxhelp:~# vim /etc/phpldapadmin/config.php

$servers-> setValue(' server' ,' host' ,' 192.168.7.222' ) 
$servers-> setValue(' server' ,' base' ,array(' dc=example,dc=com' )) 
$servers-> setValue(' login' ,' bind_id' ,' cn=admin,dc=example,dc=com' ) 

Find those above lines and change the values according to your server settings.

Once it is done, you need to restart the Apache service and SLAPD service as follows.

root@linuxhelp:~# systemctl restart apache2
root@linuxhelp:~# systemctl restart slapd

Now you can access the phpLDAPadmin web console by using your IP address followed by phpLDAPadmin on your browser as shown below. Your URL must follow this syntax : http://192.168.7.237/phpldapadmin
web console

Provide Login DN and Password and click on the Login button.
login


example
With this the installation of phpLDAPadmin on Ubuntu 17.04 comes to an end.

Tags:
isaac
Author: 

Comments ( 0 )

No comments available

Add a comment

Frequently asked questions ( 5 )

Q

What is PhpLDAP?

A

phpLDAPadmin is a free and open source web-based application used for managing LDAP servers. It was written in PHP language. Phpldapadmin can be installed on any kind of Linux operating system

Q

How to Install LDAP package on Ubuntu?

A

use the following command.

# apt-get install slapd ldap-utils

Q

Is there any special tag for base-64 encoding in xml template file?

A

No, there is no special tag for base-64.

Q

Can I configure SLAPD?

A

Now, you need to reconfigure SLAPD as follows.
# dpkg-reconfigure slapd

Q

How to install phpLDAPadmin?

A

Execute the following command:
# apt-get install phpldapadmin

Related Tutorials in How to install phpLDAPadmin on Ubuntu 17.04

Related Tutorials in How to install phpLDAPadmin on Ubuntu 17.04

How to install Meld tool in Ubuntu
How to install Meld tool in Ubuntu
Feb 25, 2017
How to install Dconf-Editor on Ubuntu 18.04
How to install Dconf-Editor on Ubuntu 18.04
Jul 14, 2018
How to install and update OpenSSL on Ubuntu 16.04
How to install and update OpenSSL on Ubuntu 16.04
Mar 9, 2017
How to Upgrade and Downgrade the PHP Versions on CentOS 7.6
How to Upgrade and Downgrade the PHP Versions on CentOS 7.6
Jun 4, 2019
How to install GLib 2.0 on Ubuntu 17.04
How to install GLib 2.0 on Ubuntu 17.04
May 22, 2017
How to Install Android Emulator on Ubuntu 20.4.1
How to Install Android Emulator on Ubuntu 20.4.1
Jul 13, 2021
How To Install AnyDesk on Ubuntu 16.04
How To Install AnyDesk on Ubuntu 16.04
Apr 4, 2018
How to install Genymotion 2.12.1 on Ubuntu 18.04
How to install Genymotion 2.12.1 on Ubuntu 18.04
Jul 9, 2018

Related Forums in How to install phpLDAPadmin on Ubuntu 17.04

Related Forums in How to install phpLDAPadmin on Ubuntu 17.04

Ubuntu
matthew class=
Failed to enable unit: Refusing to operate on linked unit file sshd.service
Apr 15, 2019
Ubuntu
mason class=
Passwd: You may not view or modify password information for root On Ubuntu 19.04
May 27, 2019
Ubuntu
isaac class=
/etc/apt/sources.list Permission denied
May 18, 2017
Ubuntu
yousuf class=
lsb_release command not working : Debian
Jan 18, 2018
ifconfig command
jackbrookes class=
what is the location of the ifconfig program on your machine?
Jan 4, 2018
Ubuntu
mason class=
"E: Package 'php-mcrypt' has no installation candidate" error on Ubuntu 20.4.1
Mar 15, 2021
NFS
luke class=
clnt_create: RPC: Program not registered
Apr 25, 2017
Apache
isaac class=
How to disable apache welcome page on Ubuntu
Dec 15, 2018

Related News in How to install phpLDAPadmin on Ubuntu 17.04

Related News in How to install phpLDAPadmin on Ubuntu 17.04

How To Install Mixxx on Ubuntu 16.04
How To Install Mixxx on Ubuntu 16.04
Oct 11, 2017
Ubuntu 17.04 released with greater expectations
Ubuntu 17.04 released with greater expectations
Apr 15, 2017
Ubuntu Core now available on i.MX6 based TS-4900 thanks to Technologic Systems Inc.
Ubuntu Core now available on i.MX6 based TS-4900 thanks to Technologic Systems Inc.
Mar 1, 2017
Ubuntu 17.10 Artful Aardvark Beta 1 is now here. Download Now
Ubuntu 17.10 Artful Aardvark Beta 1 is now here. Download Now
Sep 2, 2017
Ubuntu Unity is no more: One Linux dream has been axed
Ubuntu Unity is no more: One Linux dream has been axed
Apr 7, 2017
What’s next for Ubuntu Linux Desktop?
What’s next for Ubuntu Linux Desktop?
Apr 11, 2017
Say Hi to Ubuntu's new mascot
Say Hi to Ubuntu's new mascot
Mar 22, 2019
KDE Connect App was removed from Google Play Store and brought back in 24 hours
KDE Connect App was removed from Google Play Store and brought back in 24 hours
Mar 22, 2019
Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help David Lopez Guillen ?
Ayuda urgente instale SSL para servidor Opensuse y ahora no funciona tengo servicio web

hola segui este tutorial para tener un certificado ssl y ahora no se ve mi app en la red, espero alguien pueda ayudarme, tengo M9oodle en3.5 en un servidor open suse y ahora no funciona por favor ayuda.

https://www.linuxhelp.com/how-to-create-ssl-certificate-in-opensuse

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.