Click to See Complete Forum and Search --> : adsi and permission issues


zaff
05-09-2002, 02:21 PM
Hi,
I wrote a component in visual basic which uses ADSI. The purpose of this component is making some configurations on IIS 5.0 by modifying the metabase file. However , only administrators are allowed to use ADSI to modify the metabase. But when the script using my component is run by a visitor who has IUSR_<machine-name> account, it gives an error like "Permission denied.". The component works with the script which can only accessed by administrator account. So there is a problem with the ADSI behaviour of just accepting administrator account.
I have read so many related documents as Microsoft web site (msdn) and tried something written there to fix the problem. But unfortunately they didn't work. I think the problem may be fixed by using COM+ but after lots of attempts of mine, I couldn't succeed.
If anyone can help me on this issue, it will be appreciated so much.

Thanks ,

Zaff