B
Ben Hanson
I have been working with ldifde/csvde a good bit lately but I am having a
hard time with the syntax using the NOT qualifier in my LDAP query. Say I
want to show all users in the domain EXCEPT the ones that are
disabled...this is how I would write it, but it doesn't return any records.
Can
someone tell me what I am missing? A parentheses somewhere?
ldifde -f c:\export.ldf -l
(objectclass,useraccountcontrol,samaccountname) -r
(!((&(objectclass=user)(samaccountname=*))(useraccountcontrol=66050)))
If I drop the NOT modifier, re-do the parentheses correctly,
and run your basic AND query I get all the results (but it includes disabled
accounts).
-Ben
hard time with the syntax using the NOT qualifier in my LDAP query. Say I
want to show all users in the domain EXCEPT the ones that are
disabled...this is how I would write it, but it doesn't return any records.
Can
someone tell me what I am missing? A parentheses somewhere?
ldifde -f c:\export.ldf -l
(objectclass,useraccountcontrol,samaccountname) -r
(!((&(objectclass=user)(samaccountname=*))(useraccountcontrol=66050)))
If I drop the NOT modifier, re-do the parentheses correctly,
and run your basic AND query I get all the results (but it includes disabled
accounts).
-Ben