phpLDAPadmin HowTo

The owner of the files in /usr/share/phpldapadmin/htdocs is root:root:

17180073528 -rw-r--r-- 1 root root 5.8K Oct  1  2012 index.php
12884914660 drwxr-xr-x 3 root root  326 Mar 11 12:43 js
17180470025 -rw-r--r-- 1 root root 3.6K Oct  1  2012 login_form.php
17180470024 -rw-r--r-- 1 root root  989 Oct  1  2012 login.php
17180470026 -rw-r--r-- 1 root root  642 Oct  1  2012 logout.php
17180470027 -rw-r--r-- 1 root root 5.1K Oct  1  2012 mass_delete.php
17180470028 -rw-r--r-- 1 root root 3.5K Oct  1  2012 mass_edit.php
...

Is this correct?

Yes good, I am at work, no computer right now :slight_smile:

We use pam and ldap so it should work if you can use the remote ad to nauthenticate in NS

it seems that it is httpd that it kicks you

[Thu Mar 12 10:01:59.664762 2020] [authz_core:error] [pid 26079] [client 192.168.xxx.xxx:50179] AH01630: client denied by server configuration: /usr/share/phpldapadmin/htdocs

what is the output of

[root@prometheus ~]# config show phpldapadmin
phpldapadmin=configuration
    access=public
    kamikaze=disabled
    status=enabled

what is the httpd conf

cat /etc/httpd/conf.d/phpldapadmin.conf

Nothing, just empty…

[root@srv01 ~]# cat /etc/httpd/conf.d/phpldapadmin.conf
#
#  Web-based tool for managing LDAP servers
#

# Alias /phpldapadmin /usr/share/phpldapadmin/htdocs
# Alias /ldapadmin /usr/share/phpldapadmin/htdocs

Alias /phpldapadmin /phpldapadmin/htdocs
Alias /ldapadmin /phpldapadmin/htdocs

<Directory /usr/share/phpldapadmin/htdocs>
  <IfModule mod_authz_core.c>
    # Apache 2.4
    Require local
  </IfModule>
  <IfModule !mod_authz_core.c>
    # Apache 2.2
    Order Deny,Allow
    Deny from all
    Allow from 127.0.0.1 192.168.xxx.0/24
    Allow from ::1
  </IfModule>
</Directory>

What do you mean …it cannot be empty

please

rpm -qa | grep ldapadmin

go immediately read the wiki, please RTFM :smiley:

Sorry, what do you mean. Whats wrong?

https://wiki.nethserver.org/doku.php?id=phpldapadmin

you missed I think to install nethserver-phpldapadmin

yum install nethserver-phpldapadmin --enablerepo=stephdl

1 Like

Yes, sorry for wasting your time. I just used the very first post on top…
AGN sorry, I will follow your wiki…

1 Like

Thank you !

1 Like

closed, please install from the wiki https://wiki.nethserver.org/doku.php?id=phpldapadmin

1 Like