You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by robin <ro...@adm-soft.com> on 2010/12/15 07:58:32 UTC

how to add jaas login mode into jetspeed 2.2.1

HI all

 i'm add filenet client jar's into jetspeed project try to get some information from filenet server,  
 i add jaas config into jetspeed project 's classes path, it cann't work.  but same config in a web project works.

i added config file jaas.conf.WSI into classes, following is it's config items: 
FileNetP8 {
com.filenet.api.util.WSILoginModule required;
};
FileNetP8WSI {
com.filenet.api.util.WSILoginModule required;
};
FileNetP8Engine {
com.filenet.api.util.WSILoginModule required;
};
FileNetP8Server {
com.filenet.api.util.WSILoginModule required;
};

error message:
-----------------------------------------------------------------------------------
com.etune.p8.pehelper.P8BpmException: VWException.getMessage():(get JAAS enviroment error): javax.security.auth.login.LoginException: doesnot config FileNetP8Engine LoginModules
VWException.getKey():orb.session.FailedToCreateJAASContext
at com.etune.p8.pehelper.SessionHelper.logon(SessionHelper.java:71)
at com.adm.infoportal.bpm.web.action.BpmAction.showList(BpmAction.java:124)


2010-12-15 



Robin 

Re: Re: Re: how to add jaas login mode into jetspeed 2.2.1

Posted by Woonsan Ko <wo...@yahoo.com>.
On WAS, Jetspeed-2 doesn't use its own JAAS LoginModule; instead it's using PortalFilter on WAS.
I've just searched on the internet and guess you can configure those in WAS console or in a configuration file. [1]

[1] http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/index.jsp?topic=/com.ibm.websphere.express.doc/info/exp/ae/rsec_logmod.html

--- On Wed, 1/26/11, robin <ro...@adm-soft.com> wrote:

> From: robin <ro...@adm-soft.com>
> Subject: Re: Re: Re: how to add jaas login mode into jetspeed 2.2.1
> To: "Jetspeed Users List" <je...@portals.apache.org>
> Date: Wednesday, January 26, 2011, 7:53 AM
> Now, i try this config on WAS6.1, it
> can't connect to filenet again,  seems jaas login
> module 
> 
> 
> 2011-01-19 
> Robin 
> 
> 发送时间: 2010-12-18  16:06:40 
> 收件人: Jetspeed Users List 
> 抄送: 
> 主题: Re: Re: how to add jaas login mode into jetspeed
> 2.2.1 
> thank you Woonsan , it works after add the loginmodue
> config into login.conf 
> 2010-12-18 
> Robin 
> 发件人: Woonsan Ko 
> 发送时间: 2010-12-16  15:18:33 
> 收件人: Jetspeed Users List 
> 抄送: 
> 主题: Re: how to add jaas login mode into jetspeed
> 2.2.1 
> 
> Hi Robin,
> Because it uses a JAAS LoginModule by default, Jetspeed
> configures 'java.security.auth.login.config' property with a
> configuration which is found in
> jetspeed-security-2.2.x.jar!/login.conf, which is defined as
> follows:
> Jetspeed {
>    org.apache.jetspeed.security.impl.DefaultLoginModule
> required;
> };
> So, probably you can add login.conf into
> /jetspeed/WEB-INF/classes/ to replace the default one with
> your custom one which includes Jetspeed and the other
> things.
> -Woonsan
> --- On Wed, 12/15/10, robin <ro...@adm-soft.com>
> wrote:
> > From: robin <ro...@adm-soft.com>
> > Subject: how to add jaas login mode into jetspeed
> 2.2.1
> > To: "jetspeed-user" <je...@portals.apache.org>
> > Date: Wednesday, December 15, 2010, 7:58 AM
> > HI all
> > 
> >  i'm add filenet client jar's into jetspeed
> project try to
> > get some information from filenet server,  
> >  i add jaas config into jetspeed project 's
> classes path,
> > it cann't work.  but same config in a web
> project
> > works.
> > 
> > i added config file jaas.conf.WSI into classes,
> following
> > is it's config items: 
> > FileNetP8 {
> > com.filenet.api.util.WSILoginModule required;
> > };
> > FileNetP8WSI {
> > com.filenet.api.util.WSILoginModule required;
> > };
> > FileNetP8Engine {
> > com.filenet.api.util.WSILoginModule required;
> > };
> > FileNetP8Server {
> > com.filenet.api.util.WSILoginModule required;
> > };
> > 
> > error message:
> >
> -----------------------------------------------------------------------------------
> > com.etune.p8.pehelper.P8BpmException:
> > VWException.getMessage():(get JAAS enviroment error):
> > javax.security.auth.login.LoginException: doesnot
> config
> > FileNetP8Engine LoginModules
> >
> VWException.getKey():orb.session.FailedToCreateJAASContext
> > at
> >
> com.etune.p8.pehelper.SessionHelper.logon(SessionHelper.java:71)
> > at
> >
> com.adm.infoportal.bpm.web.action.BpmAction.showList(BpmAction.java:124)
> > 
> > 
> > 2010-12-15 
> > 
> > 
> > 
> > Robin 
> > 
>       
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
> 


      

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


