Script to search guid in LDAP using ldapsearch for multiple uid

Script to search guid in LDAP using ldapsearch for multiple uid
 
cd <Location> (/app/oracle/Middleware/mw6/OracleIDM/bin)
(
echo ""
echo "------------------------------"
date
echo "##Output will be generated to file <filename>##"
echo -n "Enter application uid separated by ':' eg.(MON:APPS)"
read AppsUser
arr=$(echo $AppsUser | tr ":" "\n")
for Uid in $arr
do
ldapsearch -v -h "<hostname>" -p <portno.Default:3060> -D "<ldaplogin>" -w"<password>"  -b "" -sub "((|uid=$Uid*))" uid guid
done
)2>&1 | tee -a <filename>

 

Comments

Popular posts from this blog

Script to check Datasource connections -Weblogic WLST scripting

Troubleshoot OEM 12c Cloud Control Agent and Target

Troubleshoot OEM 12c Cloud Control Metric Alerts