windows XP下DCOM的权限配置

XP下DCOM权限配置

Click Start, click Run, and then type DCOMCNFG.

  Code:[Copy to clipboard]  
Click Default Properties. Select Enable Distributed COM on this computer. Set the Default Authentication Level to Connect (None also works). Set the Default Impersonation Level to Identify (Impersonate also works).
Here are the rules regarding Authentication Level for J-Integra applications:

The Authentication Level doesn't matter if you are running in native mode.
The machine hosting the COM client/server application must be set to Connect or None level authentication, as this is all that J-Integra supports. It doesn't matter what the Authentication Level is on the machine running J-Integra.
For COM-accessing-Java applications, the Authentication Level on the COM client machine must be set to Connect or None.
For Java-accessing-COM applications, the Authentication Level on the COM server machine must be set to Connect or None.

Click Default Security.

Under Default Access Permissions click Edit Default. Add SYSTEM and INTERACTIVE. The user whose authentication credentials will be used to access the COM application must also be included in this list. There are many ways to do this. You can add the specific user or simply add a group the user belongs to. Possible values include:

Domain\Username (A specific user)
Domain\Administrators (All administrators on a specific domain)
Everyone (All users)

Under Default Launch Permissions click Edit Default. Make sure the Default Launch Permissions have the same values as the Default Access Permissions.

Click Default Protocols. Make sure Connection-oriented TCP/IP is listed first.

You must now configure the COM application you wish to access. Click Applications and right-click on the application you wish to configure. Select Properties. If your COM application is a DLL, you must first create a surrogate EXE for it using the SetDllHost tool. Once a surrogate EXE is created, the surrogate name will appear in the list of applications. Select Properties for the surrogate and continue on.

Click General. Set the Authentication Level to Default.

Click Location. Select Run application on this computer.

Click Security. Select Use default access permissions and Use default launch permissions.

Click Identity. Select The launching user. This setting specifies the account that will be used to run the COM application once it is launched by a client program. The launching user is the user account of the client process that launched the server, and is the recommended setting. Depending on the COM application you want to connect to, you may need to change this to:
The interactive user - The user that is currently logged on to the machine hosting the COM application (use this if you are going to access MS Excel and make it visible).
This user - Specify a user account that will always be used to run the COM application regardless of which user is accessing it.
For more information on "How To Configure Office Applications to Run Under the Interactive User Account" (which includes information on using Terminal Services), please see the References section at the bottom of this page.


Click Endpoints. Select default system protocols.

If you still get an "access denied" or "permission denied" error after configuring your DCOM settings, try rebooting your machine to allow the new settings to take effect.


--------------------------------------------------------------------------------

Configuring DCOM on Windows XP and Windows Server 2003

If the computer belongs to a workgroup instead of a domain, make sure that it does not use simple file sharing. Open Windows Explorer or double click My Computer, click Tools, then go to Folder Options, click View and uncheck Use simple file sharing (Recommended) in Advanced settings.

Click Start, click Programs, click Administrative Tools, click Component Services.

Expand Component Services, expand Computers, and right-click My Computer. Select Properties.

Click Default Properties. Select Enable Distributed COM on this computer. Set the Default Authentication Level to Connect (None also works). Set the Default Impersonation Level to Identify (Impersonate also works).
Here are the rules regarding Authentication Level for J-Integra applications:

The Authentication Level doesn't matter if you are running in native mode.
The machine hosting the COM client/server application must be set to Connect or None level authentication, as this is all that J-Integra supports. It doesn't matter what the Authentication Level is on the machine running J-Integra.
For COM-accessing-Java applications, the Authentication Level on the COM client machine must be set to Connect or None.
For Java-accessing-COM applications, the Authentication Level on the COM server machine must be set to Connect or None.

Click Default COM Security.

Under Default Access Permissions click Edit Default. Add SYSTEM, INTERACTIVE, and NETWORK. The user whose authentication credentials will be used to access the COM application must also be included in this list. There are many ways to do this. You can add the specific user or simply add a group the user belongs to. Possible values include:

