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)) {
|
2006-05-15 12:08:06 +00:00
|
|
|
$config->auth_instructions = get_string('auth_shib_instructions', 'auth', $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">
|
2007-01-04 04:52:42 +00:00
|
|
|
<td align="right"><?php print_string("username") ?>:</td>
|
2005-04-17 12:39:02 +00:00
|
|
|
<td>
|
2007-03-19 16:39:00 +00:00
|
|
|
<input name="user_attribute" type="text" size="30" value="<?php echo $config->user_attribute ?>" />
|
2005-04-17 12:39:02 +00:00
|
|
|
</td>
|
2007-01-04 04:52:42 +00:00
|
|
|
<td><?php print_string("auth_shib_username_description", "auth") ?></td>
|
2005-04-17 12:39:02 +00:00
|
|
|
</tr>
|
|
|
|
|
2007-03-09 13:20:55 +00:00
|
|
|
<!--
|
|
|
|
This is kind of obsolete because the login instructions are now centralized
|
|
|
|
On the other hand it would be great for Shibboleth to have seperate login
|
|
|
|
instructions
|
|
|
|
-->
|
|
|
|
<!--
|
2005-04-17 12:39:02 +00:00
|
|
|
<tr valign="top">
|
2007-01-04 04:52:42 +00:00
|
|
|
<td align="right"><?php print_string("instructions", "auth") ?>:</td>
|
2005-05-16 19:38:21 +00:00
|
|
|
<td>
|
2007-02-20 17:03:36 +00:00
|
|
|
<textarea name="auth_instructions" cols="30" rows="10" wrap="virtual"><?php p($config->auth_instructions) ?></textarea>
|
2005-04-17 12:39:02 +00:00
|
|
|
</td>
|
|
|
|
<td>
|
2007-01-04 04:52:42 +00:00
|
|
|
<?php
|
2007-03-09 13:20:55 +00:00
|
|
|
|
2007-01-04 04:52:42 +00:00
|
|
|
print_string("auth_shib_instructions_help", "auth", htmlspecialchars($CFG->wwwroot.'/auth/shibboleth/index.php'));
|
|
|
|
helpbutton("text", get_string("helptext"));
|
|
|
|
|
|
|
|
?>
|
2005-04-17 12:39:02 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
2007-03-09 13:20:55 +00:00
|
|
|
-->
|
2007-01-04 04:52:42 +00:00
|
|
|
|
2005-05-18 08:18:43 +00:00
|
|
|
<tr valign="top">
|
2007-01-04 04:52:42 +00:00
|
|
|
<td align="right"><?php print_string("auth_shib_convert_data", "auth") ?>:</td>
|
2005-05-13 15:10:40 +00:00
|
|
|
<td>
|
2007-03-19 16:39:00 +00:00
|
|
|
<input name="convert_data" type="text" size="30" value="<?php echo $config->convert_data?>" />
|
2007-02-20 17:03:36 +00:00
|
|
|
<?php
|
2007-01-04 04:52:42 +00:00
|
|
|
|
|
|
|
if ($config->convert_data and $config->convert_data != '' and !is_readable($config->convert_data)) {
|
2007-01-04 23:38:17 +00:00
|
|
|
echo '<br/><font color="red">';
|
2005-05-18 08:18:43 +00:00
|
|
|
print_string("auth_shib_convert_data_warning", "auth");
|
|
|
|
echo '</font>';
|
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("auth_shib_convert_data_description", "auth") ?></td>
|
|
|
|
</tr>
|
|
|
|
|
2007-03-09 13:20:55 +00:00
|
|
|
|
2007-01-04 04:52:42 +00:00
|
|
|
<tr valign="top">
|
2007-01-11 01:41:44 +00:00
|
|
|
<td align="right"><?php print_string('auth_shib_changepasswordurl', 'auth') ?>: </td>
|
2007-01-04 04:52:42 +00:00
|
|
|
<td>
|
|
|
|
<input name="changepasswordurl" type="text" value="<?php echo $config->changepasswordurl ?>" />
|
|
|
|
<?php
|
|
|
|
|
|
|
|
if (isset($err['changepasswordurl'])) {
|
|
|
|
formerr($err['changepasswordurl']);
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|
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
|
|
|
|
2007-02-20 17:03:36 +00:00
|
|
|
<?php
|
2007-01-04 04:52:42 +00:00
|
|
|
|
|
|
|
print_auth_lock_options('shibboleth', $user_fields, '<!-- empty help -->', true, false);
|
|
|
|
|
|
|
|
?>
|
|
|
|
</table>
|