I've been trying to get this to work for the last couple days, but I'm
stuck.  I've made the changes required for my setup, but I'm not sure
where to plug the file.  Could anyone help a newbie out?

 

Thanks, Bruce Moore

 

________________________________

From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] On Behalf Of Hugo Visser
Sent: Tuesday, July 25, 2006 8:35 AM
To: [email protected]
Subject: Re: Windows Username

 

** 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]
<mailto:[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:

_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at http://www.wwrug.org

Reply via email to