Comment 0 for bug 285838

Revision history for this message
josemoya (josemoya) wrote : Access to /dev/urandom show only when debug enabled

Access to /dev/urandom is needed for lib\openid\Auth\OpenID\CryptUtil.php to work. If path restrictions are enabled in server, it will fail.
An error message is displayed, but only when debug mode is enabled.
For sanity reasons, a warning should be displayed in mod/openid/auth_config.html, in order to notify the administrator before he activates openid.

Here is a small patch for this, for moodle-openid-rev8. I'll make a patch for moodle-openid-rev27 when in the mood.

The patch adds one new file, RandSource.php, to contain a value for Auth_OpenID_RAND_SOURCE. /lib/OpenID.php could have been used instead, but having it in a single file makes things easier for newbie administrators like me.