Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

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;
    }
}
Comment

PREVIOUS NEXT
Code Example
Java :: convert char to string java 
Java :: java swing stripes 
Java :: linear layout background color 
Java :: rates api 
Java :: spring data rest format time and date 
Java :: spring data rest partial update 
Java :: java transform hashmap to list 
Java :: toast.maketext error kotlin 
Java :: get player by name spigot 
Java :: alertdialog show in android 
Java :: java randint 
Java :: java get unix timestamp 
Java :: concurrent modification exception 
Java :: set precision in java 
Java :: spring url parameter 
Java :: how to iterate over a string in java 
Java :: java http request post 
Java :: hide actionbar android 
Java :: onclick android 
Java :: java create list of strings 
Java :: Java @Inherited 
Java :: java stream filter 
Java :: get boolean from string java 
Java :: how to split a string in java 
Java :: Triangle Pattern In Java 
Java :: encode file to base64 java 
Java :: java import joptionpane 
Java :: java display two dimensional array 
Java :: spring boot hibernate log sql 
Java :: convert int to hex java 
ADD CONTENT
Topic
Content
Source link
Name
9+9 =