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 Yohanes Santoso <ys...@jenny-gnome.dyndns.org> on 2003/06/13 00:34:44 UTC

UnixSecurityService

Hi,

I'm having a difficulty implementing UnixSecurityService. It is a
security service that uses unix /etc/passwd to authenticate and store
the profile (PSML) at each user's homedir.
 
Currently, I have overriden (provided my own implementation):
PortalAuthentication 
UserManagement 
RoleManagement
GroupManagement 
CredentialsManagement

I have not overriden these:
PermissionManagement
PortalAccessController

The problem is I am unable to bring up the anonymous user page. The
exception I get is (I'm using Jetspeed-1.4b3): 

Horrible Exception: org.apache.jetspeed.om.profile.ProfileException: java.lang.NullPointerException
	at org.apache.jetspeed.services.profiler.JetspeedProfilerService.fallbackProfile(JetspeedProfilerService.java:564)
	at org.apache.jetspeed.services.profiler.JetspeedProfilerService.getProfile(JetspeedProfilerService.java:293)
	at org.apache.jetspeed.services.profiler.JetspeedProfilerService.getProfile(JetspeedProfilerService.java:590)
	at org.apache.jetspeed.services.Profiler.getProfile(Profiler.java:126)
	at org.apache.jetspeed.modules.actions.JetspeedAccessController.doPerform(JetspeedAccessController.java:99)
	at org.apache.turbine.modules.Action.perform(Action.java:87)
	at org.apache.turbine.modules.ActionLoader.exec(ActionLoader.java:122)
	at org.apache.turbine.Turbine.doGet(Turbine.java:529)

Tracing back it seems that this code in
JetspeedProfilerService#fallbackProfile() returns null:
        JetspeedUser user = rundata.getJetspeedUser(); //L472

which later on causes the exception above at this line: 
        profile.setAnonymous(user.getUserName()
                .equals(JetspeedSecurity.getAnonymousUserName()));//L524

I notice that my UnixUserManagement#getUser() is never called.

Any idea where should I begin tracing the problem?

YS.

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


Re: UnixSecurityService

Posted by David Sean Taylor <da...@bluesunrise.com>.
On Thursday, June 12, 2003, at 03:34  PM, Yohanes Santoso wrote:

> Hi,
>
> I'm having a difficulty implementing UnixSecurityService. It is a
> security service that uses unix /etc/passwd to authenticate and store
> the profile (PSML) at each user's homedir.
>
> Currently, I have overriden (provided my own implementation):
> PortalAuthentication
> UserManagement
> RoleManagement
> GroupManagement
> CredentialsManagement
>
> I have not overriden these:
> PermissionManagement
> PortalAccessController
>
> The problem is I am unable to bring up the anonymous user page. The
> exception I get is (I'm using Jetspeed-1.4b3):
>
> Horrible Exception: org.apache.jetspeed.om.profile.ProfileException:  
> java.lang.NullPointerException
> 	at  
> org.apache.jetspeed.services.profiler.JetspeedProfilerService.fallbackP 
> rofile(JetspeedProfilerService.java:564)
> 	at  
> org.apache.jetspeed.services.profiler.JetspeedProfilerService.getProfil 
> e(JetspeedProfilerService.java:293)
> 	at  
> org.apache.jetspeed.services.profiler.JetspeedProfilerService.getProfil 
> e(JetspeedProfilerService.java:590)
> 	at org.apache.jetspeed.services.Profiler.getProfile(Profiler.java:126)
> 	at  
> org.apache.jetspeed.modules.actions.JetspeedAccessController.doPerform( 
> JetspeedAccessController.java:99)
> 	at org.apache.turbine.modules.Action.perform(Action.java:87)
> 	at org.apache.turbine.modules.ActionLoader.exec(ActionLoader.java:122)
> 	at org.apache.turbine.Turbine.doGet(Turbine.java:529)
>

> Tracing back it seems that this code in
> JetspeedProfilerService#fallbackProfile() returns null:
>         JetspeedUser user = rundata.getJetspeedUser(); //L472
>
> which later on causes the exception above at this line:
>         profile.setAnonymous(user.getUserName()
>                  
> .equals(JetspeedSecurity.getAnonymousUserName()));//L524
>
> I notice that my UnixUserManagement#getUser() is never called.
>
> Any idea where should I begin tracing the problem?
>

Sounds like the User is not being put into rundata. Have you modified  
the Access Controller or Session Validator?
Also, if you haven't already done so, recommend running the unit tests  
for user management (ant unittest-security)


--
David Sean Taylor
Bluesunrise Software
david@bluesunrise.com
+01 707 773-4646




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