Install and Setup phpLDAPadmin On Ubuntu 20.04
Install and Setup phpLDAPadmin On Ubuntu 20.04
Install phpLDAPadmin on
Ubuntu 20.04
phpLDAPadmin is available on Ubuntu
20.04 repos;
Package: phpldapadmin
Version: 1.2.2-6.3
Priority: extra
Section: universe/admin
Origin: Ubuntu
Maintainer: Ubuntu Developers
ubuntu-devel-
[email protected]
Original-Maintainer: Fabio
Tranchitella
[email protected]
Bugs:
https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 4,686 kB
Depends: php, php-ldap, php-
xml, ucf (>= 0.28), debconf
(>= 0.5) | debconf-2.0
Download-Size: 719 kB
APT-Sources:
http://us.archive.ubuntu.com/ubuntu
focal/universe amd64
Packages
Configuring phpLDAPadmin
on Ubuntu 20.04
The default configuration file for
phpLDAPadmin is
/etc/phpldapadmin/config.php .
This is the file that we are going to edit to
make our configuration changes as per
LDAP server settings.
vim
/etc/phpldapadmin/config.php
/*********************************************
*********************************************/
...
...
/* A convenient name that
will appear in the tree
viewer and throughout
phpLDAPadmin to identify
this LDAP server to users. */
$servers-
>setValue('server','name','Kifarunix-
demo LDAP Server');
...
$servers-
>setValue('server','host','ldap.kifarunix-
demo.com');
$servers-
>setValue('login','auth_type','session');
$servers-
>setValue('login','bind_id','cn=admin,dc=kifar
demo,dc=com');
$servers-
>setValue('login','attr','dn');
a2dissite 000-default.conf
Restart Apache;
Accessing phpLDAPadmin
on Browser
You can access phpLDAPadmin using the
address, http://server-IP-or-
Hostname/phpldapadmin .
Click login to login to you phpLDAPadmin
web user interface. Since we already
defined the admin Bind DN, simply enter
the password and login;
slappasswd
sed -i '/<value
id="\/bin\/tsh">\/bin\/tsh<\
/value>/a \\t<value
id="/bin/bash">\/bin\/bash<\
/value>'
/etc/phpldapadmin/templates/
creation/posixAccount.xml
ldapsearch -H ldapi:/// -Y
EXTERNAL -b "dc=kifarunix-
demo,dc=com" "(&
(objectclass=posixAccount)
(uid=janedoe))" -LLL -Q
dn:
cn=janedoe,ou=people,dc=kifarunix-
demo,dc=com
cn: janedoe
givenName: Jane
gidNumber: 10001
homeDirectory: /home/janedoe
sn: Doe
loginShell: /bin/bash
objectClass: inetOrgPerson
objectClass: posixAccount
objectClass: top
uidNumber: 10001
uid: janedoe
userPassword::
e1NTSEF9Y1VNNWx1UWM0Sjl5WlhnZWJZTHkwMjRhTmszdl
ldapsearch -H ldapi:/// -Y
EXTERNAL -b "dc=kifarunix-
demo,dc=com" "(&
(objectclass=posixGroup)
(cn=janedoe))" -LLL -Q
dn:
cn=janedoe,ou=groups,dc=kifarunix-
demo,dc=com
gidNumber: 10001
cn: janedoe
objectClass: posixGroup
objectClass: top
Related Tutorials
Install phpLDAPadmin on CentOS 8
Ubuntu 20.04
gen_too
https://kifarunix.com/
RELATED ARTICLES
How To Safely
Download And Watch
Movies
koromicha -
September 17, 2021
Install ClamAV on
Debian 11
koromicha -
September 14, 2021
Do You Own An
Online Business?
Hereʼs How To
Monitor Your...
koromicha -
September 12, 2021
Install Guacamole on
Debian 11
koromicha -
September 11, 2021
1 COMMENT
LEAVE A REPLY
Comment:
Name:*
Email:*
Website:
POST COMMENT
ABOUT US
FOLLOW US