I have a VB.NET program with the following lines of code that will replace the user's first name with the name "John":

Dim attribute As New LdapAttribute("givenName", "John")
Dim mods As New LdapModification(LdapModification.REPLACE, attribute)
conn.Modify("cn=jsmith,ou=users,o=myOrg", mods)

What I really need is code that will return the user's first name, not change it. Does anyone know how I can accomplish this? I've been searching for days and the only code I can find is code for modifying, but I just want to read, not modify.

This code is for Novell's eDirectory and uses Novell.Directory.Ldap.dll. If someone can tell me how to do this in C#, that would be even better!