2 Replies Latest reply on Sep 3, 2015 7:48 AM by Bill Robinson

    Password encryption is not working in bladelogic cli

    Siddu angadi


      I hav upgraded Bladelogic from 8.1 to 8.5.  There was method called decrypt password which was having function called get value. It was not working on 8.5, have changed to getClearTextString.  getting below error:


      'com.bladelogic.om.infra.model.typesystem.value.Enc' object has no attribute 'getClearTextString'



      Below is the function


      import logging

      from bljython import cli

      log = logging.getLogger(__name__)

      def decrypt(encrypted_string):

          log.info("Siddu==encrypt value" + encrypted_string)

          value_bean = cli.execute("BlValue", "createEncryptedStringBlValueBean")


          return value_bean.getClearTextString()



      If I execute same thing on NSHscripting it is working fine. below is NSHscripting:




      blcli_execute BlValue createEncryptedStringBlValueBean

      blcli_execute EncryptedStringBlValueBean parseFromString "${ENCRYPTED_PWD}"


      blcli_execute EncryptedStringBlValueBean getClearTextString