The code listed below allows me to search for people in Exchange 5.1
when the application is run locally from a browser on the web server.

It runs well no matter who the authenticated, logged in user is.

However, when it is run from another machine (same URL), I get this
error message

Error Type:
Active Directory (0x80040E37)
An invalid directory pathname was passed


All of the machines are in the same domain.

ASP 3 web application configured for Windows Authentication.
Exchange server 5.1
Web server is win2k, IIS 5

Does anyone have any clues about why this is so ?



Set objConn = Server.CreateObject("ADODB.Connection")
objConn.Provider = "ADSDSOObject"

objConn.Properties ("User ID")="cn=exchangeadmin"
objConn.Properties ("Password")="eapassword"
objConn.Properties ("Encrypt Password")=True

objConn.Open "ADs Provider"


Set rsExchange = objConn.Execute("" & _
"SELECT employeeNumber, rfc822Mailbox, givenName, sn, uid " & _
"FROM 'LDAP://ex1/o=MyOrganisation/ou=MyDomain/cn=recipients' " &
_
"WHERE sn='" & vstrSurname & "'")