Solved

Domain name is wrong when using remote web workplace

Posted on 2013-10-22
2
664 Views
Last Modified: 2013-10-26
Our company's domain name for our Windows network is, e.g.

"ourbigcompanyinc.com"

And the short version of that is:

"BIGCOMPLTD"

However, when I log in to remote web workplace on SBS 2003, and I attempt to "connect to a computer at work" using the Remote Desktop utility, the username defaults to:

"ourbigcompanyinc\username".

Which is wrong... because the short domain name is "BIGCOMPLTD", not "ourbigcompanyinc".

Where is this stuff configured? Is there anywhere in remote web workplace (or in active directory in general) where I can configure the domain name?

---

My question is actually very similar to this person's:

http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Server/SBS_Small_Business_Server/Q_27513178.html

And this person seemed to have found a solution but I don't understand what they did:

http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Server/Remote_Desktop-Terminal_Services/Q_25713461.html

But I need an actual solution. The NETBIOS name is populated incorrectly in SBS 2003 Remote Web Workplace because my NETBIOS name is different from the left hand side of my FQDN name.
0
Comment
Question by:Frosty555
  • 2
2 Comments
 
LVL 31

Accepted Solution

by:
Frosty555 earned 0 total points
ID: 39602734
Okay, I solved this one myself with a hack.

The problem was not a configuration issue in active directory, rather it was just a bug in the Remote Web Workplace code, which you can tweak manually.

The problem is Remote Web Workplace incorrectly assumes that your NETBIOS domain name will just be the left hand side of your regular domain name (e.g. full domain is ourbigcompanyinc.com, netbios name is assumed to be OURBIGCOMPANYINC). This is not correct in my domain.

So to fix it, you can edit the code in RWW and force it to use the desired domain name.

Make a backup, and then edit the file:

C:\INETPUB\Remote\tsweb.aspx

Put a note on line 33 after the <body> tag stating that you edited the file, so that a future administrator doesn't get totally confused by the behavior of Remote Web Workplace. e.g.:

...
	<body scroll=yes text="black" bottomMargin="0" bgColor="white" leftMargin="0" topMargin="0" rightMargin="0">

NOTE TO ADMINISTRATORS: This script has been  customized to force the "BIGCOMPLTD" domain name instead of using the (incorrect) HTTP GET parameter. See line 356 of C:\inetpub\remote\tsweb.aspx.
	
    <form id="headerform" runat="server">
...

Open in new window


Now, roughly around line 356, change this code:

			' If there is a domain name, set it
			domain = getQS("Domain")		

Open in new window


To this:

			' If there is a domain name, set it
			domain = "BIGCOMPLTD"		

Open in new window


Save it, and and now the domain name will be forced to "BIGCOMPLTD" when you attempt to remote desktop into a computer via Remote Web Workplace.

Obviously this is a fragile change. It can get reverted by Windows via an update or something else. Also it's only appropriate when you have a single domain. But it worked for me.
0
 
LVL 31

Author Closing Comment

by:Frosty555
ID: 39602736
Found my own solution
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
HTTPSendRequest with WinINet delays on first call 11 78
domain and forest trust 1 31
Changing logon server question 5 61
Decommissioning DNS server question 3 27
We recently endured a series of broadcast storms that caused our ISP to shut us down for brief periods of time. After going through a multitude of tests, we determined that the issue was related to Intel NIC drivers on some new HP desktop computers …
I'm a big fan of Windows' offline folder caching and have used it on my laptops for over a decade.  One thing I don't like about it, however, is how difficult Microsoft has made it for the cache to be moved out of the Windows folder.  Here's how to …
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question