Chunks_ Posted June 29, 2011 Report Posted June 29, 2011 (edited) Hi, 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. Edited June 29, 2011 by Chunks_
bart21 Posted July 2, 2011 Report Posted July 2, 2011 (edited) 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: <?php phpinfo(); ?> 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) Edited July 2, 2011 by bart21
Chunks_ Posted July 18, 2011 Author Report Posted July 18, 2011 Hi Bart21, Thanks for your reply ... i was on leave so only just got this... yes ldap is enabled in the php.ini
bart21 Posted July 18, 2011 Report Posted July 18, 2011 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 nick
Chunks_ Posted July 18, 2011 Author Report Posted July 18, 2011 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.
2097 Posted July 19, 2011 Report Posted July 19, 2011 show us a screen shot of the moodle ldap screen . what you have in there etc ( blank out password and username )
Chunks_ Posted July 19, 2011 Author Report Posted July 19, 2011 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now