Hi,

jaas is just an api to let you put what you want behing. The login/perm
logic is not defined so you need to call it yourself (new LoginContext...)

*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*



2013/4/9 ZhongGuan <[email protected]>

> hi,
> at first, I have read the blog at
> http://rmannibucau.wordpress.com/2012/05/09/tomee-and-its-ssh-connector/
> and
>
> http://rmannibucau.wordpress.com/2012/10/18/create-a-tomee-accessible-through-ssh-with-tomee-maven-plugin/
>
> but i still can not make the JAAS in Tomee work.
> (I think it should popup a prompt window and let me input the user and
> password,
> when I access the Url http://localhost:8080  right?)
>
> and My config is
> 1.  add login.config, users.properties and groups.properties to
> tomee_home/conf/
> 2.  add the startup param
> -Djava.security.auth.login.config=D:\tomee-plus1.5.1\conf\login.config
> 3.  add the SecurityListener and Realm in server.xml
>
> When I access the http://localhost:8080, the index.html shows..
> do I miss something? should I add some filter or something?
>
> thanks.
>
>
>
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/TomEE-Configure-JAAS-tp4662130.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>

Reply via email to