ldap authentication

ldap authentication

by Ankita Senapati -
Number of replies: 14

Hi
I am using Moodle 2.9.2. Can anyone please help me to setup LDAP authentication?
I am getting the following message:

The PHP LDAP module does not seem to be present. Please ensure it is installed and enabled if you want to use this authentication plugin.
How am I supposed to install it?

Average of ratings: -
In reply to Ankita Senapati

Re: ldap authentication

by shoaib latif -

what web server you are using appachi or IIS..

regards

shoaiob

In reply to shoaib latif

Re: ldap authentication

by shoaib latif -

If you are using IIS. follow below steps

1. Open IIS manager

2. Open PHP manager

3. click on Enable or Disable extensions

4. look for required extension and enable it.

see attached snapshots

restart iis


2nd way to enable is below

1, make sure required file is present in ext folder in php folder (c:\php\ext)

2 open php.ini file and add below line

extension=php_ldap.dll

regards

shoaib

Attachment 1.png
Attachment 2.png
In reply to shoaib latif

Re: ldap authentication

by shoaib latif -

see snapshots in sequence

Attachment 3.png
In reply to shoaib latif

Re: ldap authentication

by Ankita Senapati -

I am using apache

In reply to Ankita Senapati

Re: ldap authentication

by shoaib latif -

Hi,


I do not have working experience on Appachi...

did you try second method..

is it windows machine ?

regards

shoaib

In reply to Ankita Senapati

Re: ldap authentication

by John Okely -

Are you using apache on a linux or windows server?

In reply to John Okely

Re: ldap authentication

by Ankita Senapati -

windows server

In reply to Ankita Senapati

Re: ldap authentication

by John Okely -

Edit your php.ini and remove the ; at the start of this line:

;extension=php_ldap.dll
Then restart apache. Hopefully that should fix the problem

In reply to John Okely

Re: ldap authentication

by Ankita Senapati -

Hi John,
You can see the attachment. ';' is already absent in that line.

In reply to Ankita Senapati

Re: ldap authentication

by John Okely -

Is php_ldap.dll present in php\ext?

In reply to John Okely

Re: ldap authentication

by Ankita Senapati -

Yes it is present.

In reply to Ankita Senapati

Re: ldap authentication

by John Okely -

If you go to Site administration ► Server ► PHP info, does the LDAP module show?

In reply to John Okely

Re: ldap authentication

by Ankita Senapati -

Can you please specify where in php info Ldap should be shown?

In reply to Ankita Senapati

Re: ldap authentication

by John Okely -

If you do a ctrl+F search and type LDAP you should see it. For me it is right after json. If it doesn't show up that would make sense.

Do you have libeay32.dll and ssleay32.dll in your php folder?

In Control Panel > "System" click on "Advanced System Settings" and use the button "Environment Variables". Under "System Variables" you will find the "Path" variable. Does it have the path to your php root folder?

Unfortunately I'm more experienced with linux servers than windows servers. Hopefully someone more experienced in windows can help out soon.