Installation help

 
 
Picture of t lewis
Cannot use LDAP authentication.
 

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: -
Gmads
Re: Cannot use LDAP authentication.
Group Particularly helpful MoodlersGroup Testers

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

 
Average of ratings: -
Picture of t lewis
Re: Cannot use LDAP authentication.
 

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,

 
Average of ratings: -
Gmads
Re: Cannot use LDAP authentication.
Group Particularly helpful MoodlersGroup Testers

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).

 
Average of ratings: -
Picture of Paul Seery
Re: Cannot use LDAP authentication.
 

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

 

 
Average of ratings: -
Gmads
Re: Cannot use LDAP authentication.
Group Particularly helpful MoodlersGroup Testers

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

 
Average of ratings: -
Picture of Paul Seery
Re: Cannot use LDAP authentication.
 

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

 
Average of ratings: -
Gmads
Re: Cannot use LDAP authentication.
Group Particularly helpful MoodlersGroup Testers

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

 
Average of ratings: -
Picture of Paul Seery
Re: Cannot use LDAP authentication.
 

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)
Gmads
Re: Cannot use LDAP authentication.
Group Particularly helpful MoodlersGroup Testers

Excellent! You're welcome.

 
Average of ratings: -