• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

Enabling LDAP in php on Linux Plesk

IanMansfield

New Pleskian
I am attempting to enable LDAP capabilities in php, but the Plesk box was chosen by my employer and is a bit new to me.

(tests generate "Call to undefined function ldap_connect" as an error message in a php file)

Before I go too far down a bad route, it would seem that I might be able to enable it simply by:

yum install php-ldap
vi /etc/php.ini
add extension=ldap.so
service httpd restart

...or do I need to reinstall PHP (which I am trying to avoid as this is now a live server)?

Thanks
 
Hi IanMansfield,

I wonder why you would like to re-install php... anyway... depending on your installation on your server, php-ldap is installed or not installed. Your example shows the correct way for CentOS/RHEL - based systems to install this extension.

But since you are using Plesk, you might like the idea to add the free Plesk Extension "LDAP Auth", which adds "Authentication via LDAP" as well for Plesk.
 
I am trying to avoid reinstalling php to enable ldap if possible, as it is something I would not "like" to do. However, testing shows that ldap is not enabled/installed as far as I can tell.

As I understand it, the plesk extension relates only to plesk logins, and I want to use ldap for user logins on a website hosted on the server.
 
Back
Top