+ Post New Thread
Page 1 of 3 123 LastLast
Results 1 to 15 of 37
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 ...
  1. #1

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,816
    Thank Post
    873
    Thanked 1,675 Times in 1,458 Posts
    Blog Entries
    12
    Rep Power
    444

    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

  2. #2
    Jamo's Avatar
    Join Date
    Jan 2009
    Posts
    1,349
    Thank Post
    66
    Thanked 175 Times in 147 Posts
    Rep Power
    60
    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!!

  3. #3

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,816
    Thank Post
    873
    Thanked 1,675 Times in 1,458 Posts
    Blog Entries
    12
    Rep Power
    444
    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.

  4. #4

    bossman's Avatar
    Join Date
    Nov 2005
    Location
    England
    Posts
    3,905
    Thank Post
    1,186
    Thanked 1,057 Times in 749 Posts
    Rep Power
    328
    @FN-GM:
    Would this be enterprise server 2008 or standard?

  5. #5

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,816
    Thank Post
    873
    Thanked 1,675 Times in 1,458 Posts
    Blog Entries
    12
    Rep Power
    444
    Enterprise Edition.

    Z

  6. #6

    bossman's Avatar
    Join Date
    Nov 2005
    Location
    England
    Posts
    3,905
    Thank Post
    1,186
    Thanked 1,057 Times in 749 Posts
    Rep Power
    328
    @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.

  7. #7

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,816
    Thank Post
    873
    Thanked 1,675 Times in 1,458 Posts
    Blog Entries
    12
    Rep Power
    444
    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

  8. #8
    Jamo's Avatar
    Join Date
    Jan 2009
    Posts
    1,349
    Thank Post
    66
    Thanked 175 Times in 147 Posts
    Rep Power
    60
    Im guessing you have run the php -m command (i guess thats where the cli is crashing?)

  9. #9

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,816
    Thank Post
    873
    Thanked 1,675 Times in 1,458 Posts
    Blog Entries
    12
    Rep Power
    444
    Quote Originally Posted by Jamo View Post
    Im guessing you have run the php -m command (i guess thats where the cli is crashing?)
    yes so it doesn't finsih off.

  10. #10
    Jamo's Avatar
    Join Date
    Jan 2009
    Posts
    1,349
    Thank Post
    66
    Thanked 175 Times in 147 Posts
    Rep Power
    60
    not sure if its possible but have you tried an alternative like powershell to see if it will let it run?

  11. #11

    bossman's Avatar
    Join Date
    Nov 2005
    Location
    England
    Posts
    3,905
    Thank Post
    1,186
    Thanked 1,057 Times in 749 Posts
    Rep Power
    328
    @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?

  12. #12

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,816
    Thank Post
    873
    Thanked 1,675 Times in 1,458 Posts
    Blog Entries
    12
    Rep Power
    444
    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

  13. #13

    webman's Avatar
    Join Date
    Nov 2005
    Location
    North East England
    Posts
    8,401
    Thank Post
    637
    Thanked 961 Times in 661 Posts
    Blog Entries
    2
    Rep Power
    319
    Did you restart the services after you enabled the DLL extension?

  14. #14
    tonyd's Avatar
    Join Date
    Mar 2006
    Location
    Kent (Sometimes), UK
    Posts
    163
    Thank Post
    17
    Thanked 42 Times in 31 Posts
    Rep Power
    24
    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!

  15. #15

    bossman's Avatar
    Join Date
    Nov 2005
    Location
    England
    Posts
    3,905
    Thank Post
    1,186
    Thanked 1,057 Times in 749 Posts
    Rep Power
    328
    @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:
+ Post New Thread
Page 1 of 3 123 LastLast

Similar Threads

  1. Moodle LDAP Country
    By IT_Man_Dan in forum Virtual Learning Platforms
    Replies: 1
    Last Post: 2nd April 2009, 09:07 AM
  2. Moodle and LDAP
    By ahunter in forum Virtual Learning Platforms
    Replies: 6
    Last Post: 31st October 2008, 11:12 AM
  3. Moodle LDAP
    By zag in forum Virtual Learning Platforms
    Replies: 6
    Last Post: 17th July 2008, 10:12 AM
  4. Moodle LDAP authentication
    By FN-GM in forum Virtual Learning Platforms
    Replies: 10
    Last Post: 25th May 2008, 11:58 AM
  5. Moodle and LDAP
    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
  •