ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
metarefresh.php File Reference

Go to the source code of this file.

Functions

 printHelp ()
 This function prints the help output. More...
 

Variables

 $baseDir = dirname(dirname(dirname(dirname(__FILE__))))
 
if(!SimpleSAML\Module::isModuleEnabled('metarefresh')) $configdir = SimpleSAML\Utils\Config::getConfigDir()
 
 $outputDir = $baseDir . '/metadata-generated'
 
 $toStdOut = FALSE
 
 $certificates = NULL
 
 $validateFingerprint = NULL
 
 $files = array()
 
 $progName = array_shift($argv)
 
foreach( $argv as $a) if(count($files)===0) $metaloader = new sspmod_metarefresh_MetaLoader()
 
foreach( $files as $f) if($toStdOut) else
 

Function Documentation

◆ printHelp()

printHelp ( )

This function prints the help output.

Definition at line 149 of file metarefresh.php.

149 {
150 global $progName;
151
152 /* '======================================================================' */
153 echo('Usage: ' . $progName . ' [options] [files]' . "\n");
154 echo("\n");
155 echo('This program parses a SAML metadata files and output pieces that can' . "\n");
156 echo('be added to the metadata files in metadata/.' . "\n");
157 echo("\n");
158 echo('Options:' . "\n");
159 echo(' --certificate=<FILE> The certificate which should be used' . "\n");
160 echo(' to check the signature of the metadata.' . "\n");
161 echo(' The file are stored in the cert dir.' . "\n");
162 echo(' It is possibility to add multiple' . "\n");
163 echo(' --certificate options to handle' . "\n");
164 echo(' key rollover.' . "\n");
165 echo(' --validate-fingerprint=<FINGERPRINT>' . "\n");
166 echo(' Check the signature of the metadata,' . "\n");
167 echo(' and check the fingerprint of the' . "\n");
168 echo(' certificate against <FINGERPRINT>.' . "\n");
169 echo(' -h, --help Print this help.' . "\n");
170 echo(' -o=<DIR>, --out-dir=<DIR> Write the output to this directory. The' . "\n");
171 echo(' default directory is metadata-generated/.' . "\n");
172 echo(' Path will be relative to the SimpleSAMLphp' . "\n");
173 echo(' base directory.' . "\n");
174 echo(' -s, --stdout Write the output to stdout instead of' . "\n");
175 echo(' seperate files in the output directory.' . "\n");
176 echo("\n");
177}
$progName
Definition: metarefresh.php:53

References $progName.

Variable Documentation

◆ $baseDir

$baseDir = dirname(dirname(dirname(dirname(__FILE__))))

Definition at line 11 of file metarefresh.php.

◆ $certificates

◆ $configdir

if (!SimpleSAML\Module::isModuleEnabled( 'metarefresh')) $configdir = SimpleSAML\Utils\Config::getConfigDir()

Definition at line 24 of file metarefresh.php.

◆ $files

$files = array()

Definition at line 49 of file metarefresh.php.

◆ $metaloader

foreach($argv as $a) if (count( $files)===0) $metaloader = new sspmod_metarefresh_MetaLoader()

Definition at line 131 of file metarefresh.php.

Referenced by metarefresh_hook_cron().

◆ $outputDir

$outputDir = $baseDir . '/metadata-generated'

◆ $progName

$progName = array_shift($argv)

Definition at line 53 of file metarefresh.php.

Referenced by printHelp().

◆ $toStdOut

$toStdOut = FALSE

Definition at line 34 of file metarefresh.php.

◆ $validateFingerprint

$validateFingerprint = NULL

Definition at line 45 of file metarefresh.php.

◆ else

foreach($files as $f) if ( $toStdOut) else
Initial value:
{
$metaloader->writeMetadataFiles($outputDir)
foreach( $argv as $a) if(count($files)===0) $metaloader
$outputDir
Definition: metarefresh.php:28

Definition at line 142 of file metarefresh.php.