We require a component for use with ASP that will impersonate a local account given the correct details and ammend the security permissions on a given file as required. It must be possible to specify the following details at run time: Username Password File name and location Required Group/User Grant/Revoke Permission Level Inheritance Type If necessary it can be written as two separate objects, one to carry out the initial user authentication and one to change the file permissions, but a single object would be preferrable. E.g. it should be possible to write the following code which would impersonate the Windows account “test_user?? and change the security permissions on the file “C:\[url removed, login to view]?. Set MyObj = [url removed, login to view]("[url removed, login to view]") sResult = [url removed, login to view](“test_user??,??test_password??) if (sResult = 1) then ' it is a valid password fresult=[url removed, login to view]("C:\[url removed, login to view]","Grant","Everyone","Change","No Inheritance") If fresult = 1 Then ‘Success ‘ rest of code Else ‘Change perms failed ‘Some error code End If Else ‘login failed ‘some error code end if set MyObj = nothing
Required: Fully compiled and functional component + fully commented source code Language: Visual Basic or Visual C System: Windows 2000 Complete ownership and distribution copyrights to all work purchased.