** Hi,

You might want to make some adjustments to the script:

getRemoteUser() can return null, but in the setup described it will most likely always return a domain name.

If you assume that getRemoteUser is never null, you can just do this:

String realname = ruser.substring(ruser.indexOf("\\")+1);

and remove this part:

/** 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);
}

Depending on your environment you might want to convert the realname to lowercase:

realname = realname.toLowerCase();

Hope this helps anyone,

Hugo

On 7/25/06, Mauro Pedone < [EMAIL PROTECTED]> wrote:
**
ops!
rename .txt in .jsp
ciao
Mauro

 
2006/7/25, Heider, Stephen <[EMAIL PROTECTED]>:
**
 
Mauro,
 
Our email filter removed the attachment because of the file extension.  Could you resend it with a file extension of  .txt
 
Thanks.
Stephen
 
 
 


From: Action Request System discussion list(ARSList) [mailto: [email protected] ] On Behalf Of Mauro Pedone
Sent: Tuesday, July 25, 2006 7:30 AM
To: [email protected]
Subject: Re: Windows Username

 
**
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___
__20060125_______________________This posting was submitted with HTML in it___

__20060125_______________________This posting was submitted with HTML in it___


__20060125_______________________This posting was submitted with HTML in it___

Reply via email to