I'm writing a J2EE application where a user authenticates using LDAP. The authentication is no problem but now I'm trying to get more information about certain users. Specifically I need to get list of employees that works for a certain manager. Our LDAP schema here has a 'reportsTo' field somewhere but when I list all of the attributes for a certain user, the field is not listed. I think it's hidden in another object which is embeded in an attribute. I don't have the slightest clue as to how to pull the information out. I've tried simple searches and they work but the 'reportsTo' field is still missing. Looking at our LDAP schema, it appears that the field is available in the ObjectClass "EmailPerson". Does anybody have any idea how I can get this value? I read through some tutorials and explanations but am still lost. I'm also running short on time and don't have the luxury to really learn all this at the moment. Any help is greatly appreciated. Thanks!
Here is my current code which returns nothing for the reportsTo field:
[ August 31, 2006: Message edited by: Andreas Sandberg ]