Re: Getting User Credential from IE

2008-10-23 Thread Chad

Julian,

I did that here this way. I used jcifs (1.2.13 to be exact). You can
find it at this website:

http://jcifs.samba.org/

You'll need to add a filter to your web.xml file to specify your
domain controller. An example (the file I created) can be seen here:

http://www.milamade.com/code/gwt/web.xml.htm

You will have to change the ip address of the domain controller to
suit your needs. You will need to include the jcifs jar file in your
war when you deploy. To access the network alias, I added this method
to my server implementation class:

pre
package com.tuesdaymorning.datawarehouse.server;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;

public class RPCsuperImpl extends RemoteServiceServlet {
private static final long serialVersionUID = 200611201219L;

protected String domain = TM\\;

public String getUserName() {
String user = getThreadLocalRequest().getRemoteUser();

if (user == null) {
return default;
}

if (!user.toLowerCase().startsWith(domain.toLowerCase())) {
user = domain + user;
}

return user;
}
}
/pre

One thing to note, if you are using IE, you will be signed in
automatically as IE does this invisibly. If you are using any other
browser, you will prompted with a browser dialog asking for your
username and password, IIRC.

HTH,
Chad

On Oct 22, 4:15 pm, Julian [EMAIL PROTECTED] wrote:
 I realized that when we use our corporate Seibel page using IE, it
 knows the Logon User Name.  I like IE to pass GWT the User Name that
 is already authenticated into Windows.

 I'm new to front end programming, can someone give me some concept
 that I need to go and figure this out.

 TIA
 -Julian
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Getting User Credential from IE

2008-10-22 Thread Julian

I realized that when we use our corporate Seibel page using IE, it
knows the Logon User Name.  I like IE to pass GWT the User Name that
is already authenticated into Windows.

I'm new to front end programming, can someone give me some concept
that I need to go and figure this out.

TIA
-Julian

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---