source: TI12-security/trunk/python/ndg.security.test/ndg/security/test/SessionMgr/sessionMgrProperties.xml @ 3024

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/python/ndg.security.test/ndg/security/test/SessionMgr/sessionMgrProperties.xml@3024
Revision 3024, 2.9 KB checked in by pjkersha, 13 years ago (diff)

Adding getSessionStatus to enable SM clients to check a session is still valid.

python/ndg.security.server/ndg/security/server/SessionMgr/init.py:

  • new method getSessionStatus checks for a session's existence with given input sessID.

python/www/html/sessionMgr.wsdl,
python/ndg.security.server/ndg/security/server/SessionMgr/SessionMgr_services_server.py,
python/ndg.security.common/ndg/security/common/SessionMgr/SessionMgr_services.py:

  • added getSessionStatus operation to WSDL and regenerated the stubs

python/ndg.security.test/ndg/security/test/MyProxy/myProxyProperties.xml: replace refs to GLOBUS_LOCATION with NDGSEC_DIR for MyProxy? unit tests OpenSSL config file.

python/ndg.security.test/ndg/security/test/SessionMgr/SessionMgrTest.py: new unit test to test out ndg.security.server.SessionMgr?.SessionMgr? class. Previously, this required use of the SessionMgrClient? unit tests. ie. running over SOAP interface.

python/ndg.security.test/ndg/security/test/SessionMgr/sessionMgrProperties.xml,
python/ndg.security.test/ndg/security/test/SessionMgr/sessionMgrClientTest.cfg:

  • expt with settings to try twisted over http but run through proxy on 443 with Apache.
Line 
1<?xml version="1.0" encoding="utf-8"?>
2<sessMgrProp>
3    <portNum>5700</portNum>
4    <useSSL></useSSL> <!-- leave blank to use http -->
5    <!--<useSSL>Yes</useSSL>  leave blank to use http -->
6    <sslCertFile>$NDGSEC_SM_UNITTEST_DIR/sm-cert.pem</sslCertFile>
7    <sslKeyFile>$NDGSEC_SM_UNITTEST_DIR/sm-key.pem</sslKeyFile>
8    <!--
9    PKI settings for signature of outbound SOAP messages
10    -->
11    <useSignatureHandler>Yes</useSignatureHandler> <!-- leave blank for no signature -->
12    <caCertFile>$NDGSEC_SM_UNITTEST_DIR/cacert.pem</caCertFile>
13    <certFile>$NDGSEC_SM_UNITTEST_DIR/sm-cert.pem</certFile>
14    <keyFile>$NDGSEC_SM_UNITTEST_DIR/sm-key.pem</keyFile>
15    <keyPwd/>
16    <!--
17    Set the certificate used to verify the signature of messages from the
18    client.  This can usually be left blank since the client is expected to
19    include the cert with the signature in the inbound SOAP message
20    -->
21    <clntCertFile></clntCertFile>   
22    <sessMgrEncrKey>abcdef0123456789</sessMgrEncrKey>
23    <sessMgrURI>https://localhost:5700/SessionManager</sessMgrURI>
24    <cookieDomain></cookieDomain>
25        <myProxyProp>
26                <!--
27                Delete this element and take setting from MYPROXY_SERVER environment
28                variable if required
29                <hostname>localhost</hostname>
30                -->
31                <!--
32                Delete this element to take default setting 7512 or read
33                MYPROXY_SERVER_PORT setting
34                -->
35                <port>7512</port>
36                <!--
37                Useful if hostname and certificate CN don't match correctly.  Globus
38                host DN is set to "host/<fqdn>".  Delete this element and set from
39                MYPROXY_SERVER_DN environment variable if prefered
40                <serverDN></serverDN>
41                -->
42                <!--
43                Set "host/" prefix to host cert CN as is default with globus
44                -->
45                <!--
46                This directory path is used to locate the OpenSSL configuration file
47               
48                The settings are used to set up the defaults for the Distinguished Name of
49                the new proxy cert. issued
50               
51                GLOBUS_LOCATION or GRID_SECURITY_DIR environment variables may be used
52                but the settings can be independent of any Globus installation
53                -->
54                <openSSLConfFilePath>$NDGSEC_SM_UNITTEST_DIR/openssl.conf</openSSLConfFilePath>
55                <tmpDir>/tmp</tmpDir>
56                <!--
57                        Limit on maximum lifetime any proxy certificate can have -
58                        specified when a certificate is first created by store() method
59                -->
60                <proxyCertMaxLifetime>24</proxyCertMaxLifetime> <!-- in hours -->
61                <!--
62                        Life time of a proxy certificate when issued from the Proxy Server
63                        with getDelegation() method
64                        -->
65                <proxyCertLifetime>8</proxyCertLifetime> <!-- in hours -->
66                <caCertFile>$NDGSEC_SM_UNITTEST_DIR/cacert.pem</caCertFile>
67        </myProxyProp>
68        <simpleCACltProp>
69            <uri></uri>
70        <xmlSigKeyFile></xmlSigKeyFile>
71        <xmlSigCertFile></xmlSigCertFile>
72        <xmlSigCertPwd></xmlSigCertPwd>
73    </simpleCACltProp>
74    <credReposProp>
75            <modFilePath></modFilePath>
76            <modName>ndg.security.common.CredWallet</modName>
77            <className>NullCredRepos</className>
78            <propFile></propFile>
79    </credReposProp>
80</sessMgrProp>
Note: See TracBrowser for help on using the repository browser.