2005-04-17 12:39:02 +00:00
|
|
|
<?php
|
|
|
|
// Set default values
|
2005-04-17 13:27:43 +00:00
|
|
|
if (!isset($config->auth_instructions) or empty($config->shib_user_attribute)) {
|
2005-05-16 19:38:21 +00:00
|
|
|
$config->auth_instructions = get_string('auth_shib_instructions', 'auth', $CFG->wwwroot.'/auth/shibboleth/shib-protected.php');
|
2005-04-17 12:39:02 +00:00
|
|
|
}
|
|
|
|
|
2005-06-02 05:39:41 +00:00
|
|
|
optional_variable($config->auth_shib_only, 0);
|
|
|
|
optional_variable($config->shib_user_attribute, '');
|
|
|
|
optional_variable($config->shib_logout_url, '');
|
|
|
|
optional_variable($config->shib_convert_data, 0);
|
2005-04-17 12:39:02 +00:00
|
|
|
|
2005-02-09 12:55:34 +00:00
|
|
|
?>
|
2005-04-17 12:39:02 +00:00
|
|
|
<tr>
|
2005-05-13 15:10:40 +00:00
|
|
|
<td colspan="3" align="left">
|
|
|
|
<p>
|
|
|
|
<?php print_string("auth_shib_username_description", "auth") ?>
|
|
|
|
</p>
|
2005-04-17 12:39:02 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
2005-05-04 14:40:01 +00:00
|
|
|
<!--
|
2005-04-17 12:39:02 +00:00
|
|
|
<tr>
|
|
|
|
<td align="right"><?php print_string("auth_shib_only", "auth") ?>:</td>
|
|
|
|
<td>
|
|
|
|
<select name="auth_shib_only">
|
|
|
|
<option value="0" <?php echo ($config->auth_shib_only ? '' : 'selected="yes"') ?> >
|
|
|
|
<?php print_string("no") ?></option>
|
|
|
|
<option value="1" <?php echo ($config->auth_shib_only ? 'selected="yes"' : '') ?> >
|
|
|
|
<?php print_string("yes") ?></option>
|
|
|
|
</select>
|
|
|
|
</td>
|
|
|
|
<td><?php print_string("auth_shib_only_description", "auth") ?></td>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2005-05-04 14:40:01 +00:00
|
|
|
|
2005-04-17 12:39:02 +00:00
|
|
|
<tr>
|
|
|
|
<td align="right">Shibboleth logout url ():</td>
|
|
|
|
<td>
|
|
|
|
<input name="shib_logout_url" type="text" size="30" value="<?php echo $config->shib_logout_url?>">
|
|
|
|
</td>
|
|
|
|
<td></td> </td>
|
|
|
|
</tr>
|
2005-05-13 15:10:40 +00:00
|
|
|
-->
|
2005-05-18 08:18:43 +00:00
|
|
|
<tr valign="top" class="required">
|
2005-04-17 12:39:02 +00:00
|
|
|
<td align="right"><?php print_string("username") ?>:</td>
|
|
|
|
<td>
|
|
|
|
<input name="shib_user_attribute" type="text" size="30" value="<?php echo $config->shib_user_attribute?>">
|
|
|
|
</td>
|
2005-05-13 15:10:40 +00:00
|
|
|
<td></td>
|
2005-04-17 12:39:02 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
2005-06-02 05:39:41 +00:00
|
|
|
<?php print_auth_lock_options($auth, $user_fields, '<!-- empty help -->', true, false); ?>
|
2005-04-17 13:27:43 +00:00
|
|
|
|
2005-04-17 12:39:02 +00:00
|
|
|
<tr valign="top">
|
2005-05-16 19:38:21 +00:00
|
|
|
<td align="right"><?php print_string("instructions", "auth") ?>:</td>
|
|
|
|
<td>
|
2005-04-17 13:27:43 +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>
|
2005-05-06 13:14:31 +00:00
|
|
|
<?php print_string("auth_shib_instructions_help","auth", htmlspecialchars($CFG->wwwroot.'/auth/shibboleth')) ?>
|
2005-04-17 12:39:02 +00:00
|
|
|
<?php helpbutton("text", get_string("helptext")) ?>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2005-05-18 08:18:43 +00:00
|
|
|
<tr valign="top">
|
2005-05-13 15:10:40 +00:00
|
|
|
<td align="right"><?php print_string("auth_shib_convert_data", "auth") ?>:</td>
|
|
|
|
<td>
|
2005-05-18 08:18:43 +00:00
|
|
|
<input name="shib_convert_data" type="text" size="30" value="<?php echo $config->shib_convert_data?>">
|
|
|
|
<?
|
|
|
|
if ($config->shib_convert_data && $config->shib_convert_data != '' && !is_readable($config->shib_convert_data)){
|
|
|
|
echo '<br><font color="red">';
|
|
|
|
print_string("auth_shib_convert_data_warning", "auth");
|
|
|
|
echo '</font>';
|
|
|
|
}
|
|
|
|
?>
|
2005-05-13 15:10:40 +00:00
|
|
|
</td>
|
|
|
|
<td><?php print_string("auth_shib_convert_data_description", "auth") ?></td>
|
|
|
|
</td>
|
2005-05-16 19:38:21 +00:00
|
|
|
</tr>
|