Users in a domain with NO login scripts

ldap

I'm trying to write an LDAP query for find all users in a domain with NO login scripts.
The following works for users with a login script = db.bat:
(&(objectCategory=user)(ScriptPath=DA.BAT))

However, what i thought will be the obvious logic for a Null ScriptPath field returns no values:
(&(objectCategory=user)(ScriptPath=""))

I'll appreciate any assistance.

Robd

Best Answer

This works for me:

(&(objectCategory=person)(objectClass=user)(!scriptPath=*)))
Related Topic