Maybe by fetching all users and comparing their givenName properties?
Where do you have problems?
In reply to Re: Compare usernames by Corion in thread Compare usernames by PerlUserNL