<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Adding new local user using clish on Spark appliances in Spark Firewall (SMB)</title>
    <link>https://community.checkpoint.com/t5/Spark-Firewall-SMB/Adding-new-local-user-using-clish-on-Spark-appliances/m-p/186771#M9207</link>
    <description>&lt;P&gt;There are two possible issues here:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;The SMB appliance don't support SHA256 hashes (thus where the "not valid password hash" comes in).&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;When I try to use an MD5 hashed password (&lt;A href="https://sc1.checkpoint.com/documents/SMB_R81.10.X/CLI/EN/Content/Topics/add-local-user.htm" target="_self"&gt;as suggested in the documentation&lt;/A&gt;), I get an "unknown error" when attempting to apply the command.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;I'd try using an MD5-hashed password.&lt;BR /&gt;If it doesn't work on your version, please open a TAC case: &lt;A href="https://help.checkpoint.com" target="_blank" rel="noopener"&gt;https://help.checkpoint.com&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 18 Jul 2023 21:06:58 GMT</pubDate>
    <dc:creator>PhoneBoy</dc:creator>
    <dc:date>2023-07-18T21:06:58Z</dc:date>
    <item>
      <title>Adding new local user using clish on Spark appliances</title>
      <link>https://community.checkpoint.com/t5/Spark-Firewall-SMB/Adding-new-local-user-using-clish-on-Spark-appliances/m-p/186732#M9201</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;
&lt;P&gt;I am trying to reconfigure a 1500 appliance using a CLI script exported from another appliance. However, the command to add a new local-user using password hash fails:&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;# clish -c 'show configuration' | grep local-user&lt;BR /&gt;add local-user name "test" password-hash "$5$uP8D78rQ$bYXgdHEoNfyynYHHkpMaHluTxtQkMGGkg.fFAffrtXC" is-temp-user "false"&lt;BR /&gt;# clish&lt;BR /&gt;&amp;gt; delete user test type local&lt;BR /&gt;&amp;gt; add local-user name test password-hash $5$uP8D78rQ$bYXgdHEoNfyynYHHkpMaHluTxtQkMGGkg.fFAffrtXC is-temp-user false&lt;BR /&gt;Could not set local-user password-hash: Not valid password hash&lt;BR /&gt;Could not set local-user password-hash: Not valid password hash&lt;/P&gt;
&lt;P&gt;The reason why I want to do this is that I attempted a migration from R77.20.87 to R80.20.X, but I had a million problems and errors poping up and TAC is not being slow to respond. So I decided to configure from scratch using a script, but this would impact 20 local users if I am unable to create them.&lt;/P&gt;
&lt;P&gt;Does anyone know how to make this command work?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS: Adding administrators seems to work. The issue happens for local users (such as VPN users, etc).&lt;/P&gt;
&lt;P&gt;The gateway is locally managed.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 16:48:27 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Spark-Firewall-SMB/Adding-new-local-user-using-clish-on-Spark-appliances/m-p/186732#M9201</guid>
      <dc:creator>Pedro_Espindola</dc:creator>
      <dc:date>2023-07-18T16:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: Adding new local user using clish on Spark appliances</title>
      <link>https://community.checkpoint.com/t5/Spark-Firewall-SMB/Adding-new-local-user-using-clish-on-Spark-appliances/m-p/186734#M9202</link>
      <description>&lt;P&gt;Will test this shortly and update you.&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 17:55:47 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Spark-Firewall-SMB/Adding-new-local-user-using-clish-on-Spark-appliances/m-p/186734#M9202</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2023-07-18T17:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: Adding new local user using clish on Spark appliances</title>
      <link>https://community.checkpoint.com/t5/Spark-Firewall-SMB/Adding-new-local-user-using-clish-on-Spark-appliances/m-p/186737#M9203</link>
      <description>&lt;P&gt;Lets see if SMB gurus can confirm, but the option seems pretty straight forward&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot_1.png" style="width: 400px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/21776iA5B3E7A8734BA32E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot_1.png" alt="Screenshot_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 18:04:14 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Spark-Firewall-SMB/Adding-new-local-user-using-clish-on-Spark-appliances/m-p/186737#M9203</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2023-07-18T18:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: Adding new local user using clish on Spark appliances</title>
      <link>https://community.checkpoint.com/t5/Spark-Firewall-SMB/Adding-new-local-user-using-clish-on-Spark-appliances/m-p/186771#M9207</link>
      <description>&lt;P&gt;There are two possible issues here:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;The SMB appliance don't support SHA256 hashes (thus where the "not valid password hash" comes in).&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;When I try to use an MD5 hashed password (&lt;A href="https://sc1.checkpoint.com/documents/SMB_R81.10.X/CLI/EN/Content/Topics/add-local-user.htm" target="_self"&gt;as suggested in the documentation&lt;/A&gt;), I get an "unknown error" when attempting to apply the command.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;I'd try using an MD5-hashed password.&lt;BR /&gt;If it doesn't work on your version, please open a TAC case: &lt;A href="https://help.checkpoint.com" target="_blank" rel="noopener"&gt;https://help.checkpoint.com&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 21:06:58 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Spark-Firewall-SMB/Adding-new-local-user-using-clish-on-Spark-appliances/m-p/186771#M9207</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2023-07-18T21:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: Adding new local user using clish on Spark appliances</title>
      <link>https://community.checkpoint.com/t5/Spark-Firewall-SMB/Adding-new-local-user-using-clish-on-Spark-appliances/m-p/186774#M9208</link>
      <description>&lt;P&gt;Thanks for the suggestion.&lt;/P&gt;
