++++++ How to find an object by email address

  • Thread starter Thread starter Guest
  • Start date Start date
A users email address attribute is called 'mail'. You can perform an LDAP
query using something like LDP or the tool of your choice. The search filter
for your own email address would be:
(&(objectClass=user)([email protected]))
 
Although they, being the LDAP guru's herein, recommend objectCategory; as
object class can (but probably won't in this case but can in most instances)
contain computers.

(&(objectCategory=user)([email protected]))

or

(&(objectCategory=person)([email protected]))

If you're talking exchange e-mail addresses you'll need the proxyAddresses
attribute instead:

(&(objectCategory=person)(proxyAddresses=smtp:[email protected]))

Or you can use ANR.

([email protected])



--

Paul Williams

http://www.msresource.net
http://forums.msresource.net


A users email address attribute is called 'mail'. You can perform an LDAP
query using something like LDP or the tool of your choice. The search filter
for your own email address would be:
(&(objectClass=user)([email protected]))
 
Back
Top