Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CF & Exchange via OLE DB

Status
Not open for further replies.

Jminer

Programmer
Jan 16, 2001
1
US
I'd like to use the company address book information within a .cfm page. I am having trouble connecting via CF administrator. Could someone who has successfully connected to MS Exchange via OLE DB respond with tips?
 
Never done it, but I'm positive it's possible. Since both products (CF and Exchange) have LDAP support, you can use the CFLDAP tag to query the recipients container of your company. Check this out:

<CFLDAP
ACTION=&quot;QUERY&quot;
ATTRIBUTES=&quot;cn,mail&quot;
SERVER=&quot;server.YourCompany.com&quot;
NAME=&quot;MyCompanyList&quot;
START=&quot;cn=COMMON_NAME, ou=ORGANIZATION_UNIT, o=ORGANIZATION&quot;
FILTER=&quot;objectClass=organizationalPerson&quot;
SCOPE=&quot;SUBTREE&quot;>

You can display the retrieved data with a simple <CFOUTPUT QUERY=&quot;MyCompanyList&quot;>.
Make sure you have Anonymous access enabled on the Exchange server, and that this anonymous account has sufficient rights for browsing.
Try it out and let me know if it worked! :)

<webguru>iqof188</webguru>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top