5 // Set to defaults if undefined
6 if (!isset($config->auth_instructions
) or empty($config->user_attribute
)) {
7 $config->auth_instructions
= get_string('auth_shib_instructions', 'auth', $CFG->wwwroot
.'/auth/shibboleth/index.php');
9 if (!isset ($config->user_attribute
)) {
10 $config->user_attribute
= '';
12 if (!isset ($config->convert_data
)) {
13 $config->convert_data
= '';
15 if (!isset($config->changepasswordurl
)) {
16 $config->changepasswordurl
= '';
20 <table cellspacing=
"0" cellpadding=
"5" border=
"0">
22 <tr valign=
"top" class=
"required">
23 <td align=
"right"><?php print_string("username") ?>:
</td>
25 <input name=
"user_attribute" type=
"text" size=
"30" value=
"<?php echo $config->user_attribute ?>" />
27 <td
><?php
print_string("auth_shib_username_description", "auth") ?></td>
31 This is kind of obsolete because the login instructions are now centralized
32 On the other hand it would be great for Shibboleth to have seperate login
37 <td align="right"><?php print_string("instructions", "auth") ?>:</td>
39 <textarea name="auth_instructions" cols="30" rows="10" wrap="virtual"><?php p($config->auth_instructions) ?></textarea>
44 print_string("auth_shib_instructions_help", "auth", htmlspecialchars($CFG->wwwroot.'/auth/shibboleth/index.php'));
45 helpbutton("text", get_string("helptext"));
53 <td align="right"><?php print_string("auth_shib_convert_data", "auth") ?>:</td>
55 <input name="convert_data" type="text" size="30" value="<?php echo $config->convert_data?>" />
58 if ($config->convert_data and $config->convert_data != '' and !is_readable($config->convert_data)) {
59 echo '<br/><font color="red">';
60 print_string("auth_shib_convert_data_warning", "auth");
66 <td><?php print_string("auth_shib_convert_data_description", "auth") ?></td>
71 <td align="right"><?php print_string('auth_shib_changepasswordurl', 'auth') ?>: </td>
73 <input name="changepasswordurl" type="text" value="<?php echo $config->changepasswordurl ?>" />
76 if (isset($err['changepasswordurl'])) {
77 formerr($err['changepasswordurl']);
82 <td><?php print_string('changepasswordhelp', 'auth') ?></td>
87 print_auth_lock_options('shibboleth', $user_fields, '<!-- empty help -->', true, false);