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>