Closed oehrlis closed 3 years ago
Introduce a new Variable and command line parameter for oud_status.sh. Connection handler to verify can now be specified by OUD_CON_HANDLER or -c oud_status.sh -v -c LDAPS
to only check LDAPS or set the environment variable OUD_CON_HANDLER. The variable could also be set in the OUD instance specific config file `$ETC_BASE/oud.
Example:
oracle@test:/u00/app/oracle/local/oudbase/bin/ [oud_test] oud_status.sh -v -c LDAPS
2020-08-26_17:43:44 INFO : Use current OUD instance
2020-08-26_17:43:44 START: Start of oud_status.sh (Version v1.9.0) with -v -c LDAPS
2020-08-26_17:43:44 INFO : Touch temp file /tmp/tmp.WNty4FNRa6
2020-08-26_17:43:44 INFO : Identify directory type OUD
2020-08-26_17:43:44 INFO : Run status on OUD Instance oud_test
2020-08-26_17:43:53 INFO : Process /tmp/tmp.WNty4FNRa6 file
2020-08-26_17:43:53 INFO : Check connection handler LDAPS
2020-08-26_17:43:53 INFO : OK, status on OUD Instance oud_test
2020-08-26_17:43:53 END : of oud_status.sh
Usage of oud_status.sh
Usage, oud_status.sh [-hvr] [-i <OUD_INSTANCE>][-D <bindDN>]
[-j <bindPasswordFile>] [-c <CONNECTION HANDLER>]
-h Usage this message
-v enable verbose mode
-l enable instance log file in $OUD_ADMIN_BASE/$OUD_INSTANCE/
-r check for replication
-D <bindDN> Default value: cn=Directory Manager
-j <bindPasswordFile> Bind password file
-c <CONNECTION HANDLER> List of connection handler to check (default LDAP,LDAPS)
-i <OUD_INSTANCE> OUD Instance
Logfile : /u01/log/oud_status.log
oud_status.sh does fail if LDAP connection handler is disabled.
Provide a functionality if LDAP is disabled.