diff --git a/modules/openid/www/consumer.php b/modules/openid/www/consumer.php
index <HASH>..<HASH> 100644
--- a/modules/openid/www/consumer.php
+++ b/modules/openid/www/consumer.php
@@ -6,6 +6,9 @@
  */
 SimpleSAML_Utilities::maskErrors(E_STRICT);
 
+/* Add the OpenID library search path. */
+set_include_path(get_include_path() . PATH_SEPARATOR . dirname(dirname(dirname(dirname(__FILE__)))) . '/lib');
+
 require_once('Auth/OpenID/SReg.php');
 require_once('Auth/OpenID/Server.php');
 require_once('Auth/OpenID/ServerRequest.php');
diff --git a/modules/openidProvider/lib/Server.php b/modules/openidProvider/lib/Server.php
index <HASH>..<HASH> 100644
--- a/modules/openidProvider/lib/Server.php
+++ b/modules/openidProvider/lib/Server.php
@@ -1,5 +1,8 @@
 <?php
 
+/* Add the OpenID library search path. */
+set_include_path(get_include_path() . PATH_SEPARATOR . dirname(dirname(dirname(dirname(__FILE__)))) . '/lib');
+
 /**
  * Helper class for the OpenID provider code.
  *
openid/openidProvider: Fix load path for OpenID library.

Fixes issue <I>.