This is my first steps in the Java.
I need:
1) To find in LDAP the user at which cn=test3322
I can do this: searchBase,
null, // return all attributes
false); // return attrs and values
where searchfilter = "(&(objectclass=user)(uid=test3322))"

2) read fullName for this user.
I can do this:
LDAPEntry nextEntry = null;
nextEntry =;
System.out.println("\n[" + nextEntry.getAttribute("fullName")+"]" );
But in the output i see:
[LDAPAttribute: {type='fullName', value='Bod Dilan Marshel'}]

How i can get ONLY "Bod Dilan Marshel" and get it to the String
variable tmpstr


skoltogyan's Profile:
View this thread: