Re: LDAP Query Builder



That's true; I should have been more complete about the answer. Thanks Ulf.


"Ulf B. Simon-Weidner [MVP]" <nospam2-ulf@xxxxxxxxxxxxxxxxxx> wrote in
message news:uVeAY%23doFHA.3912@xxxxxxxxxxxxxxxxxxxxxxx
> "Al Mulnick" <amulnick_No_SPAM@xxxxxxxxxxx> wrote in message
> news:O6GHHhboFHA.764@xxxxxxxxxxxxxxxxxxxxxxx
>> You can. You can increase logging on the DC that is being used to the
>> point that it tells you what query it is using. You could also just read
>> up on the LDAP syntax to figure out what you want to exactly. As for
>> testing, a far better LDAP query tool would be LDP or Softerra's ldap
>> browser.
>>
>> That will show you the results of queries as you type them.
>>
>> Typical query example would be looking for users with a first initial of
>> 'a'
>> (&(objectCategory=Person)(givenName=a*))
>>
>> You'll want to be familiar with the and'ing and or'ing of queries and
>> what the effect on your application can be. You'll also want to avoid
>> some queries while confining the queries to use indexed attributes
>> wherever possible. You can find a lot more information about ldap query
>> optimization on MSDN.
>>
>> Does that help?
>>
>
>
> Hi Al,
>
> as you know the query (&(objectCategory=Person)(givenName=a*)) would
> return not only users but also contacts. The query for users should be
>
> (&(objectCategory=Person)(objectClass=User)(givenName=a*))
>
> --
> Gruesse - Sincerely,
>
> Ulf B. Simon-Weidner
>
> MVP-Book "Windows XP - Die Expertentipps": http://tinyurl.com/44zcz
> Weblog: http://msmvps.org/UlfBSimonWeidner
> Website: http://www.windowsserverfaq.org


.



Relevant Pages

  • Re: LDAP Query Builder
    ... I think it's still worthwhile to post the goals of the code. ... to succeed in your query necessarily, but it is best to be as precise as ... >> That will show you the results of queries as you type them. ... You can find a lot more information about ldap query ...
    (microsoft.public.windows.server.active_directory)
  • Re: LDAP query information
    ... The problem is that canonicalName is operational. ... you can create queries by ... then input the LDAP query. ... Can you please construct a LDAP query so that I can run it & test it. ...
    (microsoft.public.windows.server.scripting)
  • Re: LDAP query information
    ... maybe a VBScript if not a LDAP query? ... you can create queries by ... It seems to be a wrong query input (canonicalName) or wrong value passed ...
    (microsoft.public.windows.server.scripting)
  • Re: LDAP Query Builder
    ... far better LDAP query tool would be LDP or Softerra's ldap browser. ... That will show you the results of queries as you type them. ...
    (microsoft.public.windows.server.active_directory)
  • RE: Dynamically referencing a recordset?
    ... through that recordset to set the query parameters in VBA. ... to be the one who had to modify 1440 queries if there is a change in the ... different table schema, then you need 3, one for each record type. ... This is a database that tracks the production on records in another ...
    (microsoft.public.access.modulesdaovba)

Loading