This content has been marked as final.
Show 5 replies
-
2. Re: jaas identity replaced
amdonov Feb 2, 2005 7:26 AM (in response to amdonov)That worked. Thanks for the tip. I never would have made the connection with SimplePrincipal and custom principal.
-
3. Re: jaas identity replaced
nothingman Jun 16, 2005 9:40 AM (in response to amdonov)"amdonov" wrote:
I have a custom login module that uses client certificates. It sets the identity to a SimplePrincipal with the CN portion of the certificate. However, in my servlet calls to request.getUserPrincipal().getName() return the entire subject DN. I checked, and the principal is an instance of sun.security.x509.X500Name. When does this replacement happen? How do I stop it? I am running JBoss 4.0.1 on Windows XP with Sun's JDK 1.5.
Thanks for any help.
Hi, I have to do exactly the same thing, associate the certificate to the user using a substring of the CN. Which login module should I extendend ?
Do you have any example ?
Thanx! -
4. Re: jaas identity replaced
rpa_rio Jun 16, 2005 5:14 PM (in response to amdonov)Have you found the way to do it nothingman?
-
5. Re: jaas identity replaced
nothingman Jun 17, 2005 2:59 AM (in response to amdonov)"rpa_rio" wrote:
Have you found the way to do it nothingman?
No, I'm newbie about jaas and I dind't yet undenderstand how to do it...