<div dir="ltr">I tried with an export then import here and it works just fine, so I suspect the issue has to do with the json file you&#39;re using. I assume you&#39;re creating your own with external users rather than exporting from Keycloak. Maybe try to export from Keycloak to compare the format?</div><div class="gmail_extra"><br><div class="gmail_quote">On 14 December 2015 at 18:08, Kunal Kerkar <span dir="ltr">&lt;<a href="mailto:kunal@plivo.com" target="_blank">kunal@plivo.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div>Hi Bruno,</div><div><br></div><div>I&#39;m trying out master. <br><br><div><span style="background-color:rgba(255,255,255,0)"><b>KUNAL </b>| PRODUCT ENGINEER<br></span></div><span class=""><div><div dir="ltr"><div><div><span style="background-color:rgba(255,255,255,0)">Plivo, Inc. <a>340 Pine St, San Francisco - 94104, USA</a></span></div><div><div><div dir="ltr"><div><div></div><div><br></div><div><br></div></div></div></div></div></div></div></div></span></div><div><div class="h5"><div><br>On Dec 14, 2015, at 22:35, Bruno Oliveira &lt;<a href="mailto:bruno@abstractj.org" target="_blank">bruno@abstractj.org</a>&gt; wrote:<br><br></div><blockquote type="cite"><div><span>Hi Kunal, could you please tell me which version are you trying? I</span><br><span>would to try it locally here and see if I can reproduce the issue.</span><br><span></span><br><span>On Mon, Dec 14, 2015 at 2:16 PM, Kunal K &lt;<a href="mailto:kunal@plivo.com" target="_blank">kunal@plivo.com</a>&gt; wrote:</span><br><blockquote type="cite"><span>Hi,</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>I&#39;m using the migration script to import my users with a new hash algorithm</span><br></blockquote><blockquote type="cite"><span>with the following command -</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>bin/standalone.sh -Dkeycloak.migration.action=import</span><br></blockquote><blockquote type="cite"><span>-Dkeycloak.migration.provider=dir -Dkeycloak.migration.dir=keycloak-data</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>However all my salt values get changed mid way during the whole operation</span><br></blockquote><blockquote type="cite"><span>and are stored (in the database) differently than what they should be. I</span><br></blockquote><blockquote type="cite"><span>checked the code and saw that the script expects the salt values to be</span><br></blockquote><blockquote type="cite"><span>base64 encoded. I tried encoding the salt to base64, but the same issue</span><br></blockquote><blockquote type="cite"><span>persists.</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>Lastly I tried to update the salt in the database (postgres) directly using</span><br></blockquote><blockquote type="cite"><span>an UPDATE statement, which worked well. Another observation I made is that</span><br></blockquote><blockquote type="cite"><span>salt is a &#39;bytea&#39; data type in postgres and is stored as a hex value.</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>Is there some issue with the import script? I&#39;ll be happy to fix it if</span><br></blockquote><blockquote type="cite"><span>anyone points me in the right direction.</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>--</span><br></blockquote><blockquote type="cite"><span>KUNAL KERKAR | PRODUCT ENGINEER</span><br></blockquote><blockquote type="cite"><span>Plivo, Inc. 340 Pine St, San Francisco - 94104, USA</span><br></blockquote><blockquote type="cite"><span>Web: <a href="http://www.plivo.com" target="_blank">www.plivo.com</a> | Twitter: @plivo, @tsudot</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>Free Incoming SMS for All US Short Codes – Get One Today!</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>_______________________________________________</span><br></blockquote><blockquote type="cite"><span>keycloak-dev mailing list</span><br></blockquote><blockquote type="cite"><span><a href="mailto:keycloak-dev@lists.jboss.org" target="_blank">keycloak-dev@lists.jboss.org</a></span><br></blockquote><blockquote type="cite"><span><a href="https://lists.jboss.org/mailman/listinfo/keycloak-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-dev</a></span><br></blockquote><span></span><br><span></span><br><span></span><br><span>-- </span><br><span>- abstractj</span><br></div></blockquote></div></div></div><br>_______________________________________________<br>
keycloak-dev mailing list<br>
<a href="mailto:keycloak-dev@lists.jboss.org">keycloak-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-dev</a><br></blockquote></div><br></div>