#!/usr/bin/python
#
-# Copyright (C) 2014 Simo Sorce <simo@redhat.com>
-#
-# see file 'COPYING' for use and warranty information
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
+# Copyright (C) 2014 Ipsilon project Contributors, for license see COPYING
from helpers.common import IpsilonTestBase # pylint: disable=relative-import
from helpers.http import HttpSessions # pylint: disable=relative-import
import pwd
import sys
from string import Template
+import uuid
idpname = 'idp1'
idp_g = {'TEMPLATES': '${TESTDIR}/templates/install',
'CONFDIR': '${TESTDIR}/etc',
'DATADIR': '${TESTDIR}/lib',
+ 'CACHEDIR': '${TESTDIR}/cache',
'HTTPDCONFD': '${TESTDIR}/${NAME}/conf.d',
'STATICDIR': '${ROOTDIR}',
'BINDIR': '${ROOTDIR}/ipsilon',
'secure': 'no',
'testauth': 'yes',
'pam': 'no',
- 'krb': 'no',
+ 'gssapi': 'no',
'ipa': 'no',
'server_debugging': 'True'}
saml2 idp storage path = ${TESTDIR}/lib/${NAME}/saml2
saml2 idp metadata file = metadata.xml
saml2 idp certificate file = ${TESTDIR}/lib/${NAME}/saml2/idp.pem
+saml2 idp nameid salt = ${IDPSALT}
[saml2_data]
811d0231-9362-46c9-a105-a01a64818904 id = http://${SPADDR}:${SPPORT}/saml2
811d0231-9362-46c9-a105-a01a64818904 type = SP
idpuri = "http://%s:%s/%s" % (idpaddr, idpport, idpname)
+ idpsalt = uuid.uuid4().hex
t = Template(idp_file_conf)
text = t.substitute({'NAME': idpname, 'IDPURI': idpuri,
'SPNAME': spname, 'SPADDR': spaddr, 'SPPORT': spport,
- 'SPMETA': spmeta, 'TESTDIR': testdir})
+ 'SPMETA': spmeta, 'TESTDIR': testdir,
+ 'IDPSALT': idpsalt})
adminconf = os.path.join(testdir, 'etc/admin.conf')
with open(adminconf, 'w+') as f: