]> git.mjollnir.org Git - moodle.git/commitdiff
Adapted README due to attribute requirement change
authorexe-cutor <exe-cutor>
Wed, 3 Oct 2007 12:36:48 +0000 (12:36 +0000)
committerexe-cutor <exe-cutor>
Wed, 3 Oct 2007 12:36:48 +0000 (12:36 +0000)
auth/shibboleth/README.txt
auth/shibboleth/auth.php

index dc076030429a06852ffd122c2f348b6b16a42a4b..815bc6919a9b7d8af7d6d929dd4a427874b0d68b 100644 (file)
@@ -17,6 +17,8 @@ Changes:
 - 11. 2006: User capabilities are now loaded properly as of Moodle 1.7+
 - 03. 2007: Adapted authentication method to Moodle 1.8
 - 07. 2007: Fixed a but that caused problems with uppercase usernames
+- 10. 2007: Removed the requirement for email address, surname and given name
+            attributes on request of Markus Hagman
 
 Moodle Configuration with Dual login
 -------------------------------------------------------------------------------
index 02cf0a4d9136f9b782d05e63170b81c27ae8421e..fab06b7d99c7e2a264f846f9baeaf03b7b0dbac5 100644 (file)
@@ -18,6 +18,7 @@
  * 2006-08-28  File created, code imported from lib.php
  * 2006-10-27  Upstream 1.7 changes merged in, added above credits from lib.php :-)
  * 2007-03-09  Fixed authentication but may need some other changes
+ * 2007-10-03  Removed requirement for email address, surname and given name on request of Markus Hagman
  */
 
 if (!defined('MOODLE_INTERNAL')) {
@@ -72,12 +73,7 @@ class auth_plugin_shibboleth extends auth_plugin_base {
         global $CFG;
 
         // Check whether we have got all the essential attributes
-        if (
-               empty($_SERVER[$this->config->user_attribute])
-            || empty($_SERVER[$this->config->field_map_firstname])
-            || empty($_SERVER[$this->config->field_map_lastname])
-            || empty($_SERVER[$this->config->field_map_email])
-            ) {
+        if ( empty($_SERVER[$this->config->user_attribute]) ) {
             error(get_string( 'shib_not_all_attributes_error', 'auth' , "'".$this->config->user_attribute."' ('".$_SERVER[$this->config->user_attribute]."'), '".$this->config->field_map_firstname."' ('".$_SERVER[$this->config->field_map_firstname]."'), '".$this->config->field_map_lastname."' ('".$_SERVER[$this->config->field_map_lastname]."') and '".$this->config->field_map_email."' ('".$_SERVER[$this->config->field_map_email]."')"));
         }