This is a nasty short bash script to get the certificate DN for a given grid pool user from ARGUS grid map directory.
Get the script from github.
To use it just do the following:
argus_user_cert.sh <username>
to return
User pheno071 Certificate Details: %2fc%3duk%2fo%3descience%2fou%3ddurham%2fl%3descience%2fcn%3dadam%20boutcher:pheno pheno071
The script was written very quickly and I don’t recommend using it in production or as part of a larger system, so use it at your own risk.