<< Back to Documentation
How to register
and use HTTPCommanderADSI COM:
A. Open HTCOMNET\web.config file in NotePad. Find string <add key="GET_AD_INFO_TYPE" value="somevalue" /> and replace with the <add key="GET_AD_INFO_TYPE" value="HCADSI_COM" /> , save file.
B. Set NTFS permissions for users to execute and read file HTCOMNET\hcADSI\hcADSI_COM\hcADSICOM.dll .
C. Run "regsvr32 Path_to_hcADSICOM.dll" to register DLL.
D. Grant COM to run under Administrator role (or any user which have "read group membership" permissions in AD):
1. Start the Administrative Tools->Component
Services tool.
2. Navigate to Component Services, Computers, My Computer, and then COM+ Applications.
3. Right-click COM+ Applications, and click New; then click Application.
4. Click Next when the COM Application Install Wizard starts.
5. Click Create An Empty Application.
6. Enter the name of the application, HTCOMNET, and make sure that Server Application
is selected. Click Next.
7. Select the This User check box, and enter the application identity: DOMAINNAME\Administrator
(you must to enter Domain name\your domain administrator’s name). The password
is his password.
8. Click Next, and then click Finish.
The next step is to add COM+ roles to the
application. To keep things simple, we'll allow all users to access the component.
1. Select and right-click the Roles node under the HTCOMNET application.
2. Click New, and then click Role.
3. Enter Everyone, and click OK.
4. Right-click the Users node.
5. Click New, and then click User.
6. Enter the object name: Everyone in Select Users And Groups dialog box; click
OK.
Now you need to add the hcADSICOM.dll
component to the COM+ application:
1. Select and right-click the Components node under HTCOMNET application.
2. Click New, and then click Component.
3. Click Next when the COM Component Install Wizard starts.
4. Click Install New Component(s).
5. Locate the hcADSICOM.dll (it stores in HTCOMNET\hcADSI\hcADSI_COM\ folder),
and select it by clicking Open.
6. Click Next, and then click Finish.
7. Right-click the Components node under HTCOMNET application, and choose Refresh
from the context menu.
Now we need to set up some security settings
on the application. Most notably, we need to enforce security checks, make the
application support delegation, and allow everyone to launch this application.
1. Select and right-click the HTCOMNET application; then choose Properties from
the context menu.
2. Click the Security tab.
3. Select the Enforce Access Checks For This Application check box.
4. Choose Delegate from the Impersonation Level drop-down list box.
5. Click OK.
6. Right-click the HTTPCommanderADSI.MainClass component, and choose Properties
from the context menu.
7. Click the Security tab.
8. Select the Enforce Component Level Access Checks check box.
9. Select the Everyone Role check box.
10. Click OK.
<< Back to Documentation
|