19 January 2016

Ldap filter enabled users


(&(objectCategory=organizationalPerson)(objectClass=User)(userAccountControl:1.2.840.113556.1.4.803:=2))


for disabled users:

(&(objectCategory=organizationalPerson)(objectClass=User)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))

1 comment:

  1. Hi Marius. I think you have got those filters the wrong way around.

    ReplyDelete