Bug 642554

Summary: rdesktop fails against certain Win 2008 Terminal Services with "disconnect: Internal licensing error"
Product: Red Hat Enterprise Linux 5 Reporter: ritz <rkhadgar>
Component: rdesktopAssignee: Søren Sandmann Pedersen <sandmann>
Status: CLOSED ERRATA QA Contact: Desktop QE <desktop-qa-list>
Severity: high Docs Contact:
Priority: high    
Version: 5.6CC: desktop-qa-list, Jan.van.Eldik, kem, lmiksik, mdomonko, mschuppe, pep, pvine, rbinkhor, sandmann, vbudikov
Target Milestone: rcKeywords: OtherQA, Patch
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 744666 831095 (view as bug list) Environment:
Last Closed: 2013-10-01 00:45:31 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 726826, 831095, 836232, 928849    

Description ritz 2010-10-13 10:23:28 UTC
Description of problem:
rdesktop connections to certain Terminal Services fail
on the second connection (the first connection is successful).

Details:
- this only seems to happen when the TS is Win 2008 or Win 2008 R2 in
a "cluster" setup with licensing.

- Bugs are opened on the rdesktop Sourceforge site. A workaround is given:

> When I remove ~/.rdesktop/license.<hostname> I can connect ONLY ONE TIME,
> and after disconnect it fail again.

http://sourceforge.net/tracker/index.php?func=detail&aid=2803448&group_id=24366&atid=381347
http://sourceforge.net/tracker/index.php?func=detail&aid=2817779&group_id=24366&atid=381347

How reproducible:
100%

Steps to Reproduce:
Run rdesktop twice:

[root@lxslc5-amd64 ~]# ll ~/.rdesktop/
total 0
[root@lxslc5-amd64 ~]# rdesktop cerntsvmm
Autoselected keyboard map en-us
WARNING: Remote desktop does not support colour depth 24; falling back to 16
[root@lxslc5-amd64 ~]# ll ~/.rdesktop/
total 8
-rw------- 1 root root 2006 Sep 10 14:49 licence.lxslc5-amd64
[root@lxslc5-amd64 ~]# rdesktop cerntsvmm
Autoselected keyboard map en-us
disconnect: Internal licensing error.


Additional information:
 freerdp does not bother much with license ( discards them on program exit) , hence this issue is not seen with it. from freerdp/libfreerdp/freerdp.c int load_licence(unsigned char ** data) { return 0; } ... void save_licence(unsigned char * data, int length) { } 

Customer's configuration 
 - We have version of windows 2008 R2 (enterprise, not datacentre) 
 - We have CALS licenses per client 
 - License server contains Session Broker 
 - The cluster is configured in multicast, using port 3389: 


This issue is seen with upstream.

Comment 1 RHEL Program Management 2011-05-31 14:48:10 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated in the
current release, Red Hat is unfortunately unable to address this
request at this time. Red Hat invites you to ask your support
representative to propose this request, if appropriate and relevant,
in the next release of Red Hat Enterprise Linux.

Comment 7 J.H.M. Dassen (Ray) 2012-02-02 08:42:16 UTC
A new upstream release <http://sourceforge.net/projects/rdesktop/files/rdesktop/1.7.1/> includes
"* Fix for per-device license mode on Windows 2008 R2 terminal server"

As best as I can tell, this refers to this specific change:
<http://rdesktop.svn.sourceforge.net/viewvc/rdesktop/rdesktop/trunk/licence.c?r1=1642&r2=1641&pathrev=1642&diff_format=u>. Setting keyword "Patch" accordingly.

Comment 8 J.H.M. Dassen (Ray) 2012-03-08 09:36:10 UTC
(In reply to comment #7)
> As best as I can tell, this refers to this specific change:
> <http://rdesktop.svn.sourceforge.net/viewvc/rdesktop/rdesktop/trunk/licence.c?r1=1642&r2=1641&pathrev=1642&diff_format=u>.

This patch has been tested by my customer and they have confirmed it fixes this issue for them. Can we get a devel_ack for it please?

Comment 10 RHEL Program Management 2012-06-12 01:25:38 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated in the
current release, Red Hat is unfortunately unable to address this
request at this time. Red Hat invites you to ask your support
representative to propose this request, if appropriate and relevant,
in the next release of Red Hat Enterprise Linux.

Comment 13 Søren Sandmann Pedersen 2013-04-30 23:31:00 UTC
devel ack

Comment 21 Søren Sandmann Pedersen 2013-07-31 15:11:09 UTC
Build is here:

http://brewweb.devel.redhat.com/brew/taskinfo?taskID=6111027

Comment 25 errata-xmlrpc 2013-10-01 00:45:31 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2013-1367.html