| 1 | #!/usr/local/bin/perl | ||
| 2 | |||
| 3 | use VOMS::Lite::VOMS; | ||
| 4 | |||
| 5 | $VOMS::Lite::VOMS::DEBUG="yes"; | ||
| 6 | |||
| 7 | my $ref = VOMS::Lite::VOMS::Server ( { | ||
| 8 | Server => "0.0.0.0", | ||
| 9 | Port => "15050", | ||
| 10 | CertFile => "/etc/grid-security/hostcert.pem", | ||
| 11 | KeyFile => "/etc/grid-security/hostkey.pem", | ||
| 12 | # Inetd => 1, # uncomment me to use xinetd superserver instead of own sockets; use with care | ||
| 13 | mapfile => "/etc/grid-security/voms-mapfile" | ||
| 14 | } ); | ||
| 15 | |||
| 16 | foreach ( @{ ${$ref}{Errors} } ) {print "Error $_\n";} | ||
| 17 | foreach ( @{ ${$ref}{Warnings} } ) {print "Warnings $_\n";} | ||
| 18 | |||
| 19 | __END__ |