2007-01-04 03:26:04 +00:00
|
|
|
<?php
|
2009-09-29 06:04:59 +00:00
|
|
|
global $OUTPUT;
|
2007-01-04 03:26:04 +00:00
|
|
|
// set to defaults if undefined
|
|
|
|
if (!isset($config->rpc_negotiation_timeout)) {
|
2007-04-11 08:46:23 +00:00
|
|
|
$config->rpc_negotiation_timeout = '30';
|
2007-01-04 03:26:04 +00:00
|
|
|
}
|
|
|
|
if (!isset ($config->auto_add_remote_users)) {
|
|
|
|
$config->auto_add_remote_users = '0';
|
|
|
|
}
|
|
|
|
|
|
|
|
$yesno = array(get_string('no'), get_string('yes'));
|
|
|
|
|
2007-01-18 03:16:55 +00:00
|
|
|
if (empty($CFG->mnet_dispatcher_mode) || $CFG->mnet_dispatcher_mode !== 'strict') {
|
2009-08-10 04:53:42 +00:00
|
|
|
echo $OUTPUT->box(get_string('mnetdisabled','mnet'));
|
2007-01-17 22:23:56 +00:00
|
|
|
}
|
|
|
|
|
2007-01-04 03:26:04 +00:00
|
|
|
?>
|
2007-04-13 07:03:04 +00:00
|
|
|
<div id="mnetconfig">
|
|
|
|
<table cellspacing="0" cellpadding="5">
|
2007-01-04 03:26:04 +00:00
|
|
|
|
|
|
|
<tr valign="top" class="required">
|
2009-06-11 03:34:46 +00:00
|
|
|
<td align="right"><?php print_string('rpc_negotiation_timeout', 'auth_mnet'); ?>: </td>
|
2007-01-04 03:26:04 +00:00
|
|
|
<td>
|
|
|
|
<input name="rpc_negotiation_timeout" type="text" size="5" value="<?php echo $config->rpc_negotiation_timeout ?>" />
|
|
|
|
<?php
|
|
|
|
|
|
|
|
if (isset($err['rpc_negotiation_timeout'])) {
|
2009-08-20 13:14:05 +00:00
|
|
|
echo $OUTPUT->error_text($err['rpc_negotiation_timeout']);
|
2007-01-04 03:26:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
?>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<?php
|
|
|
|
|
2009-06-11 03:34:46 +00:00
|
|
|
print_string('auth_mnet_rpc_negotiation_timeout', 'auth_mnet');
|
2007-01-04 03:26:04 +00:00
|
|
|
|
|
|
|
?>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr valign="top" class="required">
|
2009-06-11 03:34:46 +00:00
|
|
|
<td align="right"><?php print_string('auto_add_remote_users', 'auth_mnet'); ?>: </td>
|
2007-01-04 03:26:04 +00:00
|
|
|
<td>
|
|
|
|
<?php
|
|
|
|
|
2010-01-16 18:29:51 +00:00
|
|
|
echo html_writer::select($yesno, 'auto_add_remote_users', $config->auto_add_remote_users, false);
|
2007-01-04 03:26:04 +00:00
|
|
|
|
|
|
|
?>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<?php
|
|
|
|
|
2009-06-11 03:34:46 +00:00
|
|
|
print_string('auth_mnet_auto_add_remote_users', 'auth_mnet');
|
2007-01-04 03:26:04 +00:00
|
|
|
|
|
|
|
?>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2007-01-17 14:13:19 +00:00
|
|
|
<tr valign="top" class="required">
|
2009-06-11 03:34:46 +00:00
|
|
|
<td colspan="3"><?php print_string('auth_mnet_roamin', 'auth_mnet'); ?>: </td>
|
2007-01-17 14:13:19 +00:00
|
|
|
</tr>
|
|
|
|
<?php
|
2007-04-13 07:03:04 +00:00
|
|
|
foreach($id_providers as $host) {
|
2007-01-17 14:13:19 +00:00
|
|
|
?>
|
|
|
|
<tr valign="top" class="required">
|
|
|
|
<td align="right"><?php echo $host['name']; ?>: </td>
|
|
|
|
<td colspan="2"><?php echo $host['wwwroot']; ?> </td>
|
|
|
|
</tr>
|
2007-02-20 17:03:36 +00:00
|
|
|
<?php
|
2007-04-13 07:03:04 +00:00
|
|
|
}
|
2007-01-17 14:13:19 +00:00
|
|
|
?>
|
|
|
|
<tr valign="top" class="required">
|
2009-06-11 03:34:46 +00:00
|
|
|
<td colspan="3"><?php print_string('auth_mnet_roamout', 'auth_mnet'); ?>: </td>
|
2007-01-17 14:13:19 +00:00
|
|
|
</tr>
|
|
|
|
<?php
|
2007-04-13 07:03:04 +00:00
|
|
|
foreach($service_providers as $host) {
|
2007-01-17 14:13:19 +00:00
|
|
|
?>
|
|
|
|
<tr valign="top" class="required">
|
|
|
|
<td align="right"><?php echo $host['name']; ?>: </td>
|
|
|
|
<td colspan="2"><?php echo $host['wwwroot']; ?> </td>
|
|
|
|
</tr>
|
2007-02-20 17:03:36 +00:00
|
|
|
<?php
|
2007-04-13 07:03:04 +00:00
|
|
|
}
|
2007-01-04 03:26:04 +00:00
|
|
|
|
|
|
|
// print_auth_lock_options('mnet', $user_fields, get_string('auth_fieldlocks_help', 'auth'), false, false);
|
|
|
|
|
|
|
|
?>
|
|
|
|
</table>
|
2007-04-13 07:03:04 +00:00
|
|
|
</div>
|