Hi,

The following should return all user accounts (DNs only)

ADFIND -dn -b dc=joehome,dc=net -f
"&(objectcategory=person)(samaccountname=*)"

Cheers
Jorge


-----Original Message-----
From: [EMAIL PROTECTED]
To: ActiveDir@mail.activedir.org
Sent: 2/28/2005 11:48 PM
Subject: [ActiveDir] Querying for all users

Is there any attribute that is unique to real user accounts only (mail
enabled and non-mail enabled)?  We tried teaming up objectclass=user and
givenname=*, but of course not all users have to have a given name.
Then tried teaming up the objectclass with useraccountcontrol=5*, then
we found out about the 66048's and 262656's....damn them.  So, is there an
ldap query that will give me all enabled active directory user accounts?
Most likely it's so simple I would never have even thought about it.

 

TIA

Alex. 

 


This e-mail and any attachment is for authorised use by the intended 
recipient(s) only. It may contain proprietary material, confidential 
information and/or be subject to legal privilege. It should not be copied, 
disclosed to, retained or used by, any other party. If you are not an intended 
recipient then please promptly delete this e-mail and any attachment and all 
copies and inform the sender. Thank you.
List info   : http://www.activedir.org/List.aspx
List FAQ    : http://www.activedir.org/ListFAQ.aspx
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/

Reply via email to