Re: Advice on how to write an LDAP AD user query



You can't base an LDAP query dynamically upon what the object name is being checked. You would need to dump all users with smtp addresses and compare the username with the address.

   joe

--
Joe Richards Microsoft MVP Windows Server Directory Services
www.joeware.net


slinkydonkey@xxxxxxxxxxx wrote:
Hello All

I need to be able to qrite a fairly simple LDAP query in AD to bring
back the following:

All active users (in an OU called users) who don't have an SMTP email
address which starts username@domain for example (the user name is a
number).

Can this be easily be done I use AD 2003 daily and need this
information.


Thanks in Advance

.



Relevant Pages

  • Re: Ldap search for proxyAddresses
    ... > Does anyone know an ldap query which would enable me to find an account ... > a certain smtp address? ... i know it the proxyAddress i am looking for but i ...
    (microsoft.public.windows.server.active_directory)
  • LDAP attribute query
    ... complete LDAP query to find the internet (SMTP) address ... for a mail enabled public folder? ...
    (microsoft.public.exchange2000.general)
  • Ldap search for proxyAddresses
    ... Does anyone know an ldap query which would enable me to find an account using ... a certain smtp address? ... i know it the proxyAddress i am looking for but i am ...
    (microsoft.public.windows.server.active_directory)

Loading