Re: Re: Re: how to add jaas login mode into jetspeed 2.2.1

Posted by robin <ro...@adm-soft.com>.
Now, i try this config on WAS6.1, it can't connect to filenet again,  seems jaas login module 


2011-01-19 
Robin 

发送时间: 2010-12-18  16:06:40 
收件人: Jetspeed Users List 
抄送: 
主题: Re: Re: how to add jaas login mode into jetspeed 2.2.1 
thank you Woonsan , it works after add the loginmodue config into login.conf 
2010-12-18 
Robin 
发件人: Woonsan Ko 
发送时间: 2010-12-16  15:18:33 
收件人: Jetspeed Users List 
抄送: 
主题: Re: how to add jaas login mode into jetspeed 2.2.1 

Hi Robin,
Because it uses a JAAS LoginModule by default, Jetspeed configures 'java.security.auth.login.config' property with a configuration which is found in jetspeed-security-2.2.x.jar!/login.conf, which is defined as follows:
Jetspeed {
   org.apache.jetspeed.security.impl.DefaultLoginModule required;
};
So, probably you can add login.conf into /jetspeed/WEB-INF/classes/ to replace the default one with your custom one which includes Jetspeed and the other things.
-Woonsan
--- On Wed, 12/15/10, robin <ro...@adm-soft.com> wrote:
> From: robin <ro...@adm-soft.com>
> Subject: how to add jaas login mode into jetspeed 2.2.1
> To: "jetspeed-user" <je...@portals.apache.org>
> Date: Wednesday, December 15, 2010, 7:58 AM
> HI all
> 
>  i'm add filenet client jar's into jetspeed project try to
> get some information from filenet server,  
>  i add jaas config into jetspeed project 's classes path,
> it cann't work.  but same config in a web project
> works.
> 
> i added config file jaas.conf.WSI into classes, following
> is it's config items: 
> FileNetP8 {
> com.filenet.api.util.WSILoginModule required;
> };
> FileNetP8WSI {
> com.filenet.api.util.WSILoginModule required;
> };
> FileNetP8Engine {
> com.filenet.api.util.WSILoginModule required;
> };
> FileNetP8Server {
> com.filenet.api.util.WSILoginModule required;
> };
> 
> error message:
> -----------------------------------------------------------------------------------
> com.etune.p8.pehelper.P8BpmException:
> VWException.getMessage():(get JAAS enviroment error):
> javax.security.auth.login.LoginException: doesnot config
> FileNetP8Engine LoginModules
> VWException.getKey():orb.session.FailedToCreateJAASContext
> at
> com.etune.p8.pehelper.SessionHelper.logon(SessionHelper.java:71)
> at
> com.adm.infoportal.bpm.web.action.BpmAction.showList(BpmAction.java:124)
> 
> 
> 2010-12-15 
> 
> 
> 
> Robin 
> 
      
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org

Re: Re: how to add jaas login mode into jetspeed 2.2.1

Posted by robin <ro...@adm-soft.com>.
thank you Woonsan , it works after add the loginmodue config into login.conf 


2010-12-18 



Robin 



发件人: Woonsan Ko 
发送时间: 2010-12-16  15:18:33 
收件人: Jetspeed Users List 
抄送: 
主题: Re: how to add jaas login mode into jetspeed 2.2.1 
 
