Bug description
ampassword in 13.5.1 fails after upgrading from 13.5.0 with the error
ampassword --encrypt ws/install-app/pass.txt Exception in thread "main" java.lang.ExceptionInInitializerError at com.iplanet.services.naming.WebtopNaming.updateNamingTable(WebtopNaming.java:1254) at com.iplanet.services.naming.WebtopNaming.getNamingProfile(WebtopNaming.java:1150) at com.iplanet.services.naming.WebtopNaming.getServiceAllURLs(WebtopNaming.java:538) at com.sun.identity.configuration.SystemProperties.getServiceAllURLs(SystemProperties.java:83) at com.sun.identity.shared.jaxrpc.JAXRPCHelper.getValidServerURL(JAXRPCHelper.java:116) at com.sun.identity.shared.jaxrpc.JAXRPCHelper.getValidURL(JAXRPCHelper.java:74) at com.sun.identity.shared.jaxrpc.SOAPClient.call(SOAPClient.java:177) at com.sun.identity.shared.jaxrpc.SOAPClient.send(SOAPClient.java:329) at com.sun.identity.shared.jaxrpc.SOAPClient.send(SOAPClient.java:315) at com.sun.identity.sm.jaxrpc.SMSJAXRPCObject.getRootSuffix(SMSJAXRPCObject.java:433) at com.sun.identity.sm.SMSEntry.initSMSObject(SMSEntry.java:356) at com.sun.identity.sm.SMSEntry.initializeClass(SMSEntry.java:225) at com.sun.identity.sm.SMSEntry.<clinit>(SMSEntry.java:215) ... Caused by: com.google.inject.ConfigurationException: Guice configuration errors: 1) No implementation for java.security.PrivilegedAction<com.iplanet.sso.SSOToken> was bound. while locating java.security.PrivilegedAction<com.iplanet.sso.SSOToken> 1 error at com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:1004) at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1009) at org.forgerock.guice.core.InjectorHolder.getInstance(InjectorHolder.java:93) at com.iplanet.services.naming.service.NamingService.initialize(NamingService.java:137) at com.iplanet.services.naming.service.NamingService.<clinit>(NamingService.java:124) ... 23 more
How to reproduce the issue
Details steps outlining how to recreate the issue (remove this text)
1. Install ssoAdminTools (that comes with ssoadm)
2. Run ampassword like above and see the error
Expected behaviour
New encrypted password
Current behaviour
Exception like above thrown
Work around
- Use the old 13.5.0 (ssoadm) jiust for the ampassword
Code analysis
Need a similar fix from https://bugster.forgerock.org/jira/browse/OPENAM-11056 did not fix for ampassword
InjectorConfiguration.setGuiceModuleLoader(new ToolsGuiceModuleLoader());
Task
1. All CLI program will need the CliGuiceModuleLoader now due to injection. (so all ampassword and rest need to be QA)
2. Should update ampassword to be like ssoadm (in terms of shell scriptng and finding CLASSPATH)
NOTE:
Like OPENAM-11056 this issue is not seen in AM5/14.1.0.