User:anonymousLog inRegister
Recents:
Windows XP Service Pack 2 settings enabling centralized licenses scheme

Errors may occur once Windows XP Service Pack 2 has been installed, when attempting to establish the connection with the license service (also happens with Windows 2003 and windows 2008 Servers). The problem arose since this Service Pack introduced several modifications regarding security that affect the DCOM connection between the licenses server and the clients. The possible errors are shown in the following figures and occur when attempting to enter to any tool (GeneXus, GXplorer, etc.) that uses centralized licenses :

Image:Licenses001

Image:Licenses002

The common solution for these problems are detailed here.

You should try the solution listed on that document and, if the errors still appears continue with the solutions listed in this document. We recommend trying the possible solutions in the same order as they are listed

1. Disable Windows Firewall

Windows Firewall is installed and turned on by default. If the company has already a Firewall in the network, having Windows Firewall turned on may not be necessary; therefore, the first option is disabling it. This is performed from Control Panel -> Windows Firewall as shown in the figure:

Image:Licenses003

To verify that the Firewall was turned off we recommend downloading the service Windows Firewall/Internet Connection Sharing (ICS) in Control Panel -> Administrative Tools -> Services

2. Enabling DCOM port (135) and applications

Quite often, having the Firewall turned off is not desirable; therefore, the best option is including DCOM (135) communications port and the applications (Protection Server, GeneXus, etc.) in the Firewall exceptions. You can setup these exceptions in Control Panel -> Windows Firewall, Exceptions tab:

Image:Licenses004

With the Add Port ... button you can add 135 port to the exceptions (in the server and in the clients), as shown in the figure:

Image:Licenses005

And with the Add Program ... button you can add the exceptions to the currently used applications. Specifically, the Protection Server must be added in the server exceptions (ProtSrv.exe); in GeneXus clients and in other currently installed tools (GXplorer, GXquery, etc.). If the programs are also installed in the license server, they must be also added in the Firewall exceptions.

 Image:Licenses006

3. Enabling ports range

For the Remote Procedure Calls (RPC)/Distributed Component Object Model (DCOM) protocols, RPC uses Transmission Control Protocol (TCP) port 135, and DCOM uses a nightmarish combination of TCP, User Data Protocol (UDP), ports, and connections.

DCOM is particularly troublesome for firewall access because it dynamically assigns ports to processes. By default, it freely assigns TCP and UDP ports ranging from 1024 to 65535, making it difficult to function securely across a firewall. In addition, new connections are established when responding to a client, meaning that the port the client used for the request is not the same as the port used for the response. Also, DCOM does not support Network Address Translation (NAT), which is among the more common methods of configuring a firewall.

For those cases where you have a local firewall you may need to enable ports some ports ranging from 1024 to 65535 (local intranet). To narrow the port range check the following reference (More Information).

You can enable a fixed port range so that Windows establishes the communications with the license server. You can setup this range in two different ways. In Control Panel -> Administrative Tools -> Component Services, in the left tree go to Component Services -> Computers -> My Computer and press the Configure My Computer button (selected in the figure below), or right click on My Computer in the tree and select Properties

Image:Licenses007

Then, you must select the Default Protocols tab

Image:Licenses008

You must select the TCP/IP protocol and press the Properties ... button. A window like the following one will be displayed:

Image:Licenses009

With the Add ... button you can enter a fixed ports range to be used; e.g.: 5001-5010

Image:Licenses010

Another way to setup this ports range is entering the following entry in the record:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Rpc\Internet]
"Ports"=hex(7):35,00,30,00,30,00,31,00,2d,00,35,00,30,00,31,00,30,00,00,00,00,\ 00,00,00"PortsInternetAvailable"="N" "UseInternetPorts"="N"

In short, make sure to enable the 135 port and the associated port range detailed above (in the sample 5001-5010) to connect to another machine to get licenses, otherwise you will get "Access is denied" error.

4- Editing DCOM rights (Application)

If the previous steps have not solved the problem, a fourth option would be attempting the edition of the DCOM rights. Firstly you attempt to edit the DCOM rights for the Protection Server application in the license server. If the license server does not have XP SP2 and the problem continues, you can try with point 5. Go to Control Panel -> Administrative Tools -> Component Services and then, in the left tree, go to Component Services -> Computers -> My Computer -> DCOM Config and select ProtSrvService in the applications list. Right click and select Properties. A screen like the following one will be displayed :

Image:Licenses011

On the screen shown, you must edit the launch and activation rights and the access rights (Launch and Activation Permissions and Access Permissions) by selecting the Customize option and pressing the Edit... button. You must select total access (select the four options) for the following groups: Everyone, Network, System and Interactive, as shown in the following figures:

Image:Licenses012Image:Licenses012A

5. Editing DCOM rights (System)

If you have not been able to solve the problem with the previous steps or if after step 3 the problem continues and the license server is not Windows XP SP2, you must try editing the system DCOM rights. This may be performed in the same window where you edit the fixed exit ports range for TCP/IP mentioned in point 3.
Firstly, you must verify that the distributed DCOM is enabled (in Default Properties tab, by selecting Enable distributed COM on this computer. Besides, Default Authentication Level must be in Connect and Default Impersonation Level in Identity.

Image:Licenses013

Then, you must setup access and launch rights (Access Permissions and Launch and Activate Permissions) in COM Security tab.

Image:Licenses014

You have to do the same in both places: first go to Edit Limits ... and setup the rights (for the group Everyone and ANONYMOUS LOGON), as shown in the following figures:

Image:Licenses015Image:Licenses015A

And then, in Edit Defaults ..., you must setup the rights for the following groups: Everyone, Network, System and Interactive, as shown in the following figures.

Image:Licenses016Image:Licenses016A

Notes and References :

Once you have made the different changes in the settings, we recommend restarting the corresponding PC. Regarding the license server, we recommend downloading the service and turn it on again.

SAC 16577
SAC 9809

Tool to test the DCOM connection
Security changes in Windows XP Service Pack 2
DCOM Settings for remote access
Use DCOM with firewalls

 

 

Created: 11/19/09 01:08 AM by fbonilla Last update: 03/25/13 12:30 AM by lsilveira
 
Page
Share
Categories
Group
Powered by GXwiki 4.0 Beta1 (generated with GeneXus X Evolution 2)