Hello All,

I've to extract a CN (Common Name) from an LDAP DN. The LDAP DN is as shown
below:

isuer=CN=Name,OU=People,OU=com

I just need to extract the Name from the above string. Right now I've

my @tmpList = split ( /=CN=/, $_ );
$issuer = $tmpList[1];

But this returns the whole string "Name,OU=People,OU=com"

I just need the "Name" from this. Is there anyway to do this? I cannot split
by "," because the "Name" could be anywhere in the string. Is there a better
way of doing the split?

Thanks in Advance,
 
--Rajesh 

Reply via email to