> From: Charles Heizer [mailto:[EMAIL PROTECTED]
> Hi Mike,
> Thanks, for your response, this sounds cool.
>
> Ok, So let me understand this a bit more (sorry for my
> ignorance). I have about 10 different cfc's which all do
> various forms of cfldap quires, do you have an example on how
> you do this, I have not worked much with using a application
> scope other than to do session variables.
Charles,
Do you really need 10 CFCs? What do they do?
Basically the AD cfc is more like a collection of UDFs at the moment.
Putting it into the application scope lets me create the object once and use
it throughout the life of the application, passing in some kind of AD user
ID (network ID in my case) in order to get back specific information on that
user.
<cfset application.objAD =
CreateObject("component","AD").init('LDAP_bind_username','LDAP_bind_password
') />
isAuthorized('MichaelT190'); // Is Michael in AD?
getPhoneNumber('MichaelT190'); // Give me his phone number
etc..
HTH,
Mike
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:192802
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54