Answers for "d n java"

1

java take out cn from dn

String dn = "CN=Jimmy Blooptoop,OU=Someplace,OU=Employees,DC=Bloopsoft-Inc";
LdapName ln = new LdapName(dn);

for(Rdn rdn : ln.getRdns()) {
    if(rdn.getType().equalsIgnoreCase("CN")) {
        System.err.println("CN is: " + rdn.getValue());
        break;
    }
}
Posted by: Guest on September-10-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language