Symantec Privileged Access Management

 View Only

test.retrieveCredentials returning "null" as password.

  • 1.  test.retrieveCredentials returning "null" as password.

    Posted Jul 05, 2021 08:26 AM
    Hi PAM Team,

    I have a situation:
    Cloakware client running 4.5.3 and below is the sample script executed.
    The below returns error code 400 which is success but the password comes as string null.
    After few investigation it turns out to be the java path being defined.

    The below works if I give the path as "/opt/cloakware/cspmclient_thirdparty/java/bin" it works.
    java version of client is 1.6.0_20
    But if I give the java path of the local server /usr/jdk/instances/jdk1.6.0/bin it fails.
    java version on local install is 1.6.0_211

    Since the java version I am using on local server is higher than the client version it should work as its backward compatible am I correct?
    Can you please help me understand why this is failing.

    import com.cloakware.cspm.client.CSPMClient;

    public class Test {

            public static void main(String [] argv) {

                  CSPMClient test = new CSPMClient();

                  test.retrieveCredentials("testalias", "true");

                  String password=test.getPassword();

                  System.out.println("pwd: " + password);

           }

    }