Re: custom LoginModule and GenericSecurityRealm = unable to find LoginModule

2008-02-10 Thread Brian Gregory

Perfect! Thanks.



Vamsavardhana Reddy-2 wrote:
> 
> Have you given a dependency on
> 
> console.realm
>MySecurityRealm
>1.0
>car
> 
> in your geronimo-web.xml?
> 
> ++Vamsi
> 
> 

-- 
View this message in context: 
http://www.nabble.com/custom-LoginModule-and-GenericSecurityRealm-%3D-unable-to-find-LoginModule-tp15389615s134p15397728.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: custom LoginModule and GenericSecurityRealm = unable to find LoginModule

2008-02-09 Thread Vamsavardhana Reddy
Have you given a dependency on

console.realm
   MySecurityRealm
   1.0
   car

in your geronimo-web.xml?

++Vamsi

On Feb 10, 2008 1:48 AM, Brian Gregory <[EMAIL PROTECTED]> wrote:

>
> I receive the following error when attempting to test a custom security
> desccriptor from a simple "hello-world" servlet:
>
> 15:09:50,815 WARN  [TomcatGeronimoRealm] Login exception authenticating
> username "user"
> javax.security.auth.login.LoginException: unable to find LoginModule
> class:
> com.g-webdesign.geronimo.security.OracleSQLLoginModule in classloader
> default/my-hello-world/1.0/car
>at javax.security.auth.login.LoginContext.invoke(Unknown Source)
> ...
>
> Here is my security deployment descriptor:
> --
>
> 
> http://geronimo.apache.org/xml/ns/deployment-1.2";>
>
>
>console.realm
>MySecurityRealm
>1.0
>car
>
>
>
>org.apache.geronimo.configs
>j2ee-security
>car
>
>
>com.g-webdesign.com
>my-login-module
>1.0
>jar
>
>
>
> class="org.apache.geronimo.security.realm.GenericSecurityRealm"
> xsi:type="dep:gbeanType"
> xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
>MySecurityRealm
>
>ServerInfo
>
>
> xmlns:log="http://geronimo.apache.org/xml/ns/loginconfig-2.0";>
> wrap-principals="false">
>
> MySecurityRealm
>
> com.g-webdesign.geronimo.security.MyLoginModule
> 
>
>
>
>
> 
>
> This is from my web.xml:
> -
>
>  
>
>Hello World
>/*
>POST
>GET
>
>
>ADMIN_ROLE
>
>  
>  
>FORM
>This is not used for FORM login
>
>/login.jsp
>/loginerror.jsp
>
>  
>  
>ADMIN_ROLE
>  
>
> This is from my geronimo-web.xml:
> -
>
> OracleTBSecurityRealm
> 
>
> class="org.apache.geronimo.security.realm.providers.GeronimoUserPrincipal"
> />
>
>
>
>designated-run-as="true"
> class="org.apache.geronimo.security.realm.providers.GeronimoGroupPrincipal
> "
> />
>
>
> 
>
> Ideas?
>
> --
> View this message in context:
> http://www.nabble.com/custom-LoginModule-and-GenericSecurityRealm-%3D-unable-to-find-LoginModule-tp15389615s134p15389615.html
> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
>
>


custom LoginModule and GenericSecurityRealm = unable to find LoginModule

2008-02-09 Thread Brian Gregory

I receive the following error when attempting to test a custom security
desccriptor from a simple "hello-world" servlet:

15:09:50,815 WARN  [TomcatGeronimoRealm] Login exception authenticating
username "user"
javax.security.auth.login.LoginException: unable to find LoginModule class:
com.g-webdesign.geronimo.security.OracleSQLLoginModule in classloader
default/my-hello-world/1.0/car
at javax.security.auth.login.LoginContext.invoke(Unknown Source)
...

Here is my security deployment descriptor:
--


http://geronimo.apache.org/xml/ns/deployment-1.2";>


console.realm
MySecurityRealm
1.0
car



org.apache.geronimo.configs
j2ee-security
car


com.g-webdesign.com
my-login-module
1.0
jar



http://geronimo.apache.org/xml/ns/deployment-1.2";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
MySecurityRealm

ServerInfo


http://geronimo.apache.org/xml/ns/loginconfig-2.0";>

   
MySecurityRealm
   
com.g-webdesign.geronimo.security.MyLoginModule






This is from my web.xml:
-

  

Hello World
/*
POST
GET


ADMIN_ROLE

  
  
FORM
This is not used for FORM login

/login.jsp
/loginerror.jsp

  
  
ADMIN_ROLE
  

This is from my geronimo-web.xml:
-

OracleTBSecurityRealm











Ideas?

-- 
View this message in context: 
http://www.nabble.com/custom-LoginModule-and-GenericSecurityRealm-%3D-unable-to-find-LoginModule-tp15389615s134p15389615.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.