&lt;P&gt;The problem is that I don't have the passwords of all the users, so I wanted to export with&amp;nbsp;&lt;SPAN&gt;show configuration and reimport in another clean installed gateway with the same model and firmware version.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;The command that the SMB exports it cannot import. If it does not support SHA256 how is it exporting SHA256?&lt;/P&gt;
&lt;P&gt;I suspected that there might be some salt that is exclusive to the box, so I ran the lines below in the same gateway, creating a user, exporting, deleting and importing, all in the same box and still it does not work:&lt;/P&gt;
&lt;P&gt;&amp;gt; add&amp;nbsp;local-user name test password vpn123&lt;BR /&gt;# clish -c 'show configuration' | grep local-user&lt;BR /&gt;add local-user name "test" password-hash "$5$uP8D78rQ$bYXgdHEoNfyynYHHkpMaHluTxtQkMGGkg.fFAffrtXC" is-temp-user "false"&lt;BR /&gt;# clish&lt;BR /&gt;&amp;gt; delete user test type local&lt;BR /&gt;&amp;gt; add local-user name test password-hash $5$uP8D78rQ$bYXgdHEoNfyynYHHkpMaHluTxtQkMGGkg.fFAffrtXC is-temp-user false&lt;BR /&gt;Could not set local-user password-hash: Not valid password hash&lt;BR /&gt;Could not set local-user password-hash: Not valid password hash&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 21:39:05 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Spark-Firewall-SMB/Adding-new-local-user-using-clish-on-Spark-appliances/m-p/186774#M9208</guid>
      <dc:creator>Pedro_Espindola</dc:creator>
      <dc:date>2023-07-18T21:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: Adding new local user using clish on Spark appliances</title>
      <link>https://community.checkpoint.com/t5/Spark-Firewall-SMB/Adding-new-local-user-using-clish-on-Spark-appliances/m-p/186780#M9209</link>
      <description>&lt;P&gt;I believe what&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/7"&gt;@PhoneBoy&lt;/a&gt;&amp;nbsp;said definitely sounds logical.&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2023 01:05:32 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Spark-Firewall-SMB/Adding-new-local-user-using-clish-on-Spark-appliances/m-p/186780#M9209</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2023-07-19T01:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: Adding new local user using clish on Spark appliances</title>
      <link>https://community.checkpoint.com/t5/Spark-Firewall-SMB/Adding-new-local-user-using-clish-on-Spark-appliances/m-p/186884#M9210</link>
      <description>&lt;P&gt;I recommend engaging with the TAC on this: &lt;A href="https://help.checkpoint.com" target="_blank"&gt;https://help.checkpoint.com&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2023 16:24:45 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Spark-Firewall-SMB/Adding-new-local-user-using-clish-on-Spark-appliances/m-p/186884#M9210</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2023-07-19T16:24:45Z</dc:date>
    </item>
  </channel>
</rss>

