Shell script to check if orcladmin account is locked, and unlock it if required
# Check to see if orcladmin account is locked, and unlock it if it is. if [ "`ldapbind -p <myport> -D cn=orcladmin -w <myorcladminpassword>`" = "bind successful" ] then echo orcladmin account is ok, is not locked. else echo unlocking orcladmin account... oidpasswd connect=<mydatabase> unlock_su_acct=true <<END_PASSWD <mydatabasepassword> END_PASSWD fi
Useful for running from cron for an environment where orcladmin repeatedly gets locked.
The -p port is optional depending on configuration.