Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can COM access other servers?
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
01149756
Message ID:
01151618
Views:
40
The IUSR_ account has next to no rights, so if you need to access anything on the machine you'll either need to give explict permissions or you need to change the default account.

For development it's easiest to switch to another account. For production though I'd recommend you use COM+ for your component. COM+ lets you configure the Impersonation for your component so you can override the IUSR_ account. The impersonating account then becomes the account that your server runs under and has the rights you need to access your data files, the registry or whatever Network resources you need access to.

+++ Rick ---


>> SYS(0) will return the identity of the account that's running your COM component. Just add method to your server that returns this value. I tend to add a single status method to all COM servers that returns information like startup path, PATH, user id etc. so that i can see this information at a glance.
>> It's vital to understand this info before you can even begin to properly configure security <g>...
>
>Thanks for the response Rick!
>I do track SYS(0) and it shows:
>
>SYS(0) - Network Machine Name = FRS-1 # IUSR_XXX-1
>
>Also: SYS(5) shows
>SYS(5) - DEFAULT drive = C:
>
>This identity is our Internet Guest Account (Built-in account for anonymous access to Internet Information Services) so that our COM object can access different directories on the drive. The 'User Cannot Change the Password' option is set as is 'Password Never Expires'.
>
>I access methods of my COM object via ASP. And my COM object is built with VFP 8.
>
>My problem is that we have attached another server which I can map to if I remote in but not sure how to access from the COM.
>
>-Thanks!
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform