Cannot use LDAP authentication.

Cannot use LDAP authentication.

by t lewis -
Number of replies: 9

Hi All,

Wondering if anybody can help me with this... Ive come to work today after leaving our VLE  all nice and working with no problems on Friday to this error whenever i try to access the VLE:

Cannot use LDAP authentication. The PHP LDAP module is not installed.

And as luck would have it, our network manager is not in, and unavailable for over half of the week and I have no knowledge on LDAP or the authentication from the vle aside from taking info from our DC.

I was hoping someone could point me in a direction to trouble shoot to get this back up and running.

Thanks,

Average of ratings: -
In reply to t lewis

Re: Cannot use LDAP authentication.

by Guillermo Madero -

Hi Lewis,

If you go to http://yoursite.com/admin/phpinfo.php, almost at the beginning of the report you should see:

Virtual Directory Support: disabled

If so, please:

1. open the PHP php.ini configuration file

2. uncomment the following line by removing the initial semi-colon (";"):

extension=php_ldap.dll

3. restart your server.

You might want to take a look at the following page:

http://docs.moodle.org/25/en/Active_Directory

There is also an Authentication forum, for more specialized questions:

https://moodle.org/mod/forum/view.php?id=42

In reply to Guillermo Madero

Re: Cannot use LDAP authentication.

by t lewis -

Hi Guillermo,

 

Thanks for your reply, ive tried browsing to  /admin/phpinfo.php and i just get the same error. Ive opened our php.ini file and this line is missing "extension=php_ldap.dll"

Should i add it to the .ini file?

Thanks for pointing me in the right direction ill post there for advice.

Cheers,

In reply to t lewis

Re: Cannot use LDAP authentication.

by Guillermo Madero -

Could you please tell in what OS are you working? Linux, Windows?

It is usually best to start with some info about the environment (OS and web server component version numbers, etc).

In reply to Guillermo Madero

Re: Cannot use LDAP authentication.

by Paul Seery -

Hi, I am Paul the 2nd tech ant this school and I have the info you requested.

We are currently using Windows server 2008, Moodle 2.4, PHP v5.4

 

In reply to Paul Seery

Re: Cannot use LDAP authentication.

by Guillermo Madero -

Hi Paul,

Ok, thanks. Well, yes, if the aforementioned line is not in the php.ini file, you would need to add it. There's a section named "Dynamic Extensions", "Windows Extensions" where you should see a group of lines like so:

extension=some file name
;extension=some other file name

As extensions sometimes have dependencies, it would be best to add the following line within that group. In my own php.ini file the line is located like so (I ommitted the commented lines):

extension=php_curl.dll
extension=php_gd2.dll
extension=php_intl.dll
extension=php_ldap.dll
extension=php_mbstring.dll

You also need to check that the php_ldap.dll actually exists in the ext extension directory:

Php\ext\php_ldap.dll

In reply to Guillermo Madero

Re: Cannot use LDAP authentication.

by Paul Seery -

Hi, I have added extension=php_ldap.dll and removed the (;)

I then rebooted our web server.

however we are still facing the same screen

In reply to Paul Seery

Re: Cannot use LDAP authentication.

by Guillermo Madero -

Did you check that the dll file exists in the ext directory?

In reply to Guillermo Madero

Re: Cannot use LDAP authentication.

by Paul Seery -

It is there. However I have just restarted our AD server and we are back in business.

Thank you so much for your time and patience

Paul & Lewis

Average of ratings: Useful (1)