I am receiving an error configuring settings for the Authentication :: LDAP and Active Directory plugin.  My configuration is as follows:Ubuntu 18.04.1 LTS (GNU/Linux 4.15.0-33-generic x86_64)OSTicket v1.10.4 (035fd0a)Apache/2.4.29 (Ubuntu)MySQL Version 5.7.23PHP Version 7.2.8-1+ubuntu18.04.1+deb.sury.org+1Authentication :: LDAP and Active Directory plugin v0.6.3I receive the following error when I click Save Changes on the settings page for the Authentication plugin:Fatal error: Uncaught Error: Call to undefined method Net_LDAP2:() in phar:///var/www/html/include/plugins/auth-ldap.phar/include/Net/LDAP2.phpStack trace:#0 phar:///var/www/html/include/plugins/auth-ldap.phar/config.php(184): Net_LDAP2->__construct(Array)#1 /var/www/html/include/class.plugin.php(77): LdapConfig->pre_save(Array, Array)#2 /var/www/html/include/class.plugin.php(67): PluginConfig->commitForm(Array)#3 /var/www/html/scp/plugins.php(13): PluginConfig->commit(Array)#4 {main} thrown in phar:///var/www/html/include/plugins/auth-ldap.phar/include/Net/LDAP2.php on line 232

Can you lower your php version 7.0 and see

Switched to php 7.0.31-1+ubuntu18.04.1+deb.sury.org+1 Now I'm getting the following error:Fatal error: Access level to Net_LDAP2_RootDSE:() must be public (as in class PEAR) in phar:///var/www/html/include/plugins/auth-ldap.phar/include/Net/LDAP2/RootDSE.php on line 0

Take a look at this it has fix for errors you are getting

http://forum.osticket.com/d/discussion//v1-10-rc3-ldap-authentication-and-lookup

Really strange. I fixed this problem by extracting the phar to a directory and re-installing.  I also had to install php7.0-ldap to get it working.

That's great to hear, many issues I see is due to PHP version to high

PHP does require the ldap extension for LDAP to work.  I'll mark this as resolved and close the thread.

Write a Reply...