Title: Message
**
Shawn have you ever done this for the 7.0 MidTier? The login.jsp is not the same. I have been trying unsuccessfully to get it to work.


From: Action Request System discussion list(ARSList) [mailto:[EMAIL PROTECTED] On Behalf Of Pierson, Shawn
Sent: Wednesday, July 19, 2006 2:14 PM
To: [email protected]
Subject: Re: Smart Login.jsp?

**
This one is pretty easy.  First, add the following somewhere towards the beginning of the login.jsp file:
 
<%
    String domUser = request.getRemoteUser();
    if (domUser.startsWith("DOMAIN\\")){
        domUser = domUser.substring(7);
    }
    if (domUser.startsWith("IGNOREDOMAIN\\")){
        domUser = "";
    }
    if (domUser == null){
        domUser = "";
    }
%>
 
The part where I put the word "DOMAIN\\" has to be replaced with the name of your domain on the network.  You then have to cut it off via the substring command like I did.  In my company we have two domains, one which has different logins than the one Remedy authenticates against, so I simply clear the domUser variable out so they have to type it in.
 
Next, there is a line further down that says:
 
    <input type="text" NAME="username" id="username-id" maxlength="30" value="<%=name%>" class="Login" size="20">
 
All you have to do there is substitute the value for the domUser variable like this:
 
    <input type="text" NAME="username" id="username-id" maxlength="30" value="<%=domUser%>" class="Login" size="20">
 
That should be it on the Remedy side.  Make sure your webserver is configured to be able to capture the domain names as well, which I think it is by default on IIS.
 
Another little trick to make using the Mid Tier a little more user friendly is to add this to your logout.jsp file:
 
    <META HTTP-EQUIV="Refresh" CONTENT="2; URL="">
 
Change the "yourremedyservername" part to whatever the real value is and you're done.  This will make it so when people log out, it takes them back to the login screen for the "home" form in case they want to log back in.
 
 
 -----Original Message-----
From: Action Request System discussion list(ARSList) [mailto:[EMAIL PROTECTED] On Behalf Of Kaiser Norm E CIV USAF 96 CG/SCWOE
Sent: Wednesday, July 19, 2006 12:42 PM
To: [email protected]
Subject: Smart Login.jsp?

**

Hi everyone:

 

Has anyone on the list successfully modified a login.jsp file such that it discovers the user's username automatically through the web server?

 

It seems to me that if you're running IIS and you force the user to authenticate himself to the IIS server, his username should be known by the operating system of the server.  One could then, theoretically, query the OS from the login.jsp for the username of the user.  It could use that value to silently populate the username field of the login.jsp and then populate a pre-canned password and grant access to the midtier app.

 

Has anyone done anything like this?

 

Thanks,

Norm

__20060125_______________________This posting was submitted with HTML in it___
The information in this e-mail, and any files transmitted with it, is intended for the exclusive use of the recipient(s) to which it is addressed and may contain confidential, proprietary or privileged information. If you are not an intended recipient, you have received this transmission in error and any use, review, dissemination, distribution, printing or copying of this information is strictly prohibited. If you have received this e-mail in error, please notify the sender immediately of the erroneous transmission by reply e-mail, immediately delete this e-mail and all electronic copies of it from your system and destroy any hard copies of it that you may have made. Thank you. __20060125_______________________This posting was submitted with HTML in it___ __20060125_______________________This posting was submitted with HTML in it___

Reply via email to