<?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: mgmt_cli Only &amp;quot;admin&amp;quot; user works for authentication in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-Only-quot-admin-quot-user-works-for-authentication/m-p/162293#M7298</link>
    <description>&lt;P&gt;That's odd. I use central authentication for my account, and I'm definitely able to get into my MDS via the API:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[Expert@MyMDS]# mgmt_cli -d "Global" login
Username: zimmie
Password: 
uid: "8fb1319e-b00b-4062-84b9-ee705cf053fa"
sid: "8XNsNFG78VUvub477DRkzOiBY7_dB5J9fVCxmBQwetg"
url: "https://127.0.0.1:443/web_api"
session-timeout: 600
api-server-version: "1.8"
user-name: "zimmie"
user-uid: "407b754f-40c6-41c6-bee6-2a113e8c9b94"

[Expert@MyMDS]# vi session.txt    # Just to paste the information from above.
[Expert@MyMDS]# mgmt_cli -f json -s session.txt logout
{
  "message" : "OK"
}&lt;/LI-CODE&gt;
&lt;P&gt;I'm using RADIUS rather than TACACS (because you can have admins authenticate against a RADIUS&amp;nbsp;&lt;EM&gt;group&lt;/EM&gt; instead of just one TACACS server), but neither RADIUS nor TACACS has any control over permissions.&lt;/P&gt;
&lt;P&gt;Does the TACACS server show the user successfully authenticating?&lt;/P&gt;</description>
    <pubDate>Wed, 16 Nov 2022 22:05:01 GMT</pubDate>
    <dc:creator>Bob_Zimmerman</dc:creator>
    <dc:date>2022-11-16T22:05:01Z</dc:date>
    <item>
      <title>mgmt_cli Only "admin" user works for authentication</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-Only-quot-admin-quot-user-works-for-authentication/m-p/162178#M7293</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;We're wanting to use mgmt_cli but have logs for the particular user that is making the changes for auditing.&amp;nbsp; Initially tried a user that is defined in Smartconsole that has super domain admin privileges (remote auth) but get auth failed, have also tried creating a local user with the "Gaia API" ticked in Gaia Portal with adminRole selected but same thing.&amp;nbsp; Only the "admin" username works - what am I missing here?&amp;nbsp; Running MDM R81.10 JHF 66&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 23:42:01 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-Only-quot-admin-quot-user-works-for-authentication/m-p/162178#M7293</guid>
      <dc:creator>cem82</dc:creator>
      <dc:date>2022-11-15T23:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: mgmt_cli Only "admin" user works for authentication</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-Only-quot-admin-quot-user-works-for-authentication/m-p/162182#M7294</link>
      <description>&lt;P&gt;Try updating the Gaia API itself from here:&amp;nbsp;&lt;A href="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk143612" target="_blank"&gt;https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk143612&lt;/A&gt;&lt;BR /&gt;If you're still having issues, I recommend engaging with the TAC.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 00:35:25 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-Only-quot-admin-quot-user-works-for-authentication/m-p/162182#M7294</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2022-11-16T00:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: mgmt_cli Only "admin" user works for authentication</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-Only-quot-admin-quot-user-works-for-authentication/m-p/162247#M7296</link>
      <description>&lt;P&gt;Are you talking about the Gaia API (for managing OS-level things like routes and SNMP traps), or the management API (for managing application-level things like objects and rules)? mgmt_cli is used for the latter, but the "Gaia API" checkbox is only for the OS-level API.&lt;/P&gt;
&lt;P&gt;If you're trying to use the management API with an MDS, you have to specify which management domain you want to login to.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 15:09:47 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-Only-quot-admin-quot-user-works-for-authentication/m-p/162247#M7296</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2022-11-16T15:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: mgmt_cli Only "admin" user works for authentication</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-Only-quot-admin-quot-user-works-for-authentication/m-p/162280#M7297</link>
      <description>&lt;P&gt;This is for the mgmt API for object and rules management etc and am specifying the --domain option as we are running MDM.&lt;/P&gt;&lt;P&gt;I've done some further testing now, works for a test user created in Smartconsole using "Check Point password" works.&amp;nbsp; For all other users we have TACACS auth and that isn't working for mgmt_cli but does for smartconsole/ssh/etc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Didn't realise the "Gaia API" was for OS level so thanks for pointing that out&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 20:55:49 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-Only-quot-admin-quot-user-works-for-authentication/m-p/162280#M7297</guid>
      <dc:creator>cem82</dc:creator>
      <dc:date>2022-11-16T20:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: mgmt_cli Only "admin" user works for authentication</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-Only-quot-admin-quot-user-works-for-authentication/m-p/162293#M7298</link>
      <description>&lt;P&gt;That's odd. I use central authentication for my account, and I'm definitely able to get into my MDS via the API:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[Expert@MyMDS]# mgmt_cli -d "Global" login
Username: zimmie
Password: 
uid: "8fb1319e-b00b-4062-84b9-ee705cf053fa"
sid: "8XNsNFG78VUvub477DRkzOiBY7_dB5J9fVCxmBQwetg"
url: "https://127.0.0.1:443/web_api"
session-timeout: 600
api-server-version: "1.8"
user-name: "zimmie"
user-uid: "407b754f-40c6-41c6-bee6-2a113e8c9b94"

[Expert@MyMDS]# vi session.txt    # Just to paste the information from above.
[Expert@MyMDS]# mgmt_cli -f json -s session.txt logout
{
  "message" : "OK"
}&lt;/LI-CODE&gt;
&lt;P&gt;I'm using RADIUS rather than TACACS (because you can have admins authenticate against a RADIUS&amp;nbsp;&lt;EM&gt;group&lt;/EM&gt; instead of just one TACACS server), but neither RADIUS nor TACACS has any control over permissions.&lt;/P&gt;
&lt;P&gt;Does the TACACS server show the user successfully authenticating?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 22:05:01 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-Only-quot-admin-quot-user-works-for-authentication/m-p/162293#M7298</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2022-11-16T22:05:01Z</dc:date>
    </item>
  </channel>
</rss>

