David, Thanks for the input. We have all the users in LDAP (Active Directory). But for this specific application, we have roles defined and I need to retrieve the roles for the user and store them in session bean. For this I need the userid from windows. Since the user has already been authenticated against LDAP to signon to windows, I don't want to authenticate him again by making him enter his id again.
Hari -----Original Message----- From: David Brown [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 05, 2002 2:27 PM To: Tomcat Users List Subject: Re: out of Context Hari Venkatesan writes: > Yes, I am using realm. But actually I don't want the user to type in the > userid. I want to use the same id that he types in when he logs on to > windows. I am creating an Intranet application and want to use the same > id that the user logs in signing on to the network. > > Hari > > -----Original Message----- > From: David Brown [mailto:[EMAIL PROTECTED]] > Sent: Thursday, December 05, 2002 1:54 PM > To: [EMAIL PROTECTED] > Subject: Re: out of Context > > Hari Venkatesan writes: > >> >> >> Is there a way to retrieve windows userid from the client side using >> java or javascript? >> >> Hari >> >> -- >> To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> >> For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> >> > > > Hello Hari, i u r using realm and form based login this works 4 me: > String user = request.getUserPrincipal().getName(); > hope this helps, david. > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > Hello Hari, it is probably not practical to try and fetch the windoz userid. u best bet may be to put everything into a LDAP database centralized to everything else: windoz, tc etc. hope this helps, david. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>