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?
private void doPortalLogin(final String name) {
try {
LoginContext lc = new LoginContext("fssoaAuth",
new CallbackHandler() {
public void handle(Callback[] callbacks) {
for (int i = 0; i < callbacks.length; ++i) {
if (callbacks[i] instanceof NameCallback) {
NameCallback nc =
(NameCallback)callbacks[i];
nc.setName(name);
}
}
}
});
lc.login();
}
catch (Exception ex) {
ex.printStackTrace();
}
}
3.Recommend building your login module as a jar...
Will this jar simply contain MyLoginModule.class?
Or do I need to add something to the manifest?
4.dropping it into the jetspeed WEB-INF/lib directory Is this the same
directory that contains jetspeed-security-2.1.3.jar?
As of right now it does not find it there. It will only find it if I
place MyLoginModule.class in common or shared.
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?
<bean id="org.apache.jetspeed.security.LoginModuleProxy"
class="org.apache.jetspeed.security.impl.MyLoginModule">
<!-- User Manager to construct JAAS subject/principals returned
to container -->
<constructor-arg index="0"><ref
bean="org.apache.jetspeed.security.UserManager"/></constructor-arg>
<!-- Portal user role name used to identify authenticated users
in web.xml security constraints -->
<constructor-arg
index="1"><value>portal-user</value></constructor-arg>
</bean>
-----Original Message-----
From: David Sean Taylor [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 22, 2008 11:44 AM
To: Jetspeed Users List
Subject: Re: using a custom login module
On Jul 22, 2008, at 7:16 AM, Ashwill, Steve (Facilities & Services)
wrote:
> Hello everyone,
>
> I am trying to build and run a custom login module but I have been
> unable to make it run. It compiles just fine using the
> jetspeed-api-2.1.3.jar and jetspeed-security-2.1.3.jar as libraries
> but when it runs it tells me that it can't find the
> LoginModuleProxyImpl.class which is probably just the first thing it
> can't find. I have basically copied the DefaultLoginModule modifying
> the callbackhandler in the way it supplies the username, and then I
> would like it to do everything else the same way the
> DefaultLoginModule works.
> Can anyone point me to some examples showing the placement of the
> files in Jetspeed and examples where this has been done with the
> Jetspeed portal or perhaps give me a clue as to how and what and where
> things should be located.Thanks in advance for your help.
>
LoginModuleProxyImpl is in jetspeed-security-2.1.3.jar
Are you running from within a Jetspeed installation under Tomcat, or
some other configuration?
Is your custom login module placed under the jetspeed webapp?
Recommend building your login module as a jar, and dropping it into
the jetspeed WEB-INF/lib directory
Then update your Spring configuration (security-atn.xml) to point to
your login module proxy impl
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]