>I actually already modified it to return a Boolean and was going to ask - where would my retrieveUser function live? If I have authenticate.cfc, which I've modified to call cfldap.cfc instead of tying LDAP to my authentication function, should retrieveUser be a part of authenticate.cfc?
This is where Sean and I were heading. You have now found the need to refactor your component into more than one. Authentication.cfc has no business retrieving data. What happens if you want to return data *after* you have already returned it once? For example, you need to refresh data that is stored in the session scope. Does that mean you have to call authenticate's methods just to get the data? I hope not. I would call a method from a CFC that is built just for ldap queries. It's great when things start to click isn't it?! M!ke ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com). An archive of the CFCDev list is available at www.mail-archive.com/[email protected]
