Authenticating against Active Directory

Authenticating against Active Directory

Marc Veenstra發表於
Number of replies: 2

Somewhere in my setup I have botched something. I have setup Moodle (the latest stable version) on a Windows 2003 Server running IIS 6. I am using PHP v4.3.8 and MySQL v3.23.

I can login to Moodle if I use accounts created in Moodle. I have been trying to set up LDAP authentication to use my existing Active Directory accounts. I have read some of the fantastic notes among the discussion topics but still have a glitch somewhere in my system.

I set up LDAP authentication, restarted IIS and tried logging in with an AD account. All I got was a blank screen at http://servername/moodle/login/index.php

I did some reading and realised I hadn't enabled php_ldap.dll. I enabled this within php.ini but then I couldn't access Moodle at all - I got a CGI timeout message 'The specified CGI application exceeded the allowed time for processing. The server has deleted the process.'

Can anybody point me in the right direction? Suggestions or directions to relevant documention would be greatly appreciated.

Marc

評比平均分數: -
In reply to Marc Veenstra

Re: Authenticating against Active Directory

Martin Dougiamas發表於
Core developers的相片 Documentation writers的相片 Moodle HQ的相片 Particularly helpful Moodlers的相片 Plugin developers的相片 Testers的相片
Try copying all the .dll files from your PHP installation into your windows/system32 directory and restarting IIS.
In reply to Marc Veenstra

Re: Authenticating against Active Directory

Dan Williamson發表於

Hi Marc,

Did you ever find a solution to your problem?

I have the exact same symptoms as you but cannot find what is wrong.

I've copied php4ts.dll and php_ldap.dll from my PHP install folder to WINNT/SYSTEM32 adn restarted IIS, but to no avail

As soon as you enable
extension=php_ldap.dll
in WINNT/PHP.INI and restart IIS, you get the message:
'The specified CGI application exceeded the allowed time for processing. The server has deleted the process.'

On the official site for PHP:
http://www.php.net/manual/en/ref.ldap.php
It mentions the following:

Requirements
You will need to get and compile LDAP client libraries from either the University of Michigan
ldap-3.3 package, Netscape Directory SDK 3.0 or OpenLDAP to compile PHP with LDAP support.

Did anyone have to do this to get their install working?
If so, could you give me an idea of how to start the compilation please?

Thanks a lot,
Dan.