2005-04-17 12:39:02 +00:00
|
|
|
<?php
|
2005-06-13 07:54:44 +00:00
|
|
|
|
2007-01-04 04:52:42 +00:00
|
|
|
global $CFG;
|
|
|
|
|
|
|
|
// Set to defaults if undefined
|
|
|
|
if (!isset($config->auth_instructions) or empty($config->user_attribute)) {
|
2009-06-11 03:34:46 +00:00
|
|
|
$config->auth_instructions = get_string('auth_shib_instructions', 'auth_shibboleth', $CFG->wwwroot.'/auth/shibboleth/index.php');
|
2005-12-06 05:47:58 +00:00
|
|
|
}
|
2007-01-04 04:52:42 +00:00
|
|
|
if (!isset ($config->user_attribute)) {
|
|
|
|
$config->user_attribute = '';
|
|
|
|
}
|
|
|
|
if (!isset ($config->convert_data)) {
|
|
|
|
$config->convert_data = '';
|
2005-12-06 05:47:58 +00:00
|
|
|
}
|
2007-01-04 04:52:42 +00:00
|
|
|
if (!isset($config->changepasswordurl)) {
|
|
|
|
$config->changepasswordurl = '';
|
2005-12-06 05:47:58 +00:00
|
|
|
}
|
2007-01-04 04:52:42 +00:00
|
|
|
|
2005-02-09 12:55:34 +00:00
|
|
|
?>
|
2007-04-20 07:54:42 +00:00
|
|
|
<table cellspacing="0" cellpadding="5" border="0">
|
2007-01-04 04:52:42 +00:00
|
|
|
|
2005-05-18 08:18:43 +00:00
|
|
|
<tr valign="top" class="required">
|
2012-07-27 18:12:47 +08:00
|
|
|
<td align="right"><label for="user_attribute"><?php print_string("username") ?>: </label></td>
|
2005-04-17 12:39:02 +00:00
|
|
|
<td>
|
2012-07-27 18:12:47 +08:00
|
|
|
<input id="user_attribute" name="user_attribute" type="text" size="30" value="<?php echo $config->user_attribute ?>" />
|
2005-04-17 12:39:02 +00:00
|
|
|
</td>
|
2009-06-11 03:34:46 +00:00
|
|
|
<td><?php print_string("auth_shib_username_description", "auth_shibboleth") ?></td>
|
2005-04-17 12:39:02 +00:00
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr valign="top">
|
2012-07-27 18:12:47 +08:00
|
|
|
<td align="right"><label for="convert_data"><?php print_string("auth_shib_convert_data", "auth_shibboleth") ?>: </label></td>
|
2005-04-17 12:39:02 +00:00
|
|
|
<td>
|
2012-07-27 18:12:47 +08:00
|
|
|
<input name="convert_data" id="convert_data" type="text" size="30" value="<?php echo $config->convert_data?>" />
|
2007-01-04 04:52:42 +00:00
|
|
|
<?php
|
2008-02-01 12:45:24 +00:00
|
|
|
|
|
|
|
if ($config->convert_data and $config->convert_data != '' and !is_readable($config->convert_data)) {
|
2010-09-17 10:39:29 +00:00
|
|
|
echo '<br/><span class="notifyproblem">';
|
2009-06-11 03:34:46 +00:00
|
|
|
print_string("auth_shib_convert_data_warning", "auth_shibboleth");
|
2010-09-17 10:39:29 +00:00
|
|
|
echo '</span>';
|
2008-02-01 12:45:24 +00:00
|
|
|
}
|
2007-01-04 04:52:42 +00:00
|
|
|
|
|
|
|
?>
|
2005-04-17 12:39:02 +00:00
|
|
|
</td>
|
2012-03-29 14:03:20 +02:00
|
|
|
<td><?php print_string("auth_shib_convert_data_description", "auth_shibboleth"); echo (isset($config->alt_login) ? $config->alt_login : '') ?></td>
|
2005-04-17 12:39:02 +00:00
|
|
|
</tr>
|
2007-01-04 04:52:42 +00:00
|
|
|
|
2005-05-18 08:18:43 +00:00
|
|
|
<tr valign="top">
|
2009-06-11 03:34:46 +00:00
|
|
|
<td align="right"><?php print_string("auth_shib_integrated_wayf", "auth_shibboleth") ?>:</td>
|
2005-05-13 15:10:40 +00:00
|
|
|
<td>
|
2009-11-01 11:55:14 +00:00
|
|
|
<input name="alt_login" type="checkbox" <?php
|
2008-02-01 12:45:24 +00:00
|
|
|
if ( isset($config->alt_login) and $config->alt_login == 'on' ){
|
|
|
|
echo 'checked="checked"';
|
|
|
|
}
|
|
|
|
?> />
|
|
|
|
</td>
|
2009-06-11 03:34:46 +00:00
|
|
|
<td><?php print_string("auth_shib_integrated_wayf_description", "auth_shibboleth") ?></td>
|
2008-02-01 12:45:24 +00:00
|
|
|
</tr>
|
2007-01-04 04:52:42 +00:00
|
|
|
|
2008-02-01 12:45:24 +00:00
|
|
|
<tr valign="top">
|
2009-06-11 03:34:46 +00:00
|
|
|
<td align="right"><?php print_string("auth_shib_idp_list", "auth_shibboleth") ?>:</td>
|
2008-02-01 12:45:24 +00:00
|
|
|
<td>
|
2010-03-26 10:15:07 +00:00
|
|
|
<textarea name="organization_selection" rows="10" cols="30" style="overflow: auto;"
|
2010-09-17 10:39:29 +00:00
|
|
|
><?php
|
2008-02-01 12:45:24 +00:00
|
|
|
if (!isset($config->organization_selection)){
|
|
|
|
echo 'urn:mace:organization1:providerID, Example Organization 1
|
2009-03-18 13:28:57 +00:00
|
|
|
https://another.idp-id.com/shibboleth, Other Example Organization, /Shibboleth.sso/DS/SWITCHaai
|
2008-02-01 12:45:24 +00:00
|
|
|
urn:mace:organization2:providerID, Example Organization 2, /Shibboleth.sso/WAYF/SWITCHaai';
|
|
|
|
} else {
|
2009-10-09 11:10:58 +00:00
|
|
|
echo htmlentities($config->organization_selection);
|
2008-02-01 12:45:24 +00:00
|
|
|
}
|
|
|
|
?>
|
|
|
|
</textarea>
|
2009-02-15 19:24:57 +00:00
|
|
|
<?php
|
2008-02-01 12:45:24 +00:00
|
|
|
if (isset($config->organization_selection) && empty($config->organization_selection) && isset($config->alt_login) && $config->alt_login == 'on') {
|
2010-09-17 10:39:29 +00:00
|
|
|
echo '<br/><span class="notifyproblem">';
|
2009-06-11 03:34:46 +00:00
|
|
|
print_string("auth_shib_no_organizations_warning", "auth_shibboleth");
|
2010-09-17 10:39:29 +00:00
|
|
|
echo '</span>';
|
2007-01-04 04:52:42 +00:00
|
|
|
}
|
2008-02-01 12:45:24 +00:00
|
|
|
?>
|
2005-05-13 15:10:40 +00:00
|
|
|
</td>
|
2009-06-11 03:34:46 +00:00
|
|
|
<td><?php print_string("auth_shib_idp_list_description", "auth_shibboleth") ?></td>
|
2007-01-04 04:52:42 +00:00
|
|
|
</tr>
|
|
|
|
|
2008-02-01 12:45:24 +00:00
|
|
|
<tr valign="top">
|
2012-07-27 18:12:47 +08:00
|
|
|
<td align="right"><label for="logout_handler"><?php print_string("auth_shib_logout_url", "auth_shibboleth") ?>: </label></td>
|
2009-03-18 13:28:57 +00:00
|
|
|
<td>
|
2012-07-27 18:12:47 +08:00
|
|
|
<input name="logout_handler" id="logout_handler" type="text" size="30" value="<?php
|
2009-03-18 13:28:57 +00:00
|
|
|
if ( isset($config->logout_handler) and !empty($config->logout_handler)){
|
|
|
|
echo $config->logout_handler;
|
|
|
|
}
|
|
|
|
?>" />
|
|
|
|
</td>
|
2009-06-11 03:34:46 +00:00
|
|
|
<td><?php print_string("auth_shib_logout_url_description", "auth_shibboleth") ?></td>
|
2009-03-18 13:28:57 +00:00
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr valign="top">
|
2012-07-27 18:12:47 +08:00
|
|
|
<td align="right"><label for="logout_return_url"><?php print_string("auth_shib_logout_return_url", "auth_shibboleth") ?>: </label></td>
|
2009-03-18 13:28:57 +00:00
|
|
|
<td>
|
2012-07-27 18:12:47 +08:00
|
|
|
<input name="logout_return_url" id="logout_return_url" type="text" size="30" value="<?php
|
2009-03-18 13:28:57 +00:00
|
|
|
if ( isset($config->logout_return_url) and !empty($config->logout_return_url)){
|
|
|
|
echo $config->logout_return_url;
|
|
|
|
}
|
|
|
|
?>" />
|
|
|
|
</td>
|
2009-06-11 03:34:46 +00:00
|
|
|
<td><?php print_string("auth_shib_logout_return_url_description", "auth_shibboleth") ?></td>
|
2009-03-18 13:28:57 +00:00
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr valign="top">
|
2012-07-27 18:12:47 +08:00
|
|
|
<td align="right"><label for="login_name"><?php print_string("auth_shib_auth_method", "auth_shibboleth") ?>: </label></td>
|
2008-02-01 12:45:24 +00:00
|
|
|
<td>
|
2012-07-27 18:12:47 +08:00
|
|
|
<input name="login_name" id="login_name" type="text" size="30" value="<?php
|
2008-02-01 12:45:24 +00:00
|
|
|
if ( isset($config->login_name) and !empty($config->login_name)){
|
2009-10-09 11:10:58 +00:00
|
|
|
echo htmlentities($config->login_name);
|
2008-02-01 12:45:24 +00:00
|
|
|
} else {
|
|
|
|
echo 'Shibboleth Login';
|
|
|
|
}
|
|
|
|
?>" />
|
|
|
|
</td>
|
2009-06-11 03:34:46 +00:00
|
|
|
<td><?php print_string("auth_shib_auth_method_description", "auth_shibboleth") ?></td>
|
2008-02-01 12:45:24 +00:00
|
|
|
</tr>
|
2007-03-09 13:20:55 +00:00
|
|
|
|
2007-01-04 04:52:42 +00:00
|
|
|
<tr valign="top">
|
2012-07-27 18:12:47 +08:00
|
|
|
<td align="right"><label for="changepasswordurl"><?php print_string('auth_shib_changepasswordurl', 'auth_shibboleth') ?>: </label></td>
|
2007-01-04 04:52:42 +00:00
|
|
|
<td>
|
2012-07-27 18:12:47 +08:00
|
|
|
<input name="changepasswordurl" id="changepasswordurl" type="text" value="<?php echo $config->changepasswordurl ?>" />
|
2007-01-04 04:52:42 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
if (isset($err['changepasswordurl'])) {
|
2009-08-20 13:14:05 +00:00
|
|
|
echo $OUTPUT->error_text($err['changepasswordurl']);
|
2007-01-04 04:52:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
?>
|
2005-05-13 15:10:40 +00:00
|
|
|
</td>
|
2007-01-04 04:52:42 +00:00
|
|
|
<td><?php print_string('changepasswordhelp', 'auth') ?></td>
|
2005-05-16 19:38:21 +00:00
|
|
|
</tr>
|
2007-01-04 04:52:42 +00:00
|
|
|
|
2008-02-01 12:45:24 +00:00
|
|
|
|
|
|
|
|
2007-02-20 17:03:36 +00:00
|
|
|
<?php
|
2007-01-04 04:52:42 +00:00
|
|
|
|
2012-03-17 10:58:43 +01:00
|
|
|
print_auth_lock_options($this->authtype, $user_fields, '<!-- empty help -->', true, false);
|
2007-01-04 04:52:42 +00:00
|
|
|
|
|
|
|
?>
|
|
|
|
</table>
|