You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by "shayona.vijay@gmail.com" <sh...@gmail.com> on 2015/10/26 11:44:47 UTC

Principal in EJB returns always "guest" even with JNDIRealm

Hi,

I am always getting 'guest' as user name from SessionContext.

We are using ApacheDS as LDAP server; TomEE .1.7.2; 
We are deplying our code in TomEE as decided we wil not use glassfish.

-LDAP authentication working fine.
-When UI component try to call ejb that time ejb return always guest user.

 Please suggest what configuration i need to do to propagate correct
principal to Sessioncontext.


Regards,
VJ




--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/Principal-in-EJB-returns-always-guest-even-with-JNDIRealm-tp4676609.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Re: Principal in EJB returns always "guest" even with JNDIRealm

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi

using JAASRealm you should get your principal if you registered properly
user class names.


Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber
<http://www.tomitribe.com>

2015-10-26 11:44 GMT+01:00 shayona.vijay@gmail.com <sh...@gmail.com>
:

> Hi,
>
> I am always getting 'guest' as user name from SessionContext.
>
> We are using ApacheDS as LDAP server; TomEE .1.7.2;
> We are deplying our code in TomEE as decided we wil not use glassfish.
>
> -LDAP authentication working fine.
> -When UI component try to call ejb that time ejb return always guest user.
>
>  Please suggest what configuration i need to do to propagate correct
> principal to Sessioncontext.
>
>
> Regards,
> VJ
>
>
>
>
> --
> View this message in context:
> http://tomee-openejb.979440.n4.nabble.com/Principal-in-EJB-returns-always-guest-even-with-JNDIRealm-tp4676609.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>