Hi, I was wondering if someone could help me out with some LDAP help. I am trying to write a page that verifies a users id and password against an LDAP server, but I am unsure of what I should be checking for. Here is the code that I am using:
<cfset serv = "some-ldap-server"> <cfldap action="QUERY" name="test" scope="SUBTREE" attributes="*" start="ou=NEW-YORK,o=CREDIT-SUISSE" filter="uid=#Form.username#" server="#serv#" port="389" username="cn=#Form.username#" password="#Form.password#"> <CFOUTPUT QUERY="test"> #test.columnList# </CFOUTPUT> If I try it with my NT login and password all I get back on the screen is NAME,VALUR repeated 11 times. If I use the wrong password I get this: Error Diagnostic Information CFLDAP Invalid credentials The error occurred while processing an element with a general identifier of (CFLDAP), occupying document position (3:1) to (6:72). Date/Time: 11/25/02 19:02:09 Browser: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT) Remote Address: 169.37.88.63 HTTP Referer: http://snyc11612.app.csfb.net/mario/test_ldap_badpwd.cfm Do I need to trap for this error, to force users to try again. If anyone has any examples or any idea that would be great. Thanks in advance Mario This message is for the named person's use only. It may contain sensitive and private proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you are not the intended recipient, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. CREDIT SUISSE GROUP and each legal entity in the CREDIT SUISSE FIRST BOSTON or CREDIT SUISSE ASSET MANAGEMENT business units of CREDIT SUISSE FIRST BOSTON reserve the right to monitor all e-mail communications through its networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity. Unless otherwise stated, any pricing information given in this message is indicative only, is subject to change and does not constitute an offer to deal at any price quoted. Any reference to the terms of executed transactions should be treated as preliminary only and subject to our formal written confirmation. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting.

