source: TI12-security/trunk/python/ndgSetup.sh @ 2181

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/python/ndgSetup.sh@2181
Revision 2181, 1.9 KB checked in by pjkersha, 13 years ago (diff)

Updates to SysV init scripts for use with Twisted

python/ndgSetup.sh:

  • Removed NDG_*_PROT_NUM environment variables - port number is now set in the respective

properties files for the services.

  • Added NDGSEC_*_PROPFILEPATH environment variables used to override default

$NDG_DIR/conf location for properties files.

python/share/ndg-aa, python/share/ndg-sm, python/share/ndg-ca, python/share/ndg-log and
python/share/ndg-gk:
SysV init scripts for the respective security services. At this stage, only ndg-aa, the
Attribute Authority script has been tested. The others merely contain a copy of ndg-aa
with the relevant variable settings altered in each case.

python/ndg.security.server/ndg/security/server/AttAuthority/server-config.tac:
Include full path for import of AttAuthorityService?.

python/ndg.security.server/ndg/security/server/AttAuthority/init.py:
Correction to readProperties missingKeys actually refers to invalidKeys.

python/ndg.security.server/ndg/security/server/AttAuthority/start-container.sh:
Altered so that it tries to pick up the installed path under site-packages/ for the
tac file server-config.tac.

python/ndg.security.server/ndg/security/server/conf/attAuthorityProperties.xml,
python/ndg.security.test/ndg/security/test/AttAuthority/siteAAttAuthorityProperties.xml,
python/ndg.security.test/ndg/security/test/AttAuthority/siteBAttAuthorityProperties.xml:
cosmetic correction to indent.

python/bin/AttAuthorityServer.py, python/bin/LogServer.py, python/bin/SessionMgrServer.py,
python/bin/GatekeeperServer.py and python/bin/SimpleCAServer.py:
NDG Alpha and post-Alpha scripts to start security web services. These are based on use
of python's native HTTP server code and so are redundant for the new Twisted based code.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1#! /bin/bash
2#
3# Set-up script for NDG security software
4#
5# Run this script to initialise the environment for
6# NDG security
7#
8# NERC Data Grid Project
9#
10# P J Kershaw 21/10/05
11#
12# Copyright (C) 2005 CCLRC & NERC
13#
14# This software may be distributed under the terms of the Q Public License,
15# version 1.0 or later.
16#
17# $Id$
18
19# NDG Installation directory
20export NDG_DIR=<NDG location>
21
22
23# NDG bin directory
24if [ ! `echo ${PATH} | grep "${NDG_DIR}/bin"` ]; then
25
26    export PATH=${NDG_DIR}/bin:$PATH
27fi
28
29
30# NDG shared libraries - set path here or alternatively use ldconfig $NDG_DIR/lib from
31# the command line to link the NDG shared libraries.
32#if [ ! `echo ${LD_LIBRARY_PATH} | grep "${NDG_DIR}/lib"` ]; then
33#
34#    export LD_LIBRARY_PATH=${NDG_DIR}/lib:$LD_LIBRARY_PATH
35#fi
36
37
38# NDG Custom Python installation
39if [ ! `echo ${PATH} | grep "${NDG_DIR}/<Python location>"` ]; then
40
41    export PATH=${NDG_DIR}/<Python location>:$PATH
42fi
43
44
45# Override default locations for properties files.
46#
47# e.g. default Attribute Authority location is
48# $NDG_DIR/conf/attAuthorityProperties.xml
49#
50# Session Manager:
51# $NDG_DIR/conf/sessionMgrProperties.xml
52#
53# Certificate Authority:
54# $NDG_DIR/conf/simpleCAProperties.xml
55#
56#export NDGSEC_AA_PROPFILEPATH=
57#export NDGSEC_SM_PROPFILEPATH=
58#export NDGSEC_CA_PROPFILEPATH=
59
60
61# Globus Toolkit and MyProxy Server
62export GLOBUS_LOCATION=<Globus location>
63export GPT_LOCATION=${GLOBUS_LOCATION}
64export GRID_SECURITY_DIR=${GLOBUS_LOCATION}/etc
65
66. ${GLOBUS_LOCATION}/etc/globus-user-env.sh
67
68export MYPROXY_SERVER=<hostname>
69
70# Set DN explicitly to ensure match with server certificate
71#export MYPROXY_SERVER_DN="<hostcert DN with '/' delimiters>"
72
73
74if [ ! `echo ${PATH} | grep "${GLOBUS_LOCATION}/bin"` ]; then
75
76    export PATH=${PATH}:${GLOBUS_LOCATION}/bin
77fi
78
79
80# MySQL or other database
81if [ ! `echo ${PATH} | grep "<db location>"` ]; then
82
83    export PATH=<db location>:$PATH
84fi
Note: See TracBrowser for help on using the repository browser.