Troubleshooting

Removing Users

Sometimes you want to remove rejected or revoked users, or sometimes a user's registration doesn't successfully complete and you need to reset things in PURSe. Here's how to remove a user in PURSe.

First remove the user from the PURSe database. You'll need to log into your PURSe database and delete the user from the user_table . Here's a sample session:

          
$ mysql [-u <user>] [-p] 
mysql> use purseDatabase;
mysql> DELETE FROM user_table WHERE user_name = "<username>";
        
        

Replace <username> with the user's username.

To remove a user's generated certificate (which only happens if the user was in Accepted status), you'll need to do the following:

  • (Only if certificate generation fails for some reason.) Remove the generated certificate in the tmpLocation specified in your purse.properties file. For example, if your tmpLocation is /usr/local/globus/tmp , then you'll need to remove the directory /usr/local/globus/tmp/<username> .
  • Remove the generated certificate from the simpleCA directory. This would be the caDir property in your purse.properties file. Remove the generated certificate from caDir/newcerts . You'll also need to remove it's line in the caDir/index.txt file.

ProxyManager class not found

If you get the following exception:

          
java.lang.NoClassDefFoundError: xportlets/proxymanager/ProxyManager at
org.ogce.purse.jsf.UserPortletBean.(UserPortletBean.java:77) at 
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at
etc.

         

Then copy the proxymanager-api-x.x.jar (in your local maven cache, i.e., in ~/.maven/repository/proxymanager-api/jars) into TOMCAT_HOME/shared/lib. If you've installed OGCE, you won't have this problem, but if you haven't, you'll need this jar.