Hi,

On Monday 29 September 2003 22:50, Steenhagen, Jacob wrote:
> I've been trying to write a simple perl script that will query the active
> directory via LDAP and give me a list of email addresses for disabled users
> (eg, addresses we don't want to accept email for anymore). I found a
> website or two that suggested I use the following as my filter:
>
> (&(objectCategory=person)(userAccountControl:1.2.840.113556.1.4.803:=2))
>
> I was beginning to think these websites were wrong as whenever I tried this
> filter, I'd go no results. With other filters, I'd get the results I'd
> expect to get. I then tried that filter in a couple other applications (one
> MS tool and a PHP script running on the same box as my perl script) and it
> worked as expected in those cases. In the interest of testing, I created a
> Net::LDAP::Filter object in my script and it seemed to parse the filter
> fine. But when I try to run it via the search routine of Net::LDAP I get
> the following error:
>
> I/O Error   at ./gather_email.pl line 24, <DATA> line 283.
>
>
> Unfortunately, I'm not an LDAP expert by any means nor am I at all familiar
> with the Net::LDAP code so I think I've hit a stand-still. Has anybody else
> experienced this (I did try a couple searches and came up empty). Or better
> yet, does anybody know how to fix it :).

It would help people willing to help you if they knew
* the interesting parts of your script
* the data you feed it
* the versions of Perl and perl-ldap you use

Peter

PS: the discaimer you send is ridiculous when sending to a mailing list
      with subscribers from all over the world.

-- 
Peter Marschall
eMail: [EMAIL PROTECTED]

Reply via email to