Hello,
I have been trying for an eternity to get external database authentication working with a SQL database.
Moodle (latest version) runs just fine on SQL Server 2008 R2 with it's database that the install builds (sqlsrv)
Our existing system has it's own database for user accounts so obviously I need to use the external DB Auth plugin.
I saw on other posts that the plugin does not include the DB type that I need to do this with the SQL Server Driver for PHP which the post specified as "mssqlnative" and that I would need to modify the config to add it to the list - Done. Also added "sqlsrv" just for the heck of it.
It appears that these external database plugins connect very differently that the install config does which just "knows what to do" and the settings for the plugins don't seem to match the installs settings and it doesn't even look like it works the same way. Am I correct in that these plugins are out of date?
The error I get tells me that there are core connection files that do not support the connection settings in the plugin:
(mssqlnative): SELECT * FROM Employees WHERE Email = 'xxxxx@xxxxx.org' AND Password = 'xxxxxxxxxxxx'
(mssqlnative): SELECT Email AS username FROM Employees WHERE Email = 'xxxxxx@xxxxxx.org'
Notice: Trying to get property of non-object in E:\Paec_org\Moodle\lib\adodb\adodb.inc.php on line 3595
Notice: Undefined index: in E:\Paec_org\Moodle\lib\adodb\adodb.inc.php on line 3999 Notice: Undefined index: in E:\Paec_org\Moodle\lib\adodb\adodb.inc.php on line 4000
Fatal error: Cannot access empty property in E:\Paec_org\Moodle\lib\adodb\adodb.inc.php on line 3607
Fatal error: sqlsrv_warnings contains an invalid type in E:\Paec_org\Moodle\lib\dml\sqlsrv_native_moodle_database.php on line 358
Fatal error: sqlsrv_warnings contains an invalid type in E:\Paec_org\Moodle\lib\dml\sqlsrv_native_moodle_database.php on line 1312
"Functional Database Tests" when you specify in the config another database to test never work either. The only connection that ever works is the one created in the install process.
I have tried everything, this makes no sense at all. Any help would be greatly appreciated.