Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.7
-
Component/s: Authentication, Enrolments
-
Labels:None
-
Environment:Windows XP, MySQL 5.0, MSSQL2000, Moodle 1.7
-
Database:MySQL, Microsoft SQL
-
Affected Branches:MOODLE_17_STABLE
-
Fixed Branches:MOODLE_17_STABLE, MOODLE_18_STABLE
Description
When using external authentication I found out that the authentication module did not retrieve the database fields from the server.
I had to change line 110 in auth/db/lib.php from:
$result["$field"] = addslashes(stripslashes($rs->fields[0]));
to:
$result["$field"] = addslashes(stripslashes($rs->fields[$pcfg["field_map_$field"]]));
After that authentication with the external database worked fine.
I also had a similar problem in the database enrolment module (enrol/database/enrol.php) where I also had to change the field access from index to id.
Issue Links
| This issue will be resolved by: | ||||
| MDL-7655 | ADODB fetch association fails in Enrol/Database |
|
|
|
Hi,
I would treat this bug with a much higher priority than "Minor" - IMO it should be a Blocker for 1.7.1 since all Moodle < 1.7 installations using an external DB for user authentication will no longer work at all when updated to 1.7 - logins will no more be possible and the only solution (without the fix) is to revert back (you will lock out yourself).
rob.