osTicket / osTicket-plugins

Core plugins for osTicket (v1.8+)
GNU General Public License v2.0
151 stars 162 forks source link

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

Open JamesB127 opened 7 years ago

JamesB127 commented 7 years ago

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 commented 7 years ago

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

JamesB127 commented 7 years ago

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 commented 7 years ago

Installing the plugin via the server packages: (CentOS)

$ sudo yum install php-ldap

(Ubuntu)

$ sudo apt-get install php5-ldap
JamesB127 commented 7 years ago

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 commented 7 years ago

What server OS are you running?

JamesB127 commented 7 years ago

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 commented 7 years ago

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 commented 6 years ago

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 commented 6 years ago

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

giannifusto commented 6 years ago

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 commented 6 years ago

@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 commented 6 years ago

2018_01_12_18_02_24_osticket_admin_control_panel Supporto_phpinfo.pdf

ntozier commented 6 years ago

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 commented 6 years ago

Thanks, after editing file php.ini it works.

JediKev commented 6 years ago

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

sdarapureddy commented 5 years ago

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 commented 5 years ago

@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 commented 5 years ago

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

Richiricheh commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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, notifications@github.com 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 https://github.com/osTicket/osTicket-plugins/issues/129?email_source=notifications&email_token=AAM5MJPITKAQGVPRAHFV4K3QZIREBA5CNFSM4DZS3NT2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHGDZCY#issuecomment-567032971, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAM5MJP4I7SP7LRRGGJIT6DQZIREBANCNFSM4DZS3NTQ .

Richiricheh commented 4 years ago

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.