Yaniv Bronhaim has uploaded a new change for review.

Change subject: core: Using signed password for ovirt-node provisioning
......................................................................

core: Using signed password for ovirt-node provisioning

Using MD5 signature util.

Change-Id: I82d9e0f368e3b6e36098b33863ff7998f789688b
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1109540
Signed-off-by: Yaniv Bronhaim <[email protected]>
---
M 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/host/provider/foreman/ForemanHostProviderProxy.java
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/85/29185/1

diff --git 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/host/provider/foreman/ForemanHostProviderProxy.java
 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/host/provider/foreman/ForemanHostProviderProxy.java
index 8619cc9..cbe48ca 100644
--- 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/host/provider/foreman/ForemanHostProviderProxy.java
+++ 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/host/provider/foreman/ForemanHostProviderProxy.java
@@ -38,6 +38,7 @@
 import org.ovirt.engine.core.utils.ssl.AuthSSLProtocolSocketFactory;
 import org.codehaus.jackson.map.ObjectMapper;
 import org.codehaus.jackson.map.DeserializationConfig.Feature;
+import org.ovirt.engine.core.uutils.crypto.CryptMD5;
 
 public class ForemanHostProviderProxy extends BaseProviderProxy implements 
HostProviderProxy {
 
@@ -272,8 +273,7 @@
                 "            },\n" +
                 "           {\n" +
                 "                \"name\": \"pass\",\n" +
-                // todo: current set pass hardcore to "321321321", waits for 
alonbl for md5 util and will use also rootPassword field
-                "                \"value\": \"" + 
"$1$s/abrbU5$qSMGyWzwtBAQXLQN0VlQg0" + "\",\n" +
+                "                \"value\": \"" + CryptMD5.crypt(rootPassword, 
"b1Wff51F") + "\",\n" +
                 "                \"_destroy\": \"false\",\n" +
                 "                \"nested\": \"\"\n" +
                 "            },\n" +


-- 
To view, visit http://gerrit.ovirt.org/29185
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I82d9e0f368e3b6e36098b33863ff7998f789688b
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Yaniv Bronhaim <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to