This has worked for us...  You'll need to know the Organization name as it's
stored in the Exchange directory....

<cfldap action="QUERY"
        name="newLDAP"
        attributes="cn,mail,dn"
        scope="subtree"
        server="Your Server Name or IP"
        start="o=Your Organization Name"
          filter="cn=*"
          sort="cn ASC">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>LDAP Test</title>
</head>
<body>
<table>
<TR>
  <TH>Common Name</TH>
  <TH>E-Mail Address</TH>
  <TH>UserName</TH>
  <TH>Company Name</TH>
  <TH>Distinguished Name Vars</TH>
</TR>
<CFOUTPUT query="newLDAP">
<CFSCRIPT>
usrname = listfirst(dn, ",");
usrname = Mid(usrname, (find("=", usrname) + 1), len(usrname));
company = listgetat(dn, "2", ",");
company = Mid(company, (find("=", company) + 1), len(company));
</CFSCRIPT>
<TR>
  <TD>#cn#</TD>
  <TD>#mail#</TD>
  <TD>#usrname#</TD>
  <TD>#company#</TD>
  <TD>#dn#</TD>
</TR>
</CFOUTPUT>
</table>
</body>
</html>

HTH,

Jeff Garza
Lead Developer/Webmaster
Spectrum Astro, Inc.
480.892.8200
[EMAIL PROTECTED]
http://www.spectrumastro.com



-----Original Message-----
From: Dave Bosky [mailto:[EMAIL PROTECTED]] 
Sent: Friday, January 18, 2002 7:21 AM
To: CF-Talk
Subject: Using CFLDAP w/MS Exchange 5.5


Has anyone used the cfldap tag to query MS Exchange for a list of names?
I always receive one of two errors. --If I don't use username/password
attributes I get the error msg 'Protocol Error'. --If I use
username/password attributes I get the error msg 'Invalid Credentials'.
 
I even had our Network/Exchange admin use his account information and it
Returned Invalid Credentials.  
 
Any idea where the problem might be? 
 
Thanks,
Dave
 


______________________________________________________________________
Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation � $99/Month � Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to