-
Improvement
-
Resolution: Fixed
-
Minor
-
3.3
-
MOODLE_33_STABLE
-
MOODLE_33_STABLE
-
master
-
Easy
-
We have an azure database that we want to use as a source of our users.
The sqlsrv driver by microsoft is now available for both linux and windows so it's no longer only windows servers that can connect with azure or sql server through this driver.
I noticed the external database auth plugin uses adodb in the background, adodb already has support for pdo_sqlsrv so it's mostly a matter of changing the settings form to allow you to select this driver.
I've tested it out myself with moodle 3.2.1 by hardcoding some changes in /auth/db/auth.php
change line 159 to: $authdb = ADONewConnection('PDO');
change line 164 to: $authdb->Connect('sqlsrv:server=SERVERNAME;database=DATABASENAME', $this->config->user, $this->config->pass);
Everything seemed to work without problems with this hardcoded version. I suppose the biggest issue is the fact that the connection string through PDO looks very different from the currently supported database types. Which makes it more work to add this then simply expanding the options list with one extra option.
- caused a regression
-
MDL-58769 PDO support in auth plugin needs to fail better
- Closed
- has a non-specific relationship to
-
MDL-57689 add sqlsrv support for external database enrolment
- Closed
- has a QA test
-
MDLQA-10402 A PDO-compatible DB server may be used for external DB authentication and enrolment
- Open
-
MDLQA-19222 CLONE - A PDO-compatible DB server may be used for external DB authentication and enrolment
- Open
-
MDLQA-15323 CLONE - A PDO-compatible DB server may be used for external DB authentication and enrolment
- Passed
-
MDLQA-15912 CLONE - A PDO-compatible DB server may be used for external DB authentication and enrolment
- Passed
-
MDLQA-16558 CLONE - A PDO-compatible DB server may be used for external DB authentication and enrolment
- Passed
-
MDLQA-17174 CLONE - A PDO-compatible DB server may be used for external DB authentication and enrolment
- Passed
-
MDLQA-17762 CLONE - A PDO-compatible DB server may be used for external DB authentication and enrolment
- Passed
-
MDLQA-18266 CLONE - A PDO-compatible DB server may be used for external DB authentication and enrolment
- Passed
-
MDLQA-18759 CLONE - A PDO-compatible DB server may be used for external DB authentication and enrolment
- Passed
- is blocked by
-
MDL-12689 convert all auth plugins to use settings.php
- Closed