ldifde

B

barry

Hi

Quick - and possibly easy - question. I'm trying to use ldifde to export a
list of users that don't have a certain parameter. Wahts the "does not
equal" in ldifde? I've tried <> and !=.

ldifde -r "(scriptpath!=default.bat)" -f c:\export.txt -l
"DN,givenname,scriptpath"
Doesn't work. It works fine if i change it to a "="

I'm in the middle of consolidating logon scripts, and before I delete the
old scripts, I want to make sure that no one is using them..

Or am I going about this wrong and there's an easier way?

Thanks
Barry
 
D

Dean Wells [MVP]

Use -

(!(scriptpath=c:\default.bat))

.... as your filter.

As an aside and wherever possible, I would recommend using some
derivative of the following syntax which incorporates the use of an
'and'ed query against an indexed attribute thereby reducing the scope of
the query to the index, not the entire directory -

((&(objectcategory=person)(objectclass=user))

.... objectCategory is indexed.
 
B

barry

ah thanks a lot!


Dean Wells said:
Use -

(!(scriptpath=c:\default.bat))

... as your filter.

As an aside and wherever possible, I would recommend using some derivative
of the following syntax which incorporates the use of an 'and'ed query
against an indexed attribute thereby reducing the scope of the query to
the index, not the entire directory -

((&(objectcategory=person)(objectclass=user))

... objectCategory is indexed.

--
Dean Wells [MVP / Directory Services]
MSEtechnology
[[ Please respond to the Newsgroup only regarding posts ]]
R e m o v e t h e m a s k t o s e n d e m a i l
barry said:
Hi

Quick - and possibly easy - question. I'm trying to use ldifde to export
a list of users that don't have a certain parameter. Wahts the "does not
equal" in ldifde? I've tried <> and !=.

ldifde -r "(scriptpath!=default.bat)" -f c:\export.txt -l
"DN,givenname,scriptpath"
Doesn't work. It works fine if i change it to a "="

I'm in the middle of consolidating logon scripts, and before I delete the
old scripts, I want to make sure that no one is using them..

Or am I going about this wrong and there's an easier way?

Thanks
Barry
 

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. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top