Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LDAP extension is not available. Please install or enable the php-ldap extension on your web server #129

Open
JamesB127 opened this issue Sep 5, 2017 · 22 comments

Comments

@JamesB127
Copy link

Hi all,

I followed the instructions as per the OSTicket site instructions on how to install the LDAP plugin. Our OSTicket site is locally installed, so I ensured that the plugin.phar file was placed inside the Includes/plugins folder of Web server. I also made the change to our php.ini file that mean uncommenting out the line of code that said - extension=php_ldap.dll.
I am still having the same issue though when attempting to set up that plugin. Here is what I have entered so far:

ldap_osticket

Thanks for your assistance. i thought this plugin install was meant to be a relatively straightforward task.

Regards,
James

@ntozier
Copy link
Contributor

ntozier commented Sep 5, 2017

Did you restart your webserver software after editing the php.ini?

@JamesB127
Copy link
Author

Hi Ntozier, thanks for your help.

No I haven’t.

Don’t think it would be a good idea as our whole web domain and mail sits on it – is there any other way around this issue?

James

@JediKev
Copy link
Contributor

JediKev commented Sep 5, 2017

Installing the plugin via the server packages:
(CentOS)

$ sudo yum install php-ldap

(Ubuntu)

$ sudo apt-get install php5-ldap

@JamesB127
Copy link
Author

Thanks JediKev,

Would this mean I need to go onto the terminal of our web server using either of these OS and run one of these commands?
James

@JediKev
Copy link
Contributor

JediKev commented Sep 5, 2017

What server OS are you running?

@JamesB127
Copy link
Author

We are using a Linux server through it may not be possible to do what you suggested as its on a shared package and is outsourced from a web hosting provider.

@ntozier
Copy link
Contributor

ntozier commented Sep 6, 2017

I would recommend taht you talk to your hosting provider. Tell them that you need the extension for your site and see what they say.

@giannifusto
Copy link

Hi, I installed the 1.10.1 osticket version on a Windows server 2016. Added the LDAP Authentication and Lookup plugin and enabled. When I go to set the parameters it gives me the message "LDAP extension is not available." Please install or enable the php-ldap extension on your web server".
2018_01_12_09_58_37_osticket_pannello_di_controllo_admin

@ntozier
Copy link
Contributor

ntozier commented Jan 12, 2018

Then you either did not enable the ldap extension or you did not restart your webserver service.

@giannifusto
Copy link

giannifusto commented Jan 12, 2018

I followed these steps:
Downloaded file from http://osticket.com/download/go?dl=plugin%2Fauth-ldap.phar
Copied the file into folder C:\helpdesk\include\plugins
Installed plugin from administrator panel
Enabled plugins from administrator panel
Restarted IIS
Restarted Windows 2016 server

But it still does not work ......

@JediKev
Copy link
Contributor

JediKev commented Jan 12, 2018

@giannifusto You do not have the LDAP extension installed/enabled for PHP. Please install and enable the PHP extension, restart the server and try again. Cheers.

@giannifusto
Copy link

2018_01_12_18_02_24_osticket_admin_control_panel
Supporto_phpinfo.pdf

@ntozier
Copy link
Contributor

ntozier commented Jan 12, 2018

Showing us a screen shot of the Authentication::LDAP and Active Directory plugin does not mean that you have installed the php ldap extension. You have to edit your php.ini and enable the extension.

Under Windows you can uncomment the extension line in the php.ini:
extension=php_ldap.dll

In Linux you can: apt-get install php_ldap

In either case you have to restart the webserver service.

@giannifusto
Copy link

giannifusto commented Jan 12, 2018

Thanks, after editing file php.ini it works.

@JediKev
Copy link
Contributor

JediKev commented Jan 23, 2018

@giannifusto Awesome, I'm glad you got this working. Could you please Close this issue as it's now resolved? Cheers.

@sdarapureddy
Copy link

