Révision ff5e5aec
Ajouté par Thomas Noël il y a plus de 9 ans
usr/local/www/services_captiveportal_saml_federation.php | ||
---|---|---|
102 | 102 |
$pconfig['descr'] = $a_federation[$id]['descr']; |
103 | 103 |
$pconfig['url'] = $a_federation[$id]['url']; |
104 | 104 |
$pconfig['certref'] = $a_federation[$id]['certref']; |
105 |
$pconfig['caref'] = $a_federation[$id]['caref']; |
|
106 | 105 |
} |
107 | 106 |
|
108 | 107 |
if ($act == "new") { |
... | ... | |
116 | 115 |
$pconfig = $_POST; |
117 | 116 |
|
118 | 117 |
/* input validation */ |
119 |
$reqdfields = explode(" ", "codename descr url certref caref");
|
|
118 |
$reqdfields = explode(" ", "codename descr url certref"); |
|
120 | 119 |
$reqdfieldsn = array( |
121 | 120 |
gettext("Codename"), |
122 | 121 |
gettext("Description"), |
... | ... | |
152 | 151 |
$federation['descr'] = $pconfig['descr']; |
153 | 152 |
$federation['url'] = $pconfig['url']; |
154 | 153 |
$federation['certref'] = $pconfig['certref']; |
155 |
$federation['caref'] = $pconfig['caref']; |
|
156 | 154 |
|
157 | 155 |
if ($_POST['enable']) |
158 | 156 |
$federation['enable'] = true; |
... | ... | |
279 | 277 |
</td> |
280 | 278 |
</tr> |
281 | 279 |
|
282 |
<tr> |
|
283 |
<td width="22%" valign="top" class="vncellreq"><?=gettext("HTTPS CA certificate"); ?></td> |
|
284 |
<td width="78%" class="vtable"> |
|
285 |
<?php if (count($a_ca)): ?> |
|
286 |
<select name="caref" id="caref" class="formselect"> |
|
287 |
<option value="__none__">None</option> |
|
288 |
<?php |
|
289 |
foreach($a_ca as $ca): |
|
290 |
$selected = ""; |
|
291 |
if ($pconfig['caref'] == $ca['refid']) |
|
292 |
$selected = "selected"; |
|
293 |
?> |
|
294 |
<option value="<?=$ca['refid'];?>" <?=$selected;?>><?=$ca['descr'];?></option> |
|
295 |
<?php endforeach; ?> |
|
296 |
</select> |
|
297 |
<br/><?=gettext("If None, the HTTPS server certificate will not be checked."); ?> |
|
298 |
<?php else: ?> |
|
299 |
<b><?=gettext("No CA defined."); ?></b> <br/>Create one under <a href="system_certmanager.php">System > Cert Manager</a>. |
|
300 |
<?php endif; ?> |
|
301 |
</td> |
|
302 |
</tr> |
|
303 |
|
|
304 |
|
|
305 | 280 |
</table> |
306 | 281 |
|
307 | 282 |
<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="save"> |
Formats disponibles : Unified diff
caref is useless in federation metadata