Posted By:
Paul_Hunnisett
Posted On:
Monday, July 25, 2005 06:04 AM
I need to be able to lookup a user's uid in ldap based on another attribute. E.g. if I pass in a staff number I want to retrieve a uid for that staff member. I have seen countless examples of looking up attributes based on a uid, but not the other way around...
The DN I tried for the lookup was: "uweStaffNumber=xxxxxxx,ou=People,dc=uwe,dc=ac,dc=uk"
This returned the following error:
javax.naming.NameNotFoundException: [LDAP: error code 32 - No Such Object]; remaining name 'uweStaffNumber=xxxxxxx,ou=People,dc=uwe,dc=ac,dc=uk'