I've placed my loginmodule.jar into the jetspeed WEB-INF/lib directory
however I get this error when I create a new login context in my
portal..
javax.security.auth.login.LoginException: unable to find LoginModule
class: edu.uiuc.fs.security.FsLoginModule
        at
javax.security.auth.login.LoginContext.invoke(LoginContext.java:808)
        at
javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)


Trace continues for many more lines...

When jetspeed/tomcat starts it finds the login module just fine and
inits with the parameters specified in security-atn.xml.  

If I place the jar in the shared\lib directory along with the
jetspeed-security-2.1.3.jar, it gets found and runs to completion but my
user does not end up logged in. 
What am I missing?

Steven Ashwill



-----Original Message-----
From: David Sean Taylor [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 22, 2008 5:58 PM
To: Jetspeed Users List
Subject: Re: using a custom login module


On Jul 22, 2008, at 1:27 PM, Ashwill, Steve (Facilities & Services)
wrote:

> I'm afraid your about 3 steps ahead of me.
>
> 1. Are you running from within a Jetspeed installation under Tomcat 
> Yes
>
> 2.Is your custom login module placed under the jetspeed webapp?
> If you mean the portal that I'm using to call the loginContext, then 
> yes it is. Perhaps a problem lies in this part?

no, is the correct place
>
> 3.Recommend building your login module as a jar...
> Will this jar simply contain MyLoginModule.class?

yes, and any other support classes

>
> Or do I need to add something to the manifest?
>
shouldn't

> 4.dropping it into the jetspeed WEB-INF/lib directory Is this the same

> directory that contains jetspeed-security-2.1.3.jar?

yes

>
> As of right now it does not find it there. It will only find it if I 
> place MyLoginModule.class in common or shared.

But then your LoginModule won't be able to find any Jetspeed classes

>
> I have placed my login.conf in the webapps\fsportal\WEB-INF\classes 
> folder
>
> fssoaAuth {
>   org.apache.jetspeed.security.impl.MyLoginModule required debug=true;

> };
>
>
> 5.Then update your Spring configuration (security-atn.xml) to point to

> your login module proxy impl Does this look right?
>

Not sure. Does your "MyLoginModule" implement LoginModuleProxy like
ours:

  public class LoginModuleProxyImpl implements LoginModuleProxy

Jetspeed is configured to use its own login module: DefaultLoginModule
(also found in the jetspeed-security jar) It is configured in
login.conf, which is packaged in the jetspeed-
security.jar:

Jetspeed {
    org.apache.jetspeed.security.impl.DefaultLoginModule required; };




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to