I am trying to recreate a script written in vbscript that have this filter for LDAP. I would like to get in to a PHP version of LDAP filter.
sFilter = "(&(&(|(&(objectCategory=person)(objectSid=*)(!samAccountType:184.108.40.206220.127.116.11:=3))" _
& "(&(objectCategory=person)(!objectSid=*))(&(objectCategory=group)(groupType:18.104.22.16822.214.171.124:=14)))" _
& "(objectCategory=user)(sAMAccountName=" & xUsrNm & ")))"
I am not used to querying for some many parameters.