13 Apr
2015
13 Apr
'15
5:21 p.m.
ACK for #31 & #33. On 4/13/2015 1:12 AM, Fraser Tweedale wrote:
profileId = new X500Name(dn).getCommonName();
For #32, I don't think we should use X500Name since this is a generic LDAP DN, not necessarily a DN in a certificate. There may be multiple CN's in a generic DN (e.g. cn=...,cn=...,dc=example,dc=com). Probably it should be like this: // assuming DN: cn=<profileId>,... profileId = LDAPDN.explodeDN(dn, true)[0]; -- Endi S. Dewata