in reply to Phone lookup on Exchange server

Have to say I haven't done much LDAP but just looking at the module I'm wondering if you tried the Net::LDAP::Filter object in the perl-ldap bundle. Seems to have a lot of flexibility, perhaps you can just feed it that normal users constant you have.. Can you post what you tried to do and why you failed?

Perhaps it would be good to sneak onto the line and listen to what is going between the clients and the server. In unix I might use tcpdump, or perhaps you have an LDAP server in debug mode.. Sorry I can't be of more help.

Move SIG!

Replies are listed 'Best First'.
Re: Re: Phone lookup on Exchange server
by jlf (Scribe) on Feb 13, 2002 at 17:26 UTC
    I did perldoc Net::LDAP::Filter but I'm afraid it was a bit too opaque for me, being an utter LDAP newbie.

    Some of my attempts to enumerate users with LDAP were:

    1. SEARCH_BASE="ou=OURSITE,o=OURORG", $filter="CN=Recipients" 2. SEARCH_BASE="ou=OURSITE,o=OURORG",$filter="cn=" 3. SEARCH_BASE="ou=OURSITE,o=OURORG",$filter="cn=*" 4. SEARCH_BASE="cn=Recipients,ou=OURSITE,o=OURORG", $filter = "" 5. SEARCH_BASE="cn=Recipients,ou=OURSITE,o=OURORG", $filter = FILTER_N +ORMAL_USERS
    All of these returned no results.

    Thanks for the suggestions. It sounds like I need to do some more hunting whereever Exchange admins congregate...

    Josh