Are you talking about Exchange 5.5? If not, Exchange 2K+ doesn't have its own directory, you use AD. If you are talking about Exchange 5.5, it uses a different layout of the directory and the classing is different. You should peruse the 5.5 SDK.
 
  joe


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Judson, Richard
Sent: Tuesday, August 03, 2004 2:15 PM
To: [EMAIL PROTECTED]
Subject: LDAP & Exchange

Hi guys,
 
Had a question.
 
On and AD server I can format a query in perl like this:
 
$ldap = Net::LDAP->new("<ad.domain>") or die "Can't connect [EMAIL PROTECTED]";
$ldap->bind("<bind user>", password=>"<password>") or die "Can't bind: [EMAIL PROTECTED]";
$page = Net::LDAP::Control::Paged->new( size => 1000 );
@args = (base     => "DC=?,DC=?,DC=?,DC=?",
           scope    => "subtree",
           filter   => "(&(objectCategory=person)(objectClass=user))",
            control  => [ $page ],
);
 
With additional code and I can get a list of users back with their OUs. When I do this against an Exchange server I get an empty list. I think the filter is wrong. Is the filter format different for Exchange?
 
Richard
_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to