I am facing same issue. I am using Xampp on windows 10. I uncomment ldap extension in php.ini and copied two dlls and restarted webserver also. Still facing same issue.

@JediKev
Copy link
Contributor

JediKev commented Feb 20, 2019

@sdarapureddy

You will need to Google how to install/enable the php-ldap extension for your specific server and PHP build. This might help:
https://wptidbits.com/webs/enable-php-ldap-module-in-xampp/

Cheers.

@shaktik
Copy link

shaktik commented Mar 5, 2019

Thanks, after editing file php.ini it works for me.

@Richiricheh
Copy link

To add here in case others come across this. If this issue pops up for you when using Windows Server with Apache you will need to look at and or look at an create a PHPinfo file. Take a look at the Path and see which PATH variable it is pulling from. For me I noticed that rather than the 'global' PATH variable that it was pulling from the system PATH variable. In there I needed to add a new entry for C:\PHP. This resolved the annoying issue of "LDAP Plugin not found" error I was getting. That was despite the fact that I had already enabled it LDAP in my PHP.ini file. Every install is slightly different so it is impossible for the osTicket team to get ahead and document variances for all people.

hope this helps someone struggling.

Rich_C

@bardsmena
Copy link

image

Error Message: LDAP extension is not available. Please install or enable the php-ldap extension on your web server

im having problem with LDAP Plugins, please see below for more information:

Windows Server 2019 Active Directory
Windows Server 2019
a. OsTicket 1.14.1 Version
b.. PHP version: 7.1.26
c. Apache/2.4.38 (Win64)
d..Server version: 8.0.18 - MySQL
i already un comment extension=php_ldap.dll

image

php_ldap.dll existing at c:/php/ext and restart the apache service but still LDAP not working.

also when I execute phpinfo(), no LDAP information.

@Richiricheh
Copy link

Richiricheh commented Dec 18, 2019 via email

@Richiricheh
Copy link

Richiricheh commented Dec 18, 2019

Hello I believe I responded to this in the forums. In your PHPinfo file check to see which PATH variable is being listed. Then edit your PATH variable to include the path to the root of your PHP install. That worked for me and I had the exact same error and symptoms. Rich

On Wed., Dec. 18, 2019, 8:33 a.m. bardsmena, @.***> wrote: [image: image] https://user-images.githubusercontent.com/59019938/71090292-1f3ed080-21bc-11ea-86fc-3b3fcb301470.png Error Message: LDAP extension is not available. Please install or enable the php-ldap extension on your web server im having problem with LDAP Plugins, please see below for more information: Windows Server 2019 Active Directory Windows Server 2019 a. OsTicket 1.14.1 Version b.. PHP version: 7.1.26 c. Apache/2.4.38 (Win64) d..Server version: 8.0.18 - MySQL i already un comment extension=php_ldap.dll [image: image] https://user-images.githubusercontent.com/59019938/71090341-3c739f00-21bc-11ea-93bc-1aabe3eb5326.png php_ldap.dll existing at c:/php/ext and restart the apache service but still LDAP not working. also when I execute phpinfo(), no LDAP information. — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#129?email_source=notifications&email_token=AAM5MJPITKAQGVPRAHFV4K3QZIREBA5CNFSM4DZS3NT2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHGDZCY#issuecomment-567032971>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAM5MJP4I7SP7LRRGGJIT6DQZIREBANCNFSM4DZS3NTQ .

Sorry to elaborate on the above when I say edit the PATH variable that is an Environmental Variable. To get there Right Click on This PC -> Properties->Advanced System Settings->Environment Variables. Once you get in there you will see two "areas" User & System. For me my PHP was pulling from System. Yours may be different. That is why I stated to verify WHICH is being pulled from by comparing entries in the PHP info dump of PATH variable.

This will in all likelihood fix your issue 100%. As I posted above yours I had the exact same issue and this is what fixed it for me. Once the path to my PHP (root) was added there LDAP showed in my PHP info and the plugin worked like a charm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants