WebSphere Portal Server - PumaController createUser

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Portal Server > May 2006 > PumaController createUser





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author PumaController createUser

2006-05-05, 7:19 pm

I saw a posting that is about a month old, of someone using the Puma SPI to create a new user in Portal. That user submitted the following code:

<code>
PumaController pc = ph.getController(request)
HashMap newMap = new HashMap();
newMap.put("givenName","Borat");
newMap.put("sn","jagshemash");
User newUser = (User) pc.createUser("TestUser1",null,newMap);
</code>

I assume this was part of a portlet. My question is, did you get this working for an anonymous user, or was this part of some form of an admin portlet. I'm getting the following exception for a portlet I created that must be used by an anonymous user.

Nested Exception is java.lang.NullPointerException
at com.ibm.wps.services.puma.PumaServiceWrapperImpl. checkACPermission(PumaServiceWrapperImpl
.java:205)
at com.ibm.wps.services.puma.PumaServiceWrapperImpl.createUser(PumaServiceWrapperImpl.java:341)
at com.x.portal.dao.FooDao.createUser(FooDao.java:360)

In my portlet, I supply a uid, cn, userPassword, givenName, and sn with a null parentDn (RAD environment, using Cloudscape).

2006-05-05, 7:19 pm

You user has to have certain priviliges to create users and groups through PUMA. On way you can work around this is to give the anonymous users group the following permissions for the User and/or User Groups virtual resources:

Editor
Manager
Security Administrator
User

Your code is failing because anonymous users don't have these permissions on your server.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com