I apologize for the repost on this... I originally tried posting it via NNTP and 
didn't see it show up so I thought (incorrectly) that NNTP was read-only and to get 
the message through I had to send it via the mailing list.

--
 "Outlook not so good." That magic 8-ball knows everything! I'll ask about Exchange 
Server next. 


-----Original Message-----
From: Jake [mailto:[EMAIL PROTECTED]
Sent: Monday, September 29, 2003 4:17 PM
To: [EMAIL PROTECTED]
Subject: Net::LDAP, Active Directory and Disabled Users


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 begining 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 intrest 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.


Unfortuantely, 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
expierenced this (I did try a couple searches and came up empty). Or better
yet, does anybody know how to fix it :).


Thanks,
Jake




* EMAIL DISCLAIMER AND TERMS OF USE *
The information transmitted is intended only for the person to whom it is addressed 
and may contain confidential and/or privileged material. If you have received an email 
in error please notify [EMAIL PROTECTED] and then delete all copies of it from your 
systems.
Any use of, or any action relying upon, information in an email by persons other than 
the intended recipient is prohibited.
Although Hilite International scans incoming and outgoing emails and email attachments 
for viruses we cannot guarantee a communication to be free of all viruses nor accept 
any responsibility for viruses.

Although Hilite International monitors incoming and outgoing emails for inappropriate 
content, Hilite International cannot be held responsible for the views or expressions 
of the author.
The views expressed may not necessarily be those of Hilite International and Hilite 
International cannot be held responsible for any loss or injury resulting from the 
contents of a message.

Reply via email to