Hi Mike, I have many different cfc for performing different tasks, the site I'm developing is a web management tool for AD(actually using ADAM which is mirroring our environment for this application). I have the site fully working, it's just that I'm now going through it and making it more secure.
I really do appreciate the help, and I will do more investigation in to using the CreateObject. Thanks, - Charles On Feb 2, 2005, at 12:37 PM, Michael T. Tangorre wrote: >> 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_pas > sword > ') /> > > > isAuthorized('MichaelT190'); // Is Michael in AD? > getPhoneNumber('MichaelT190'); // Give me his phone number > > etc.. > > HTH, > > Mike > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:192813 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

