[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Change Log In Defaults on Terminal Server 2008

Posted on 2011-04-25
2
Medium Priority
?
385 Views
Last Modified: 2012-05-11
This is REALLY bugging me - I have recently installed a new Terminal server running 2008.  Whenever my users who are connecting from outside my domain\LAN attempt to connect, the log in tries to use the local server log in instead of my domain.  It's a total pain to have my users click the log in as other user or have them specify the log in user on the client (this needs to be as seamless as possible).

is there an ability to change the default domain?  
0
Comment
Question by:JamesonJendreas
  • 2
2 Comments
 
LVL 4

Accepted Solution

by:
nwgservices earned 2000 total points
ID: 35465076
Hi JamesonJendreas

Please check if  this helps in anyway.

There is a link pointing to the following :

Hi,

The solution we employed was to tweak the underlying web files to better handle the domain.  We only have one domain so this was fixed, what I did was edit the renderscripts.js file (which includes the JS procedure which occurs after the login dialog 'submit') to check to see if the user has entered a domain (checking whether a backslash exists) and if not physically edit the edit box contents with the new domain.

In the renderscripts.js file look for the function onLoginFormSubmit(), where it probes the username edit box simply insert the domain.  The code extract below includes a peice from the original file which shows you where it should be placed together with the new code (separated by blank lines).  In this instance the domain is called CHARLYMONKEY.

    if ( objForm != null )
    {
        strDomainUserName = objForm.elements("DomainUserName").value;

        // add default domain...
        if ( strDomainUserName.indexOf("\\") == -1 )
        {
          strDomainUserName = "CHARLYMONKEY\\" + strDomainUserName;
          objForm.elements("DomainUserName").value = strDomainUserName;
        }

        strPassword = objForm.elements("UserPass").value;
        strWorkspaceId = objForm.elements("WorkSpaceID").value;

It is messier that an RDP setting but we had to edit the web access site anyway for corporate branding, this was simply the next level.

I hope that is of help, obviously if anything goes wrong with the login the modified value of the edit is written back to the edit box (this is essential) so the user can see if somehow they've entered the domain or something but with the wrong kind of slash.

Please note that if you also tweak your main screen to check for RDC 7.0 and if not force users to download and install it the single sign-on works fantastically.  I haven't done this yet but am hoping the RDC ActiveX control can be probed by JavaScript so that proper version checking can take place.

kind regards,

Ross




Hope this helps !!
0
 
LVL 4

Expert Comment

by:nwgservices
ID: 35513968
Hello JamesonJendreas,
I was wondering if my suggestion was helpful in any way.

Kind regards,
NWGServices
0

Featured Post

Industry Leaders: 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

Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
A procedure for exporting installed hotfix details of remote computers using powershell
This tutorial will walk an individual through locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…
Suggested Courses

830 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