Domain\Username (A specific user)
Domain\Administrators (All administrators on a specific domain)
Everyone (All users)

Under Default Launch Permissions click Edit Default. Make sure the Default Launch Permissions have the same values as the Default Access Permissions.

Click Default Protocols. Make sure Connection-oriented TCP/IP is listed first.

You must now configure the COM application you wish to access. Expand Component Services, expand Computers, expand My Computer, and click DCOM Config. Right-click on the application you wish to configure. Select Properties. If your COM application is a DLL, you must first create a surrogate EXE for it using the SetDllHost tool. Once a surrogate EXE is created, the surrogate name will appear in the list of applications. Select Properties for the surrogate and continue on.

Click General. Set the Authentication Level to Default.

Click Location. Select Run application on this computer.

Click Security. Set Launch Permissions to Use Default. Set Access Permissions to Use Default. Set Configuration Permissions to Use Default.

Click Identity. Select The launching user. This setting specifies the account that will be used to run the COM application once it is launched by a client program. The launching user is the user account of the client process that launched the server, and is the recommended setting. Depending on the COM application you want to connect to, you may need to change this to:
The interactive user - The user that is currently logged on to the machine hosting the COM application (use this if you are going to access MS Excel and make it visible).
This user - Specify a user account that will always be used to run the COM application regardless of which user is accessing it.
For more information on "How To Configure Office Applications to Run Under the Interactive User Account" (which includes information on using Terminal Services), please see the References section at the bottom of this page.


Click Endpoints. Select default system protocols.

If you still get an "access denied" or "permission denied" error after configuring your DCOM settings, try rebooting your machine to allow the new settings to take effect.


--------------------------------------------------------------------------------

Configuring DCOM on Windows XP SP2
Microsoft has added some DCOM security enhancements to Windows XP Service Pack 2. In addition to the above Windows XP DCOM configuration settings, you will need to perform the following steps.


1、If the computer belongs to a workgroup instead of a domain, make sure that it does not use simple file sharing. Open Windows Explorer or double click My Computer, click Tools, then go to Folder Options, click View and uncheck Use simple file sharing (Recommended) in Advanced settings.

2、Click Start, click Programs, click Administrative Tools, click Component Services.

3、Expand Component Services, expand Computers, and right-click My Computer. Select Properties.

4、Click Default COM Security.

5、Under Default Access Permissions click Edit Default. Make sure SYSTEM, INTERACTIVE, NETWORK, and the user whose authentication credentials will be used to access the COM application all have Local and Remote Access permissions.

6、Under Default Access Permissions click Edit Limits. Service Pack 2 comes with the following default values: ANONYMOUS LOGON (Local Access) and Everyone (Local and Remote Access). Make sure these values are listed, and then add the user whose authentication credentials will be used to access the COM application. Allow this user to have Local and Remote Access permissions.

7、Under Default Launch Permissions click Edit Default. Make sure SYSTEM, INTERACTIVE, NETWORK, and the user whose authentication credentials will be used to access the COM application all have Local and Remote Launch permissions, as well as Local and Remote Activation permissions.

8、Under Default Launch Permissions click Edit Limits. Service Pack 2 comes with the following default values: MACHINE\Administrators (Local and Remote Launch, Local and Remote Activation) and Everyone (Local Launch and Local Activation). Make sure these values are listed, and then add the user whose authentication credentials will be used to access the COM application. Allow this user to have Local and Remote Launch permissions, as well as Local and Remote Activation permissions.

9、Service Pack 2 comes with a built-in Windows Firewall. If the firewall is turned on, you will have to allow your COM application network access to your machine. You can do this by opening Windows Firewall and adding your COM application to the list of programs under the Exceptions tab. If Display a notification when Windows Firewall blocks a program is selected, then you will be prompted to unblock the COM application when you run your J-Integra application the first time. Select Unblock when prompted.

If you still get an "access denied" or "permission denied" error after configuring your DCOM settings, try rebooting your machine to allow the new settings to take effect.

转载于:https://www.cnblogs.com/sokoo/archive/2005/12/20/300720.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值