Learning Network Manager Thread, Moodle Installation. Ldap Authentication in Technical; Hi,
Wondering if anyone could help me. I have installed moodle once before and i managed to get it working ...
29th June 2011, 11:11 AM #1
Moodle Installation. Ldap Authentication
Wondering if anyone could help me. I have installed moodle once before and i managed to get it working with ldap authentication. With some tweeking and help from people on the forum. Im rebuilding it on another server, but unforunately the original installation has died on me. i cannot boot to windows to check configurations etc.
I know my ldap must be working cos i can use the ldp.exe tool and i can connect to the server and bind the User. When i try and login in to moodle i get invalid user or File not found error 404. If i check the dc's system logs it shows that the bind user i setup actually logs in. So that side must be working. Im 100% sure im pointing it to the right organisational units to find the users etc. I can only think its something to do with configuring the URL rewrite in IIS7
I have entered - RewriteRule ^([^\?]+?\.php)(\/.+)$ $1\?file=$2 as the rule from the moodle support pages. But not sure what the pattern should be, whether the rule needs the "rewriterule" at the beginning and or have [qsa] at the end as it suggests on the moddle pages..... Any help would be great.
Its also weird becuase i get a mixture of the 404 error and invalid logon..... so really not sure whats going on and its really beginning to frustrate me.
Last edited by Chunks_; 29th June 2011 at 11:25 AM.
2nd July 2011, 09:52 PM #2
have you enabled the php_ldap dll in php.ini?
The way to check is to create a file in your moodle root dir called phpinfo.php
Paste the below into that file:
then access the file via a browser, e.g moodle.school.sch.uk/moodle/phpinfo.php
Look for extension = phpLDAP or LDAP (cant remember which off the top of my head)
Last edited by bart21; 2nd July 2011 at 10:00 PM.
4th July 2011, 09:42 PM #3
did my post above help?
18th July 2011, 10:55 AM #4
Thanks for your reply ... i was on leave so only just got this... yes ldap is enabled in the php.ini
18th July 2011, 02:37 PM #5
have you deleted the local users with the same name as the ad user from the database.
e.g student john smith has a local (non LDAP) moodle account smithj, you then enable LDAP and john smith tries to log in with his LDAP account (also smithj) he cant until you delete both from the db and let moodle create the ldap one in its cache.7
18th July 2011, 03:00 PM #6
Just to confirm .. PHPinfo gives me this info:
here is a screen shot of the event viewer showing that the ldap user is trying to logon to the server with sucsess...
There are no local users in moodle other than the first administrator account.
19th July 2011, 10:33 AM #7
show us a screen shot of the moodle ldap screen . what you have in there etc ( blank out password and username )
19th July 2011, 12:59 PM #8
ok sorted it now ... stupid darn thing ...
added sAMAccountName to the user attribute to change the way it searched for the usernames - didnt think it was nessacary as it was "optional" so glanced over it - classic rtfm
Thanks for your help
By Hightower in forum Virtual Learning Platforms
Last Post: 25th January 2010, 07:04 PM
By reggiep in forum Virtual Learning Platforms
Last Post: 5th January 2010, 09:33 PM
By spacehopper in forum How do you do....it?
Last Post: 23rd September 2009, 12:00 PM
By FN-GM in forum Virtual Learning Platforms
Last Post: 25th May 2008, 12:58 PM
By plexer in forum How do you do....it?
Last Post: 22nd February 2007, 09:54 AM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)