Jump to content

Recommended Posts

Posted (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 by Chunks_
Posted (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 by bart21
  • 2 weeks later...
Posted

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

Posted

Just to confirm .. PHPinfo gives me this info:

 

ldap.jpg

 

here is a screen shot of the event viewer showing that the ldap user is trying to logon to the server with sucsess...

 

authentication.jpg

 

There are no local users in moodle other than the first administrator account.

Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



  • 47 When would you like EduGeek EDIT 2025 to be held?

    1. 1. Select a time period you can attend


      • I can make it in June\July
      • I can make it in August\Sept
      • Other time period. Comment below
      • Either time

×
×
  • Create New...