4 Replies · Latest reply on Dec 7, 2017 3:15 AM by gowrisankar sativada

    Incoherent behavior with password2 field type

      Hello,

       

      I have an issue with reading Password2 type field on a record.

       

      On the one hand, I try to read the "scp_password" field on the "sys_data_source" table.

      I get the value of the password in clear (unencrypted)

       

      On the other hand, I try to read the value of a custom Password2 field on a custom table.

      I get the encrypted value of the password.

       

      I've checked this using script background:

      var datasourceGR = new GlideRecord('sys_data_source');
      datasourceGR.get('1ebdc2ca6dae430018d4722d63f9b460');
      gs.print(datasourceGR.scp_password);
      //=> I can see clear value (unencrypted)
      var customGR = new GlideRecord('u_mytable');
      customGR.get('a8d4fc2a6db6434018d4722d63f9b4cb');
      gs.print(customGR.u_mypass);
      //=> I can see encrypted value like +L/u8CSGmL00MaSa+EyjGA==
      

       

      I've doublechecked that the 2 fields are really the same Password2 type.

      It seems to me that the bad behavior is on the sys_data_source table, shouldn't it be encrypted ?

       

      Any idea about this?

      We are on Istanbul.

       

      Regards,