• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

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