Ldap search for proxyAddresses

Discussion in 'Active Directory' started by Craig Barraclough, Jun 21, 2005.

  1. 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
    having trouble witht the query.

    Thanks

    Craig
     
    Craig Barraclough, Jun 21, 2005
    #1
    1. Advertisements

  2. Hi,

    I believe the attribute is proxyAddresses. It is mult-valued. Try:

    (proxyAddresses=<value>)
     
    Richard Mueller [MVP], Jun 21, 2005
    #2
    1. Advertisements

  3. Thanks thats just what i need.
     
    Craig Barraclough, Jun 21, 2005
    #3
  4. (proxyAddresses=*)

    I really don't recommend this query. It is extremely inefficient and in a large
    environment could literally take an hour or more to complete unless you have
    enabled tuple indexing on the proxyaddress attribute. I actually hit a company
    that had a problem with these queries taking over an hour and it was destroying
    one of their applications. 90+ minutes if I remember correctly for each query,
    they had something like 300,000+ proxyaddresses in the directory.

    Of you have an address of the type you know it is an SMTP
    address and SMTP: will find it.

    In general, you almost never want to use wildcards anywhere but the end of the
    string when searching AD unless you absolutely have to or you do it enough that
    you have enabled tuple indexing.

    joe
     
    Joe Richards [MVP], Jun 26, 2005
    #4
  5. That's a very interesting post Joe. I'll take note.

    Thanks!
     
    Paul Williams [MVP], Jun 26, 2005
    #5
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.