in reply to Re: Phone lookup on Exchange server
in thread Phone lookup on Exchange server

Biz,

I see that your module searches by surname -- but how did you obtain your exhaustive list of Exchange users? (Or did you?) I had to resort to Win32::NetAdmin for that but it seems like there should be some LDAP query that accomplishes the same result.

Josh

  • Comment on Re: Re: Phone lookup on Exchange server

Replies are listed 'Best First'.
Re: Re: Re: Phone lookup on Exchange server
by jbisbee (Pilgrim) on Feb 13, 2002 at 18:58 UTC
    There is a max limit you can query on with LDAP (at least the exchange server that I played with did). I just queried on "A" through "Z" and figured that would work. Test this against your current list and make sure you get everyone.
    sub get_company_list { my ($self) = @_; my @company_list = (); for my $search ("A".."Z") { push @company_list, @{$self->search_lastname($search)}; } return \@company_list; }
    -biz-