This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
documentation:server-install-aducid [2018/12/04 21:53] mpospisek [File and directory preparation] |
documentation:server-install-aducid [2019/01/27 08:35] 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: | ||
mkdir -p / | mkdir -p / | ||
mkdir / | mkdir / | ||
Line 14: | Line 14: | ||
mkdir / | mkdir / | ||
mkdir -p / | mkdir -p / | ||
- | </ | ||
- | Files for aducid-aaa-modules. **Please | + | # --- Files for aducid-aaa-modules. |
+ | # **Please | ||
- | <codedoc code: | + | # --- Export system variables |
- | vi / | + | # / |
- | </ | + | echo \ |
- | <sxh bash> | + | "#!/bin/bash |
- | #!/bin/bash | + | |
export OPENAAA_PROTOCOL=aaa | export OPENAAA_PROTOCOL=aaa | ||
export OPENAAA_HANDLER=/ | export OPENAAA_HANDLER=/ | ||
- | export OPENAAA_AUTHORITY=`hostname` | + | export OPENAAA_AUTHORITY=`hostname` |
- | </sxh> | + | " |
- | + | # --- Define the aducid-aaa.service | |
- | + | # / | |
- | <codedoc code: | + | echo \ |
- | vi / | + | "[Unit] |
- | </ | + | |
- | <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> | + | " |
- | + | ||
- | <codedoc code: | + | # --- Create service files |
- | vi /etc/sysconfig/aducid-aaa | + | # /etc/sysconfig/aducid-aaa |
- | </ | + | echo \ |
- | <sxh bash; highlight: [25]> | + | " |
- | # | + | |
- | # 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 " | + | |
- | # variable is now ignored. | + | |
- | # choice of MPM can be changed by editing the configuration file | + | |
- | # /etc/httpd/conf.modules.d/ | + | |
- | # | + | |
- | # | + | |
- | # 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. | + | |
- | # case-sensitive string comparisons are performed in a different | + | |
- | # locale.) | + | |
- | # | + | |
- | OPENAAA_PROTOCOL=aaa | + | |
OPENAAA_HANDLER=/ | OPENAAA_HANDLER=/ | ||
- | OPENAAA_AUTHORITY=your.server.dnsname | + | OPENAAA_AUTHORITY=`hostname` |
+ | " > / | ||
</ | </ | ||
- | + | < | |
- | < | + | |
vi / | vi / | ||
</ | </ | ||
- | < | + | <sxh> |
#!/bin/bash -x | #!/bin/bash -x | ||
# | # | ||
Line 94: | Line 67: | ||
# Check that networking is up. | # Check that networking is up. | ||
. / | . / | ||
- | + | | |
- | + | ||
usage () | usage () | ||
{ | { | ||
Line 101: | Line 73: | ||
RETVAL=2 | RETVAL=2 | ||
} | } | ||
- | + | | |
- | + | ||
start () | start () | ||
{ | { | ||
Line 112: | Line 83: | ||
kill -9 `cat / | kill -9 `cat / | ||
} | } | ||
- | |||
restart () | restart () | ||
Line 119: | Line 89: | ||
start | start | ||
} | } | ||
- | + | | |
- | + | ||
case " | case " | ||
stop) stop ;; | stop) stop ;; | ||
Line 129: | Line 98: | ||
exit $RETVAL | exit $RETVAL | ||
+ | " > / | ||
</ | </ | ||
Line 134: | Line 104: | ||
<sxh> | <sxh> | ||
mkdir -p ~/ | mkdir -p ~/ | ||
+ | </ | ||
+ | Put the following files into the above directory and strip the " | ||
+ | * {{ : | ||
+ | * {{ : | ||
+ | <sxh> | ||
+ | cd ~/ | ||
+ | mv insert_home_aim_mypeig.sql.file insert_home_aim_mypeig.sql | ||
+ | mv mypeig.aducid.com.crt.file mypeig.aducid.com.crt | ||
</ | </ | ||