//--------------------------------- // Juniper Verify script //--------------------------------- import com.cloakware.cspm.server.plugin.ExtendedTargetManager; log.debug("Verifying password for account " + accountToVerify.getUserName() + " using account " accountToUseForAuthentication.getUserName()); // // We only allow users to verify themselves (via a successful logon) // In this script we do not verify a password using another account // if ( !accountToVerify.getUserName().equals( accountToUseForAuthentication.getUserName() ) || verifyThroughOtherAccount ) { log.warn("Rejecting attempt to verify Juniper password through other account"); result.setSuccess(false); return; } result.setSuccess(true);