Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
HTML
<h2>Background</h2>

<p>All of the scripts and web pages that TIM Enterprise provides are 
protected by a login (username and password) that is provided by the 
user through their web browser.</p>


<p>Sometimes it is desirable to allow automatic access to a particular 
web page using a pre-supplied username and password.  An example might 
be the deployment of a stand-alone computer displaying a pre-defined 
wallboard on a large screen;  It can become tedious having to log in 
every time that computer is switched on.</p>


<p>Different web browsers behave differently for automatic logging-in to
 web pages.  Variously, they range from complete prohibition of the 
practise, to permitting it if certain system parameters are configured.</p>

<h2>Specifics</h2>

<p>In this article, details of how to allow automatic logging-in to a 
web page concerns the Microsoft Internet Explorer (version 6 and above) 
browsers only.  Please consult your browser documentation for a solution
 related to your own choice of browser.</p>


<p>The solution involves creating a specially-crafted URL in the following form:-</p>

...

themeEclipse
linenumberstrue

Background

All of the web pages and scripts that TIM Enterprise serves are protected by a login that is provided by a user when entering their username and password into a pop-up dialog presented by the web browser.

In some situations, it is desirable to suppress this dialog box demanding the username and password. An example might be the deployment of a stand-alone computer displaying a pre-defined wallboard on a large screen - it would become tedious having to log in to the web page every time that computer is restarted.

Different web browsers behave differently when asked to automatically log in to web sites. Variously, they range from complete prohibition of the practice to permitting it only if certain system parameters are configured.

e.g. Chrome + Firefox have plugins that allow auto login :-

Chrome - Auto Login
https://chrome.google.com/webstore/detail/auto-login/kjdgohfkopafhjmmlbojhaabfpndllgk?hl=en

Firefox - Auto Auth
https://addons.mozilla.org/en-GB/firefox/addon/autoauth/

Specifics

In this article, details of how to allow automatic logging-in to a web page concerns the Microsoft Internet Explorer (version 6 and above) browsers only. Please consult your browser documentation for a solution related to your own choice of browser.

The solution involves creating a specially-crafted URL in the following form:

Code Block
http://username:password@serverhost/
HTML
<h2>Solution</h2>

<p>Although including the username and password in a URL is disabled by 
default on Windows Internet Explorer since it is considered a security 
risk, you can override this restriction by making the following changes 
to the Windows Registry.</p>

...

Solution

Although including the username and password in a URL is disabled by default on Windows Internet Explorer, since it is considered a security risk, you can override this restriction by making the following changes to the Windows Registry.

<p>Open
Tip
Since you'll be exposing a username and password as part of a URL, it is recommended that you create a dedicated web user dedicated 
Referencemacro
LabelWeb User
object inside the TIM Enterprise directory that will be used solely for this purpose.   See Adding/Removing Web Users Refer to the Web user page for details of how to set up a web user.
HTML

Open Windows

...

Registry

...

Editor,

...

themeEclipse
linenumberstrue

REGEDIT.EXE, from the Windows Start Menu and locate the following registry key:

  • for a 
    Referencemacro
    Label32-bit
    system:
Code Block
HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_HTTP_USERNAME_PASSWORD_DISABLE
  • for a 64-bit system:
Code Block
HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_HTTP_USERNAME_PASSWORD_DISABLE
HTML

Inside

...

this

...

registry

...

key,

...

add

...

the

...

following DWORD entries:

...

<p>Close
Code Block
themeEclipse
linenumberstrue
IEXPLORE.EXE  (Set DWORD value to 0, zero)
EXPLORER.EXE  (Set DWORD value to 0, zero)
HTML

Close the

...

Registry

...

Editor

...

and

...

create

...

a

...

bookmark

...

in

...

Internet

...

Explorer,

...

specifying

...

the

...

URL

...

as

...

per

...

the

...

following

...

example:

...

<p>Replace
Code Block
http://USERNAME:PASSWORD@HOSTNAME/display/?suiv=12345
HTML

Replace the

...

following

...

entries:

  • USERNAME replace with the username of the web user you use to access the page
  • PASSWORD replace with the password of the web user you use to access the page
  • HOSTNAME replace with the host name or IP address of the machine running TIM Enterprise

Updates

Microsoft has removed the ability to auto login using regedit. They've patched it :-

https://docs.microsoft.com/en-us/security-updates/securitybulletins/2004/ms04-040

(As with the previous Internet Explorer Cumulative Security Update, MS04-004, this update prevents you from visiting Web sites that have "username:password@host.com" URLs for XMLHTTP. We have created an update to MSXML that addresses this issue specifically for XMLHTTP. For more information, see Microsoft Knowledge Base Article 832414.)

https://support.microsoft.com/

...

en-gb/

...

 

 

 

 

 

help/832414/xmlhttp-call-fails-for-urls-with-embedded-user-credentials