User Tools

Site Tools


documentation:server-install-aducid

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
documentation:server-install-aducid [2018/12/04 22:08]
mpospisek [File and directory preparation]
documentation:server-install-aducid [2019/01/27 08:20]
mpospisek [File and directory preparation]
Line 2: Line 2:
 ===== File and directory preparation ===== ===== File and directory preparation =====
  
-**Directories for aducid-aaa-modules**+**Prepare the aducid-aaa.service** 
 +<sxh bash> 
 +# --- AAA modules need the following directories are created before installation:
  
-AAA modules need the following directories are created before installation: 
-<codedoc code:bash> 
 mkdir -p /opt/aaa/install mkdir -p /opt/aaa/install
 mkdir /opt/aaa/logs mkdir /opt/aaa/logs
Line 14: Line 14:
 mkdir /opt/aaa/bin mkdir /opt/aaa/bin
 mkdir -p /usr/lib64/openaaa/modules mkdir -p /usr/lib64/openaaa/modules
-</codedoc> 
  
-Files for aducid-aaa-modules. **Please adjust your server hostname in these files, as indicated.**+# --- Files for aducid-aaa-modules.  
 +**Please check your server hostname in these files, as indicated.**
  
-<codedoc code:bash> +# --- Export system variables 
-vi /etc/profile.d/openaaa.sh +/etc/profile.d/openaaa.sh 
-</codedoc> +echo \ 
-<sxh bash> +"#!/bin/bash
-#!/bin/bash+
 export OPENAAA_PROTOCOL=aaa export OPENAAA_PROTOCOL=aaa
 export OPENAAA_HANDLER=/usr/local/bin/aducid export OPENAAA_HANDLER=/usr/local/bin/aducid
-export OPENAAA_AUTHORITY=`hostname` +export OPENAAA_AUTHORITY=`hostname`  
-</sxh>+/etc/profile.d/openaaa.sh 
  
- +# --- Define the aducid-aaa.service 
-  +/usr/lib/systemd/system/aducid-aaa.service 
-<codedoc code:bash> +echo \ 
-vi /usr/lib/systemd/system/aducid-aaa.service +"[Unit]
-</codedoc> +
-<sxh bash> +
-[Unit]+
 Description=The ADUCID AAA Module Description=The ADUCID AAA Module
 After=network.target remote-fs.target nss-lookup.target After=network.target remote-fs.target nss-lookup.target
Line 46: Line 42:
    
 [Install] [Install]
-WantedBy=multi-user.target +WantedBy=multi-user.target  
-</sxh +>/usr/lib/systemd/system/aducid-aaa.service 
-  + 
-<codedoc code:bash> +--- Create service files 
-vi /etc/sysconfig/aducid-aaa +# /etc/sysconfig/aducid-aaa 
-</codedoc> +echo \ 
-<sxh bash; highlight: [25]> +"OPENAAA_PROTOCOL=aaa
-+
-# This file can be used to set additional environment variables for +
-# the httpd process, or pass additional options to the httpd +
-# executable+
-# +
-Note: With previous versions of httpd, the MPM could be changed by +
-# editing an "HTTPD" variable here.  With the current version, that +
-# variable is now ignored.  The MPM is a loadable module, and the +
-# choice of MPM can be changed by editing the configuration file +
-# /etc/httpd/conf.modules.d/00-mpm.conf. +
-# +
-+
-# To pass additional options (for instance, -D definitions) to the +
-# httpd binary at startup, set OPTIONS here. +
-+
-#OPTIONS= +
-+
-# This setting ensures the httpd process is started in the "C" locale +
-# by default.  (Some modules will not behave correctly if +
-# case-sensitive string comparisons are performed in a different +
-# locale.) +
-+
-OPENAAA_PROTOCOL=aaa+
 OPENAAA_HANDLER=/usr/local/bin/aducid OPENAAA_HANDLER=/usr/local/bin/aducid
-OPENAAA_AUTHORITY=your.server.dnsname +OPENAAA_AUTHORITY=`hostname`  
-</sxh> +" > /etc/sysconfig/aducid-aaa 
-  + 
-<codedoc code:bash> +/opt/aaa/bin/aducid-aaa.sh 
-vi /opt/aaa/bin/aducid-aaa.sh +echo \ 
-</codedoc> +"#!/bin/bash -x
-<sxh bash> +
-#!/bin/bash -x+
 # #
 # Start stop or restart the ADUCID-AAA service # Start stop or restart the ADUCID-AAA service
Line 94: Line 65:
 # Check that networking is up. # Check that networking is up.
 . /etc/sysconfig/network . /etc/sysconfig/network
-  +  
- +
 usage () usage ()
 { {
-        echo $"Usage: $0 {start|stop|restart}" 1>&2+        echo $\"Usage: $0 {start|stop|restart}\" 1>&2
         RETVAL=2         RETVAL=2
 } }
-  +  
- +
 start () start ()
 { {
Line 112: Line 81:
 kill -9 `cat /var/run/aaad.pid` kill -9 `cat /var/run/aaad.pid`
 } }
-  
    
 restart () restart ()
Line 119: Line 87:
         start         start
 } }
-  +   
-  +case \"$1\" in
-case "$1" in+
     stop) stop ;;     stop) stop ;;
     status) status ;;     status) status ;;
Line 129: Line 96:
    
 exit $RETVAL exit $RETVAL
 +" > /opt/aaa/bin/aducid-aaa.sh
 </sxh> </sxh>