Questions about how to use COM + to improve ASP execution permissions!

Source: Internet
Author: User
We know that it takes a user to perform any operation on an operating system. The operating system then checks to see if the user has permission to perform the operation, and if so, it is executed, and if not, it is rejected. This and we browse the site is the same truth, when we enter a string of URLs in the client and execute, is actually sent to the server to browse the request, in the operating system, it is also an operation, but also the need for users. In Windows, for example, this is done by using a built-in account that accesses Internet information services anonymously, so if your Web page file removes the user's permissions (usually everyone or users), it jumps out of the dialog box and asks for a username and password.

But in reality, we often encounter the problem of how to perform its higher permissions with the built-in account that accesses the Internet information service anonymously. This may be difficult to understand, by example. For example: We do a user function on the website (anonymous access), that is, to build the user in the ASP code, and is the user in Windows, not the user in the database. However, if the user is to be built into the Administrators group, it is clear that we cannot add the built-in account for anonymous access to Internet information services to the Administrators group. So how do I do it?

This time you can use COM + (of course, COM + benefits more than that), using VB or VC to do a DLL, which has the function of creating new users, and then open an interface out. Then register the DLL and add it to COM +.

The specific actions are:
Start-> program-> Administration Tools-> Component Services-> Component Services-> computer-> My Computer->com+ the program-> right click New-> application-> next-> Create an empty application- > Input name (casual)-> Select Server Application-> Next-> Select this user-> enter the Administrators group user and password-> complete!

Next, there is a just-built application name under the application, and at the next level, there is a component, right-click it, create a new component, and import your own registered DLL into it!

Finally, how to quote in ASP, in fact, and referencing other DLLs is the same, set Obj=server. CreateObject (""), execute that interface on it!

I am also in the study, I hope that we communicate with you, if there are any mistakes please point out in time!



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.