I have a related question.
In order to easily access my webmail, I added a webmail login form to my website using the following code.
CODE
<form name="webmail">
<input type="hidden" value="****" name="server" maxlength="30" size="15">
<label for="username">Username:</label>
<input type="text" name="username" id="username" size="20"><br /><br />
<label for="password">Password:</label>
<input type="password" name="password" id="password" size="20"><br /><br />
<input type="button" value="Login" onClick="Login(this.form)" name="button">
</form>
This form utilizes the following javascript code in response to a click on the Login button:
CODE
<script language="JavaScript" type="text/javascript">
function Login(form) {
var username = form.username.value
var password = form.password.value
var server = form.server.value
if (username && password && server) {
var horde = "https://" + username +"+"+server+ ":" + password + "@" + server + ":2096/" + "horde/index.php"
window.status='WebMail'
window.location = horde
}
else {
alert("Please fill the username and the password")
}
}
</script>
I got this login script from the TCH website (
http://www.totalchoicehosting.com/help/horde-form.txt) and modified it to use the secure login "https://" and port 2096 instead of port 2095.
Upon logging in, I am greeted with the following error message:
QUOTE
Security Error: Domain Name Mismatch
You have attempted to establish a connection with "****." However, the security certificate presented belongs to "server26.tchmachines.com." Blah blah blah
I read through the webpage referenced earlier (
http://www.totalchoicehosting.com/help/sslpage.htm) but don't quite understand how I can get rid of this error.
Anyone got a solution?
Many thanks!
Kasey