Hi Andrew
I find this jsp page in remedy support,
it works well, but you have to disabled Anonymous Access and enable
Basic Authentication and Integrated Windows authentication
Ciao
Mauro
2006/7/25, Andrew Wood <[EMAIL PROTECTED]>:
This has been asked loads of times and there are loads of answers, all of
them long and none relevant.
So - just how do you pass the windows username to a field in a web form in
remedy?
If the username is 'auser' and the remedy login name is 'anthony user', i
need to pass the windows username to a field on the remedy web form so
that i can then extrapolate the remedy username so that the user can see
tasks allocated to them. Simple? The workflow for the extrapolation is
already in place and works fine when I manually enter 'auser' into a
field. The trick is to get the windows username in there automatically.
This is to be a read only lookup task list which is why we're bypassing
the manual login.
_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at http://www.wwrug.org
__20060125_______________________This posting was submitted with HTML in it___
<% /** Author Bryan Behling
THIS FILE IS PROVIDED AS AN EXAMPLE ONLY. REMEDY BMC SUPPORT ARE IN NO WAY
RESPONSIBILE
FOR OR SUPPORT THIS CODE. THIS IS STRICTLY A STARTING POINT OR EXAMPLE OF WHAT
CAN BE DONE.
-- INSTRUCTIONS AND REQUIREMENTS TO USE THIS FILE --
This file is for using an NT domain login account name to login directly into a
Mid-Tier form and bypass the login process. The Remedy User account (set up in
the Remedy User form) MUST have a blank password, as it is not possible to pull
the password information from an NT domain login.
In order for this to work correctly, you need to follow the following steps to
configure
your IIS web server to user NT authentication. You will also need to correct
the information in the "response.sendRedirect()" method at the bottom of the
page to match you environment. See the comments at the end of this file for
details.
For IIS 4.0 (Windows NT 4.0) and IIS 5.0 (Windows 2000), Basic Authentication
must be enabled in the WWW Service Master Properties and the individual web
server Properties dialogs. You will also most likely want to enable Integrated
Windows authenticaion.
1. Open the Internet Service Manager (Microsoft Management Console).
2. Open the Properties dialog for your server. First, expand the Internet
Information Server entry until you can see the icon for your server. Then
right-click the server icon and select Properties from the pop-up menu.
3. Make sure WWW Services is selected in the Master Properties combo-box.
4. Click the Edit button.
5. Select the Directory Security tab.
6. Under Anonymous Access and Authentication Control, click the Edit button.
7. Make sure Anonymous Access is disabled and Basic Authentication and
Integrated Windows authentication are enabled.
8. By default, the IIS will authenticate users only in the local domain. If you
need to authenticate users in a network domain, click the Edit button next to
Default domain for basic Authentication” and specify the network domain in the
resulting dialog.
9. Click OK to close all dialogs.
10. Open the Properties dialog for each configured web server (there may be
only one, named Default Web Server).
11. Repeat steps 6 through 9 for each configured web server.
**/
/** --------------- Start of code ------------------- **/
String ruser = request.getRemoteUser();
String realname = "";
/** Debug logging statement to see if the remote user is getting set correctly.
**/
System.out.println("Remote User is: " + ruser);
/** Loop to parse out the [Domain.com\] of the ruser so that we are left with
only the NT domain account name **/
int startpoint = ruser.indexOf("\\") + 1;
int endpoint = ruser.length();
for(int x = startpoint; x < endpoint; x++)
{
realname += ruser.charAt(x);
}
/** Debug logging statement to see if the ruser name was parsed correctly **/
/** System.out.println("<br> realname is: " + realname); **/
response.sendRedirect("http://10.190.2.145/arsys/servlet/LoginServlet?server=weblap1&username="
+ realname + "&pwd=&goto=/arsys/apps/server_name/application_name");
/** --------------- End of code ------------------- **/
/** You must adjust the response.sendRedirect() method above to correctly match
you webserver, context path, ARServer name, and goto path to the correct jsp
file you are redirecting to. **/
%>

