Subversion Repositories DevTools

Rev

Blame | Last modification | View Log | RSS feed

=========================================================================
        How to Build LoginAdmin.dll
=========================================================================
1. Open VB project file (LoginAdmin.vbp)
2. Build dll using File -> Make AdminLogin.dll menu option. This will create AdminLogin.dll


=========================================================================
        Register LoginAdmin.dll
=========================================================================
NOTE: If this dll existed before on this machine, you need to unregister first.

1. Copy dll to required machine
2. Go to that machine and using command prompt go to location of that dll
3. Run regsvr32 LoginAdmin.dll to register your dll. 


=========================================================================
        Unregister LoginAdmin.dll
=========================================================================
NOTE: This dll will be in use by IIS and you need to Unload the application
      using mmc.exe, before you can replace dll with new one.

1. Find which web applications use this dll by searching for string "LoginAdmin.ImpersonateUser"
   in .asp source files.
2. Using Internet Information Server plug-in in mmc.exe, go to those applications and Unload them.
   Do that by selecting the Properties of that application.
3. On Properties window, select Virtual Directory tab, and find Application Settings area.
4. Click on Unload button (Windows NT) to unload the application.
5. Using command prompt go to LoginAdmin.dll location.
6. Run regsvr32 /u LoginAdmin.dll to unregister dll.
7. Replace it with new dll and register again. Application will be loaded automatically when .asp page is ran.


=========================================================================
        Installing LoginAdmin.dll
=========================================================================
NOTE: This dll uses some windows API which require certain privileges to run.
      You need to go through this process only once when registering dll for the first time.

1. Application Protection 
   Run Internet Services Manager. Right-click the virtual directory in which your ASP script 
   is running and select Properties. On the "Virtual Directory" tab, set the Application Protection 
   option to Low (IIS Process) . If the option is disabled, click on the "Create" button first. 

   In Windows NT4 (IIS4), instead of the above, disable the option "Run in separate memory space". 

2. User Privileges 
   Grant the "Act as Part of Operating System" privilege to the user context under which the ASP script runs. 
   By default, IIS is configured for anonymous access under the user account IUSR_machinename 
   although you may have configured it differently. 

   This is usually only necessary in Windows NT 4 (IIS 4). To grant a user this privilege, go to 
   User Manager, select Policies/User Rights, check "Show Advanced User Rights", select "Act as Part of Operating System",
   and add your IIS user account. 

   This is usually not necessary in Windows 2000 or later, but here are the steps for that. 
   Go to Control Panel / Administrative Tools, and run Local Security Policy. Select User Rights Assignment 
   under Local Policies in the left pane. Double-click the "Act as part of the operating system" policy 
   in the right pane, and add your IIS user account. 

   Under some configurations, the IWAM_machinename account is also used. You can try adding this privilege to 
   that user account as well.