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:
lc.search( searchBase,
searchScope,
searchFilter,
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 = searchResults.next();
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
?

Serg


--
skoltogyan
------------------------------------------------------------------------
skoltogyan's Profile: http://forums.novell.com/member.php?userid=9261
View this thread: http://forums.novell.com/showthread.php?t=427956