Virtual Learning Platforms Thread, Moodle LDAP Auth in Technical; Hi,
I am now using Apache for Moodle isntead of IIS7.
i am trying to get LDAP up and running ...
-
8th April 2009, 01:31 PM #1 Moodle LDAP Auth
Hi,
I am now using Apache for Moodle isntead of IIS7.
i am trying to get LDAP up and running but i am hit with this error message
"Cannot use LDAP Authentication. The PHP LDAP module is not installed"
I have gone into the php.ini file and taken the colon and put the .dll file in the right place and i still get the message.
These are the details
Active Directory Server - Windows Server 2008
Moodle Server - Windows Server 2008
Using Xampp Package
there are some beers in this for people 
Thanks
Z
-
-
IDG Tech News
-
8th April 2009, 01:35 PM #2 This is from the Moodle Docs pages on LDAP setup with Windows.
Warning: The PHP LDAP module does not seem to be present. Please ensure it is installed and enabled.
This usually means that the main ldap dll or one of the supporting dlls are missing. Let's start with the main one itself. Browse to
http://(moodleserver)/admin/phpinfo.php and examine the "Configuration File (php.ini) Path" field to determine which php.ini is being used and open it with an editor. Find the line 'extension=php_ldap.dll' and take out the semi-colon if it is there. That semi-colon will stop it loading the module all together! While you have that file open, search for 'extension_dir' and note which folder it is set to. Open that folder and ensure the php_ldap.dll file is in there. If it isn't then put it in there. If that still hasn't fixed it you are missing a supporting dll, but you don't get told that. To see what dlls are missing open the Command Prompt and navigate to the php directory and execute the following line 'php -m'. You should get some error messages now. Ugly, but at least they give you information! Find the dlls listed and copy them to the php directory. You may now need to restart the apache/httpd service. Run 'php -m' again and you should be error free and the message in Moodle should be gone now.
Last edited by Jamo; 8th April 2009 at 01:36 PM.
Reason: wrong quote tags!!
-
-
8th April 2009, 01:37 PM #3 Done that and i still get an error 
I tell a lie.... The CLI tool is crashing in server 2008 so can't see what is says.
-
-
8th April 2009, 01:59 PM #4 @FN-GM:
Would this be enterprise server 2008 or standard?
-
-
8th April 2009, 02:02 PM #5
-
-
8th April 2009, 02:08 PM #6 @FN-GM:
Seems like a total waste of money for just a moodle install couldn't you just install Ubuntu on another box and then use the LDAP authentication as i have said in another post or do you just want to see it running on a windows server 2008?
Is this for a real installation or just to see if you can?
How much does an enterprise server 2008 license cost these days?
For the cost of the server license you could have bought another server and had it running by now.
-
-
8th April 2009, 02:10 PM #7 As i said before on the other post i have no input at all as to where it sits.
Please can we focus onto the matter in hand.
thanks
-
-
8th April 2009, 02:19 PM #8 Im guessing you have run the php -m command (i guess thats where the cli is crashing?)
-
-
8th April 2009, 02:20 PM #9 
Originally Posted by
Jamo
Im guessing you have run the php -m command (i guess thats where the cli is crashing?)
yes so it doesn't finsih off.
-
-
8th April 2009, 02:23 PM #10 not sure if its possible but have you tried an alternative like powershell to see if it will let it run?
-
-
8th April 2009, 02:31 PM #11 @FN-GM:
Lets focus together on this then ok:
Is it 32 or 64 bit windows?
have you fully installed WAMP onto the windows 2008 server PHP Apache MySQL avec WampServer 2 : installation PHP MySQL Apache.
Have you checked to see if apache is running?
Do you have any other error messages?
Have you made a php in notepad php.info with php tags and then browsed to the file to check everything is in order?
Or have you already done this?
-
-
8th April 2009, 02:43 PM #12 Ok its 64 bit
I have already got it up and running using xampp. I habe left everything in the PHP by default apart from the above changes.
Thanks
Z
-
-
8th April 2009, 02:45 PM #13 Did you restart the services after you enabled the DLL extension?
-
-
8th April 2009, 02:47 PM #14 Having had to fix quite a few XAMP installs, I strongly recommend avoiding it (except maybe for pure testing enviroments) and doing a normal PHP, MySQL, Apache (or IIS) installation. This may take a little longer to get up and running, but is well worth a bit of pain up front to save more problems in the furture.
Sorry but can't help with the authentication bit, that's one of the reasons for us moving from XAMP to IIS, it works much more easily there!
-
-
8th April 2009, 02:48 PM #15 @FN-GM:
I would start again using WAMP at least you would know the info below was right as I think this could be your problem.
WARNING : all the PHP releases aren't compatible with the Apache releases. WampServer knows which releases can work together and lets you know when it is not possible to switch.
-
SHARE: 
Similar Threads
-
By IT_Man_Dan in forum Virtual Learning Platforms
Replies: 1
Last Post: 2nd April 2009, 09:07 AM
-
By ahunter in forum Virtual Learning Platforms
Replies: 6
Last Post: 31st October 2008, 11:12 AM
-
By zag in forum Virtual Learning Platforms
Replies: 6
Last Post: 17th July 2008, 10:12 AM
-
By FN-GM in forum Virtual Learning Platforms
Replies: 10
Last Post: 25th May 2008, 11:58 AM
-
By GrumbleDook in forum Virtual Learning Platforms
Replies: 10
Last Post: 28th March 2007, 04:02 PM
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules