|
Yes the ":AND:=" and ":OR:=" are shortcuts in adfind
(coupled with the -bit) operator to insert the appropriate OIDs into the filter
for you. I found I preferred to just search for stuff versus having to memorize
or lookup the OIDs all the time.
I don't have any links showing how to do it from
vb/vbs/asp. I don't use it from any of them. I do my scripting from perl.
Using it from perl is extremely easy
@output=`adfind parameters`;
As for parsing the output, look at the perl script that
comes in the zip file. A lot of the output is formatted the way it is so I can
easily yank it out of perl.
You can pretty quickly do a search on samaccounttype. A
good start though is to look at your own directory and see the values. Another
spot to look is MSDN, one spot on MSDN is
joe
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Stelley, Douglas Sent: Tuesday, March 01, 2005 7:47 AM To: [email protected] Subject: RE: [ActiveDir] Querying for all users I use queries like this for dozens of
programs and scripts, but two of these are new to me. When I need to
find/exclude a disabled account I’ll use
(!userAccountControl:1.2.840.113556.1.4.803:=2). I tried briefly the
(useraccountcontrol:AND:=2), or the
(!(useraccountcontrol:AND:=2)) I wasn’t able to include/exclude disabled users.
Is that unique to Adfind?The query I used to test for that was
(&(objectcategory=person)(objectclass=user)(!useraccountcontrol:AND:=2))
brought up all users regardless of 512/514 I’d love to be able to harness
the powers of adfind in some of my existing scripts and ASP pages. Is there a
link with perhaps an example or two of utilizing your program within a
VB/VBS/ASP? Also, using
(samaccounttype=805306368), is there a listing of the possible samaccount
types? Regards, O monstrous world! Take note, take note, o world, To be direct and honest is not safe! -William Shakespeare. _____ From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
On Behalf Of joe From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
On Behalf Of Alex Fontana Confidentiality Notice: The information contained in this message may be legally privileged and confidential information intended only for the use of the individual or entity named above. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any release, dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error please notify the author immediately by replying to this message and deleting the original message. Thank you. |
