File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
plugins/storage/volume/ontap/src/main/java/org/apache/cloudstack/storage/service Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,8 @@ public boolean connect() {
9696 s_logger .info ("Attempting to connect to ONTAP cluster at " + storage .getStorageIP () + " and validate SVM " +
9797 storage .getSvmName () + ", protocol " + storage .getProtocol ());
9898 //Get AuthHeader
99- String authHeader = Utility .generateAuthHeader (storage .getUsername (), storage .getPassword ());
99+ String decodedPassword = new String (java .util .Base64 .getDecoder ().decode (storage .getPassword ()), java .nio .charset .StandardCharsets .UTF_8 );
100+ String authHeader = Utility .generateAuthHeader (storage .getUsername (), decodedPassword );
100101 String svmName = storage .getSvmName ();
101102 try {
102103 // Call the SVM API to check if the SVM exists
Original file line number Diff line number Diff line change @@ -938,7 +938,7 @@ export default {
938938 } else if (values .provider === ' NetApp ONTAP' ) {
939939 params[' details[0].storageIP' ] = values .ontapIP
940940 params[' details[0].username' ] = values .ontapUsername
941- params[' details[0].password' ] = values .ontapPassword
941+ params[' details[0].password' ] = btoa ( values .ontapPassword )
942942 params[' details[0].svmName' ] = values .ontapSvmName
943943 params[' details[0].protocol' ] = values .protocol
944944 values .managed = true
You can’t perform that action at this time.
0 commit comments