projects
/
shibboleth
/
cpp-sp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
caa72a9
)
NameIDFormat support.
author
Scott Cantor
<cantor.2@osu.edu>
Tue, 3 Aug 2010 19:34:50 +0000
(19:34 +0000)
committer
Scott Cantor
<cantor.2@osu.edu>
Tue, 3 Aug 2010 19:34:50 +0000
(19:34 +0000)
configs/metagen.sh
patch
|
blob
|
history
diff --git
a/configs/metagen.sh
b/configs/metagen.sh
index
5178473
..
89568fa
100755
(executable)
--- 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"
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;;
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;;
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
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
exit 1
fi
@@
-174,6
+175,13
@@
cat << EOF
EOF
done
EOF
done
+for f in ${FORMATS[@]}
+do
+cat << EOF
+ <md:NameIDFormat>$f</md:NameIDFormat>
+EOF
+done
+
# Logout BEGIN
if [ $LOGOUT -eq 1 ] ; then
# Logout BEGIN
if [ $LOGOUT -eq 1 ] ; then