Hi Robin,
Because it uses a JAAS LoginModule by default, Jetspeed configures 'java.security.auth.login.config' property with a configuration which is found in jetspeed-security-2.2.x.jar!/login.conf, which is defined as follows:
Jetspeed {
   org.apache.jetspeed.security.impl.DefaultLoginModule required;
};
So, probably you can add login.conf into /jetspeed/WEB-INF/classes/ to replace the default one with your custom one which includes Jetspeed and the other things.
-Woonsan

--- On Wed, 12/15/10, robin <ro...@adm-soft.com> wrote:
> From: robin <ro...@adm-soft.com>
> Subject: how to add jaas login mode into jetspeed 2.2.1
> To: "jetspeed-user" <je...@portals.apache.org>
> Date: Wednesday, December 15, 2010, 7:58 AM
> HI all
> 
>  i'm add filenet client jar's into jetspeed project try to
> get some information from filenet server,  
>  i add jaas config into jetspeed project 's classes path,
> it cann't work.  but same config in a web project
> works.
> 
> i added config file jaas.conf.WSI into classes, following
> is it's config items: 
> FileNetP8 {
> com.filenet.api.util.WSILoginModule required;
> };
> FileNetP8WSI {
> com.filenet.api.util.WSILoginModule required;
> };
> FileNetP8Engine {
> com.filenet.api.util.WSILoginModule required;
> };
> FileNetP8Server {
> com.filenet.api.util.WSILoginModule required;
> };
> 
> error message:
> -----------------------------------------------------------------------------------
> com.etune.p8.pehelper.P8BpmException:
> VWException.getMessage():(get JAAS enviroment error):
> javax.security.auth.login.LoginException: doesnot config
> FileNetP8Engine LoginModules
> VWException.getKey():orb.session.FailedToCreateJAASContext
> at
> com.etune.p8.pehelper.SessionHelper.logon(SessionHelper.java:71)
> at
> com.adm.infoportal.bpm.web.action.BpmAction.showList(BpmAction.java:124)
> 
> 
> 2010-12-15 
> 
> 
> 
> Robin 
> 
      
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org

Re: how to add jaas login mode into jetspeed 2.2.1

Posted by Woonsan Ko <wo...@yahoo.com>.
Hi Robin,

Because it uses a JAAS LoginModule by default, Jetspeed configures 'java.security.auth.login.config' property with a configuration which is found in jetspeed-security-2.2.x.jar!/login.conf, which is defined as follows:

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

So, probably you can add login.conf into /jetspeed/WEB-INF/classes/ to replace the default one with your custom one which includes Jetspeed and the other things.


-Woonsan
 

--- On Wed, 12/15/10, robin <ro...@adm-soft.com> wrote:

> From: robin <ro...@adm-soft.com>
> Subject: how to add jaas login mode into jetspeed 2.2.1
> To: "jetspeed-user" <je...@portals.apache.org>
> Date: Wednesday, December 15, 2010, 7:58 AM
> HI all
> 
>  i'm add filenet client jar's into jetspeed project try to
> get some information from filenet server,  
>  i add jaas config into jetspeed project 's classes path,
> it cann't work.  but same config in a web project
> works.
> 
> i added config file jaas.conf.WSI into classes, following
> is it's config items: 
> FileNetP8 {
> com.filenet.api.util.WSILoginModule required;
> };
> FileNetP8WSI {
> com.filenet.api.util.WSILoginModule required;
> };
> FileNetP8Engine {
> com.filenet.api.util.WSILoginModule required;
> };
> FileNetP8Server {
> com.filenet.api.util.WSILoginModule required;
> };
> 
> error message:
> -----------------------------------------------------------------------------------
> com.etune.p8.pehelper.P8BpmException:
> VWException.getMessage():(get JAAS enviroment error):
> javax.security.auth.login.LoginException: doesnot config
> FileNetP8Engine LoginModules
> VWException.getKey():orb.session.FailedToCreateJAASContext
> at
> com.etune.p8.pehelper.SessionHelper.logon(SessionHelper.java:71)
> at
> com.adm.infoportal.bpm.web.action.BpmAction.showList(BpmAction.java:124)
> 
> 
> 2010-12-15 
> 
> 
> 
> Robin 
> 


      

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org