Hi,

did you try set CATALINA_OPTS="c:/complete/path/login.conf" before
startup.sh?

*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*




2012/10/17 Potgieter, Derick D <[email protected]>

> Hi Guys,
>
> I`m really struggling to implement the SQLLoginModule for JAAS based
> authentication in TomEE Rest.
>
> I have followed the guide on http://tomee.apache.org/tomee-jaas.htmlreplacing 
> it with the below
> server.xml:
>      <Realm className="org.apache.catalina.realm.LockOutRealm">
>          <Realm className="org.apache.catalina.realm.JAASRealm"
> appName="SQLLoginApp"
>
> userClassNames="org.apache.openejb.core.security.AbstractSecurityService$User"
>
> roleClassNames="org.apache.openejb.core.security.AbstractSecurityService$Group">
>          </Realm>
>       </Realm>
>
> conf/login.config:
> SQLLoginApp {
>     org.apache.openejb.core.security.jaas.SQLLoginModule required
>     dataSourceName="jdbc/db"
>     userSelect="select ..... "
>     groupSelect="select ..... "
> };
>
> And starting tomee with the following:
> startup.bat
> -Djava.security.auth.login.config=$CATALINA_HOME\conf\login.config
>
> Getting:
> Oct 17, 2012 1:52:00 PM org.apache.catalina.realm.JAASRealm authenticate
> SEVERE: Unexpected error
> javax.security.auth.login.LoginException: No LoginModules configured for
> SQLLoginApp
>
> Seems it`s not picking up the login.config file. I have tried every
> possible combination to load it \, reverse /, full path, no path, login
> under bin....
>
> Just cant get it to pick it up
>
> Any help would be appreciated.
>
> Regards
> Derick
> Standard Bank email disclaimer and confidentiality note
> Please go to
> http://www.standardbank.co.za/site/homepage/emaildisclaimer.html to read
> our email disclaimer and confidentiality note. Kindly email
> [email protected] (no content or subject line necessary) if
> you cannot view that page and we will email our email disclaimer and
> confidentiality note to you.
>

Reply via email to