From f4685b9643ad33e2d18fb65da2864d1f526fce6e Mon Sep 17 00:00:00 2001 From: Scott Cantor Date: Tue, 3 Aug 2010 19:34:50 +0000 Subject: [PATCH] NameIDFormat support. --- configs/metagen.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/configs/metagen.sh b/configs/metagen.sh index 5178473..89568fa 100755 --- a/configs/metagen.sh +++ b/configs/metagen.sh @@ -21,11 +21,12 @@ SAML20PAOS="urn:oasis:names:tc:SAML:2.0:bindings:PAOS" SAML1POST="urn:oasis:names:tc:SAML:1.0:profiles:browser-post" SAML1ART="urn:oasis:names:tc:SAML:1.0:profiles:artifact-01" -while getopts a:c:e:h:n:o:s:t:u:12ADLN c +while getopts a:c:e:f:h:n:o:s:t:u:12ADLN c do case $c in c) CERTS[${#CERTS[*]}]=$OPTARG;; e) ENTITYID=$OPTARG;; + f) FORMATS=[${#FORMATS[*]}]=$OPTARG;; h) HOSTS[${#HOSTS[*]}]=$OPTARG;; n) NAKEDHOSTS[${#NAKEDHOSTS[*]}]=$OPTARG;; o) ORGNAME=$OPTARG;; @@ -45,7 +46,7 @@ while getopts a:c:e:h:n:o:s:t:u:12ADLN c done if [ ${#HOSTS[*]} -eq 0 -a ${#NAKEDHOSTS[*]} -eq 0 ] ; then - echo metagen -c cert1 [-c cert2 ...] -h host1 [-h host2 ...] [-e entityID] + echo metagen [-12ADLN] -c cert1 [-c cert2 ...] -h host1 [-h host2 ...] [-e entityID] exit 1 fi @@ -174,6 +175,13 @@ cat << EOF EOF done +for f in ${FORMATS[@]} +do +cat << EOF + $f +EOF +done + # Logout BEGIN if [ $LOGOUT -eq 1 ] ; then -- 2.1.4