Glad I could help. What LDAP directory are you using? Active Directory or something else?
In AD, if there is a user, you should get the "CN" as you requested. It should never be empty. If there is no user, you will get an empty query. Try using attributes="*" and see if you get anything back. Using "*" for testing is fine, but I don't recommend using it for real work. First, it brings back too much data, including binary voicemail recordings, (if you have Cisco Call Manager, for example) and it only brings back one value in a multi-value field such as "memberOf". Again, I'm using AD and these things work for me. Now that I look at your code a bit more, you need to specify the filter attribute such as: filter="sAMAccountName=#userName#" (Again, this is AD.) That is, if the same username for the credentials is the same for the CN you wish to retrieve. By not specifying a filter, you are asking for all kinds of stuff. One of those stuff probably doesn't have a CN or, at least, doesn't support returning the CN. M!ke -----Original Message----- From: Victor Moore [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 23, 2005 9:56 PM To: CF-Talk Subject: Re: LDAP question Modifying the start attribute to Mike's format worked. Hurray!!! So in may case this works: <cfldap action="query" name="getUser" start="dc=companyName, dc=com" scope="SUBTREE" maxrows="1" server="#serverIP#" attributes="cn" username="#userName#" password="#userPassword#" port="389"> If the user exists will return a query. Unfortunately it's all the time an empty query, regarding what I put in the attributes list. For the time being I am OK but I would like very much to be able to return some info and not just verify that the user exists. Thanks Mike Victor ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:196295 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

