• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

LDAP support for PHP on Plesk

D

DavidSeren

Guest
Hi Plesk Forum,

I've tried searching for hours today but am yet to find an answer of how to enable ldap for php on Plesk. I simply want to connect to Active directory to authenticate users for a client website. I have read all sorts of suggestions, and the PHP documentation calls for recompiliing with LDAP support enabled. This is dedicated server supplied by 1and1 so I am somewhat limited with what I can do.

I can't seem to find anything available online that gives me anything clear to follow.

Can anyone help me please?!

Thanks!
 
Plesk doesn’t ship client’s PHP, it only downloads it from original OS vendor repo. Therefore if vendor's PHP has LDAP support - you can use it. I have checked on my test environment and I see:

# php -i | grep -i with-ldap
Configure Command => './configure' '--build=x86_64-redhat-linux-gnu' '--host=x86_64-redhat-linux-gnu'
.......
'--with-ldap=shared' '--with-ldap-sasl'

# rpm -qi php | grep Vendor
Version : 5.1.6 Vendor: CentOS

# cat /etc/redhat-release
CentOS release 5.6 (Final)
 
Back
Top