About how to use COM + to improve the issue of ASP execution permissions!

xiaoxiao2021-03-06  82

We know that you want users to do anything in an operating system. Then the operating system checks if the user has permission to perform this action, if there is, it will execute, if not, it will refuse. This is the same truth as we browse the website. When we enter a string URL in the client, it is actually sent to the server to browse, in the operating system, it is also an operation, but also the user. Take Windows as an example, it uses: anonymous access to the built-in account of the Internet Information Services to perform this operation, so if your web file is removed, you will jump out of the dialog box if your web file is removed. Require the username and password. But in the actual situation, we often encounter such problems: How to perform its higher permissions with an anonymous access Internet information service. This may be difficult to understand and use examples. For example: We have a function of applying for a user on the website (the type of anonymous access), which means to build a user in the ASP code, and is the user in Windows, not the user in the database. However, if you want to build a user to go to the administrators group, it is obvious that we cannot add an anonymous access to the built-in account of the Internet information service to the Administrators group. So how do I do it? At this time, you can use COM (of course, the benefits of COM are not only the case), use VB or VC to make a DLL, there is a new user's function, then open an interface. Then register this DLL and add it to COM . Specific operations are: Start -> Program -> Management Tools -> Component Services -> Component Services -> Computer -> My Computer -> COM Shop -> Right click New -> Applications -> Next -> Create a Empty Application -> Enter Name (Casual) -> Select Server Applications -> Next -> Select this user -> Enter the users and passwords in the Administrators group -> Complete! Next, there is Just built the app name, in its next level, there is a component, right-click it, new components, you can import your own registered DLL! Finally, how to quote in the ASP In fact, it is the same as the reference to other DLLs, set obj = server.createObject ("), the execution of the interface is OK! I am also in learning, I hope everyone will communicate, if there is any mistake, please point out!

转载请注明原文地址:https://www.9cbs.com/read-105816.html

New Post(0)