DCOM连接的MIDAS问题(50分)

  • 主题发起人 主题发起人 giglgo
  • 开始时间 开始时间
G

giglgo

Unregistered / Unconfirmed
GUEST, unregistred user!
我用DCOM连接远端服务器(连接本机没问题),出现‘ACCESS DENIED’,怎么办?
 
配置dcom,用dcomcnfg.exe来配置,Dcom这个东西和域、权限都有关系的
 
如果你用域服务器,请登录到域
如果不是,那你客户机的登录帐号(用户名、密码)都必须在服务器用户帐号中,
即如果客户机用administrator/mypass登录,那服务器的administrator用户密码
也必须是mypass
-----
http://www.8421.org
 
有答案的话请也告诉我.
 

http://www.codeproject.com >> COM/DCOM/COM+ >> Unedited Reader Contributions
DCOM Access Denied Problem
By Shadi Al-Kahwaji
This article is wlaking you through configuring two computers to share COM component as a distributed component(DCOM). VC5, VC6, Win95, Win98, NT4, W2K, MFC, ATL
Posted 8 Oct 2001
5,160 views

[This is an unedited reader contribution]



7 users have rated this article. result:
3.29 out of 5.
Introduction
What makes you feel better when you work as a team that there are people near to you who can give you the help whenever you need, and you have to be ready to help them when they need the help. I was working with a team, using COM technology in our project, and we have faced the DCOM problem as most of you, and we have solved it gracefully. We decided as a team todo
cument the required steps to configure a smooth DCOM component. Thanks for Naim Tobassi and Rebat Hiary who made these steps available for me, and now I'm posting these steps for all Code Project people.
DCOM
The Distributed Component Object Model (DCOM) is a protocol that enables software components to communicate directly over a network in a reliable, secure, and efficient manner. Previously called "Network OLE," DCOM is designed for use across multiple network transports, including Internet protocols such as HTTP. DCOM is based on the Open Software Foundation's DCE-RPC spec and will work with both Java applets and ActiveX components through its use of the Component Object Model (COM).
DCOM Configuration
Before starting, I’ll define the following terms:
PC1: is the name of the machine which will play the Client role.
PC2: is the name of the machine which will play the Server role (Component will be accessed here).
Rebat Hiary: is the name of the user who will run the applications on PC1 which are need the DCOM on PC2.
Naim Tobassi: is the name of the user who will be logged in while accessing the DCOM on PC2.
How to Configure the Server Side
Register you component
Open the dcomcnfg tool
In the Applications tab, select your application, Click on Properties… button
Properties -> General tab -> Authen
tication Level combo box. Select Default.
Properties -> Location tab. Select Run application on this computer.
Properties -> Security tab. Select Use custom access permissions option box, click on Edit button, and then
click on Add button to add the following users (Allow Access):
Rebat Hiary
Properties -> Security tab. Select Use custom launch permissions option box, click on Edit button, and then
click on Add button to add the following users (Allow Launch):
Rebat Hiary
PC2/Administrators
System
Interactive
Properties -> Security tab. Select Use custom configuration permission option box, click on Edit button, and then
click on Add button to add the following users:
Naim Tobassi
Rebat Hiary
Everyone
System
Owner creator
PC2/Power Users
PC2/Administrators
Properties -> Identity tab. Select The interactive user option box.
Click on OK button to return back to the Distributed COM Configuration Properties window.
Default Properties tab. Select Enable Distributed Com on this computer check box.
Default Properties tab -> Default Authen
tication Level combo box. Select Connect.
Default Properties tab -> Default Impersonation Level combo box. Select Anonymous.
Default Security tab. On the Default Access Permission frame click on Edit Default… button, and add the following users (Allow Access):
Everyone
Rebat Hiary
Default Security tab. On the Default Launch Permission frame click on Edit Default… button, and add the following users (Allow Launch):
Everyone
Interactive
PC2/Administrators
System
Rebat Hiary
Default Security tab. On the Default Configuration Permissions frame click on Edit Default… button, and add the following users:
Naim Tobassi
Everyone
System
Creator Owner
PC2/Power Users
PC2/Administrators
How to Configure the Client Side
Register your component.
Open the dcomcnfg tool.
In the Applications tab, select your application and click on Properties… button.
Properties -> General tab -> Authen
tication Level combo box. Select Default.
Properties -> Location tab. Remove selection from Run application on this computer option box, and select Run application on the following computer option box. Click on Browse... button, and select the requested target machine (PC2).
Properties -> Security tab. Select Use custom access permissions option box. Click on Edit button, and then
click on Add button, add the following users (Allow Access):
Rebat Hiary
Everyone
Properties -> Security tab. Select Use custom launch permissions option box, click on Edit button, and then
click on Add button, add the following users (Allow Launch):
Everyone
Rebat Hiary
PC1/Administrators
System
Interactive
Properties -> Security tab. Select Use custom configuration permission option box, click on Edit button, and then
click on Add button, add the following users:
Rebat Hiary
Everyone
System
Creator Owner
PC1/Power Users
PC1/Administrators
Properties -> Identity. Select The interactive user option box.
Click on OK button to return back to the Distributed COM Configuration Properties window.
Default Properties tab. Select Enable Distributed com on this computer check box.
Default Properties tab -> Default Authen
tication Level combo box. Select Connect.
Default Properties tab -> Default Impersonation Level combo box. Select Anonymous.
Default Security tab. On the Default Access Permissions frame click on Edit Default… btton, click on Add and add the following users (Allow Access):
Everyone
Rebat Hiary
Default Security tab. On the Default Launch Permissions frame click on Edit Default… button, click on Add and add the following users (Allow Launch):
Interactive
PC1/Administrators
System
Default Security tab. On the Default Configuration Permissions frame click on Edit Default… button, click on Add and add the following users:
Rebat Hiary
Everyone
System
Creator Owner
PC1/Power Users
PC1/Administrators
(VERY IMPORTANT) Delete the EXE component from client machine.
Notes:
If the above steps didn't work with you, you can make the following as extra steps:
Generate the Proxy/Stub DLL.
Register it on both machines, PC1 and PC2.
If you found that these steps are missing something important, please, inform me just to update this article.
Warning! Playing with DCOMCNFG tool incorrectly, might harm your machine.

Visit http://www.codeproject.com/useritems/dcomcnfg.asp to view the 5 comments posted about this article, or to post your own comments on this article.
Home >> COM/DCOM/COM+ >> Unedited Reader Contributions
Updated: 8 Oct 2001 Article content copyright Shadi Al-Kahwaji, 2001
everything else
Copyright ©
CodeProject, 1999-2002.
 
多人接受答案了。
 
后退
顶部