Something changed in Net::LDAP a couple of years ago.. try the following syntax:
(useraccountcontrol:dn:1.2.840.113556.1.4.803:=2)
Note the :dn:
On Wed, December 6, 2006 11:28 am, Lyndley Nygel wrote:
>
>
> Hi,
>
>
>
> I'm having an issue list disabled computer accounts on an LDAP query though
>
Hi,
I'm having an issue list disabled computer accounts on an LDAP query though
Net::LDAP to active directory, a cut down query as example :
(&(sAMAccountType=805306369)(userAccountControl:1.2.840.113556.1.4.803:=2))
Should locate server accounts which have the disabled flag set.