What does it do:
This plugin extends opencart to allow for integration with any LDAP-compliant authentication server, such as OpenLDAP and Microsoft ActiveDirectory, for authentication purposes.
It provides settings on the default store's admin section to enable/disable authentication with OpenLDAP.AD, and also, if enabled specify the ldap URL to the OpenLDAP/ActiveDirectory installation.
The plugin assumes that the user has been registered and has a customer profile on the opencart store and shares the same email address as what is configured in OpenLDAP/AD.
Assuming the authentication is enabled, when the user tries to log in this plugin will try to authenticate the credentials against the OpenLDAP/AD configured and if successful will allow the user to log in as normal.
If however the authentication fails against OpenLDAP/AD the user will not be able to log in.
This plugin is compatible with opencart 1.5.x.x, 2.x.x.x, 3.x.x.x, and has been tested with Microsoft ActiveDirectory and OpenLDAP.
The plugin, if enabled, relies on two settings:
a) LDAP Server URL - for example, ldap://myserver:389
b) LDAP Bind String - the Bind string that must be used. The email address provided by the user will be a part of the bind string, and represented by a special [EMAIL_ADDRESS] placeholder, for example: cn=[EMAIL_ADDRESS],ou=users,dc=test,dc=com
The following php library/module must be installed for this plugin to work:
php5-ldap or php7-ldap, depending on the version of PHP that you have installed.
How to install it
The zip file contains VQMODs for all versions of OpenCart that are supported. Please copy the contents of the folder that most closely matches your version of Opencart into the "vqmod/xml" folder. Note that mo files are overwritten and it's required to have VQMOD installed.
Supported OpenCart Versions:
- 188.8.131.52 - Port of the plugin to OpenCart 3
- 184.108.40.206 - Added support for bind strings, and also ported the plugin to version 2 of opencart
- 220.127.116.11 - initial version