<?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: nso user admin didn't get all access even already did &amp;quot;usermod -a -G 'ncsadmin' 'admin' &amp;quot; in NSO Developer Hub Discussions</title>
    <link>https://community.cisco.com/t5/nso-developer-hub-discussions/nso-user-admin-didn-t-get-all-access-even-already-did-quot/m-p/3841180#M3702</link>
    <description>Yes, that is exactly right in your understanding!&lt;BR /&gt;&lt;BR /&gt;I am trying to look at a way of digging up the group, I was certain it was in the uinfo but it seems not. I’ll have to poke around a bit.&lt;BR /&gt;</description>
    <pubDate>Thu, 18 Apr 2019 15:06:44 GMT</pubDate>
    <dc:creator>vleijon</dc:creator>
    <dc:date>2019-04-18T15:06:44Z</dc:date>
    <item>
      <title>nso user admin didn't get all access even already did "usermod -a -G 'ncsadmin' 'admin' "</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/nso-user-admin-didn-t-get-all-access-even-already-did-quot/m-p/3841048#M3691</link>
      <description>&lt;P&gt;nso version 4.7.2.1, system installation&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;we found nso user 'admin' get access&amp;nbsp; error when call an action , but read/write service model is okay&lt;/P&gt;
&lt;P&gt;we use pam as aaa,&amp;nbsp; run cli&amp;nbsp;usermod -a -G 'ncsadmin' 'admin' to grant all access to user admin according to installation guide&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;here is ncam output:&lt;/P&gt;
&lt;P&gt;admin@ncs# show running-config nacm groups&lt;BR /&gt;nacm groups group ncsadmin&lt;BR /&gt;user-name [ private]&lt;BR /&gt;!&lt;BR /&gt;nacm groups group ncsoper&lt;BR /&gt;user-name [ public ]&lt;BR /&gt;!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if we add 'admin' into ncsadmin on nacm, then the issue will okay&lt;/P&gt;
&lt;P&gt;can any nso expert explain this isse?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2019 11:49:37 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/nso-user-admin-didn-t-get-all-access-even-already-did-quot/m-p/3841048#M3691</guid>
      <dc:creator>jinlliu</dc:creator>
      <dc:date>2019-04-18T11:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: nso user admin didn't get all access even already did "usermod -a -G 'ncsadmin' 'admin' "</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/nso-user-admin-didn-t-get-all-access-even-already-did-quot/m-p/3841072#M3692</link>
      <description>The question is what groups were assigned when the user logged in. You didn’t mention if the user was using netconf or cli or some other interface, and you didn’t mention how authentication is setup, is it only local auth?&lt;BR /&gt;&lt;BR /&gt;The easiest thing is to check audit.log for a line like this:&lt;BR /&gt;&lt;BR /&gt;&lt;INFO&gt; 26-Jan-2018::17:41:45.937 VLEIJON-M-N1WC ncs[49510]: audit user: admin/52 assigned to groups: admin,staff,com.apple.sharepoint.group.1,everyone,localaccounts,_appserverusr,_appserveradm,_lpadmin,_appstore,_lpoperator,_developer,com.apple.access_ftp,com.apple.access_screensharing,com.apple.access_ssh&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/INFO&gt;</description>
      <pubDate>Thu, 18 Apr 2019 12:31:44 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/nso-user-admin-didn-t-get-all-access-even-already-did-quot/m-p/3841072#M3692</guid>
      <dc:creator>vleijon</dc:creator>
      <dc:date>2019-04-18T12:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: nso user admin didn't get all access even already did "usermod -a -G 'ncsadmin' 'admin' "</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/nso-user-admin-didn-t-get-all-access-even-already-did-quot/m-p/3841082#M3693</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks for your fast prompt response&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The user we used to login is a linux user "admin", which belong to linux group "ncsadmin", the access issue came both cli or netconf way&lt;BR /&gt;&lt;BR /&gt;And the authentication is using "PAM"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Acoording to below comments I found on NSO doc,  it seems that I should have all access to network&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;"Given the default NACM authorization rules we should have three different types of users on the system&lt;BR /&gt;Users with shell access that are members of ncsadmin Linux group. These users are considered fully trusted. They have full access to the system as well as the entire network."&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Apr 2019 12:45:44 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/nso-user-admin-didn-t-get-all-access-even-already-did-quot/m-p/3841082#M3693</guid>
      <dc:creator>jinlliu</dc:creator>
      <dc:date>2019-04-18T12:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: nso user admin didn't get all access even already did "usermod -a -G 'ncsadmin' 'admin' "</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/nso-user-admin-didn-t-get-all-access-even-already-did-quot/m-p/3841085#M3694</link>
      <description>Okay, the question is what groups are returned from PAM then, double check in devel.log what it actually gives though to make sure it is what you expect! It might be that for some reason PAM doesn’t return the ncsadmin group – this might be especially if pam authenticates in turn against a remote source such as LDAP.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Apr 2019 12:50:44 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/nso-user-admin-didn-t-get-all-access-even-already-did-quot/m-p/3841085#M3694</guid>
      <dc:creator>vleijon</dc:creator>
      <dc:date>2019-04-18T12:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: nso user admin didn't get all access even already did "usermod -a -G 'ncsadmin' 'admin' "</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/nso-user-admin-didn-t-get-all-access-even-already-did-quot/m-p/3841102#M3695</link>
      <description>We didn't see devel.log,  but got output from audit.log&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;INFO&gt; 18-Apr-2019::21:53:14.656 uhn4blcsns000000 ncs[13828]: audit user: admin/7549 assigned to groups: ncsadmin&lt;BR /&gt;&lt;BR /&gt;&lt;INFO&gt; 18-Apr-2019::21:53:59.174 uhn4blcsns000000 ncs[13828]: audit user: admin/7549 CLI 'rmno pod epc_openstack_vim os-services disable binary nova-compute hosts [ UHN7ttce1cvcm009 ]'&lt;BR /&gt;&lt;BR /&gt;&lt;INFO&gt; 18-Apr-2019::21:53:59.177 uhn4blcsns000000 ncs[13828]: audit user: admin/7550 assigned to groups:&lt;BR /&gt;&lt;BR /&gt;&lt;INFO&gt; 18-Apr-2019::21:53:59.180 uhn4blcsns000000 ncs[13828]: audit user: admin/7550 Logged out from maapi ctx=cli (closed)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;CLI 'rmno pod epc_openstack_vim os-services disable binary nova-compute hosts [ UHN7ttce1cvcm009 ]'   is an action we defined&lt;BR /&gt;&lt;BR /&gt;BTW, there is no remote source existing in our envrionment&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/INFO&gt;&lt;/INFO&gt;&lt;/INFO&gt;&lt;/INFO&gt;</description>
      <pubDate>Thu, 18 Apr 2019 13:07:44 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/nso-user-admin-didn-t-get-all-access-even-already-did-quot/m-p/3841102#M3695</guid>
      <dc:creator>jinlliu</dc:creator>
      <dc:date>2019-04-18T13:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: nso user admin didn't get all access even already did "usermod -a -G 'ncsadmin' 'admin' "</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/nso-user-admin-didn-t-get-all-access-even-already-did-quot/m-p/3841131#M3696</link>
      <description>If we add admin into nacm from nso cli, this issue is gone, log like below show up&lt;BR /&gt;&lt;BR /&gt;Please notice the red marked part, it's assigned to groups: ncsadmin this time,    but if we delete admin from nacm settting,  it will assigned to empty&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;INFO&gt; 18-Apr-2019::22:36:37.858 uhn4blcsns000000 ncs[13828]: audit user: admin/7553 CLI 'rmno pod epc_openstack_vim os-services disable binary nova-compute hosts [ UHN7ttce1cvcm009 ]'&lt;BR /&gt;&lt;BR /&gt;&lt;INFO&gt; 18-Apr-2019::22:36:37.861 uhn4blcsns000000 ncs[13828]: audit user: admin/7560 assigned to groups: ncsadmin&lt;BR /&gt;&lt;BR /&gt;&lt;INFO&gt; 18-Apr-2019::22:36:39.618 uhn4blcsns000000 ncs[13828]: audit user: admin/7560 Logged out from maapi ctx=cli (closed)&lt;BR /&gt;&lt;BR /&gt;&lt;INFO&gt; 18-Apr-2019::22:36:39.618 uhn4blcsns000000 ncs[13828]: audit user: admin/7553 CLI done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/INFO&gt;&lt;/INFO&gt;&lt;/INFO&gt;&lt;/INFO&gt;</description>
      <pubDate>Thu, 18 Apr 2019 13:46:44 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/nso-user-admin-didn-t-get-all-access-even-already-did-quot/m-p/3841131#M3696</guid>
      <dc:creator>jinlliu</dc:creator>
      <dc:date>2019-04-18T13:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: nso user admin didn't get all access even already did "usermod -a -G 'ncsadmin' 'admin' "</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/nso-user-admin-didn-t-get-all-access-even-already-did-quot/m-p/3841145#M3699</link>
      <description>&lt;P&gt;I am pretty sure I can tell you what is happening. I think that your action creates a fresh usersession, using startUserSession or something like that with an empty group list, that is the second line you see in the log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now calling that api doesn't use a password, so it doesn't do proper authentication, so it doesn't get any external groups.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;You want to give a group list when you start the user session. To avoid hardcoding both username as groups you can look at the uinfo (userinfo) that you get when the action is called and making sure to pass that on to the new session.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2019 14:11:26 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/nso-user-admin-didn-t-get-all-access-even-already-did-quot/m-p/3841145#M3699</guid>
      <dc:creator>vleijon</dc:creator>
      <dc:date>2019-04-18T14:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: nso user admin didn't get all access even already did "usermod -a -G 'ncsadmin' 'admin' "</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/nso-user-admin-didn-t-get-all-access-even-already-did-quot/m-p/3841160#M3700</link>
      <description>Hi vleijon，&lt;BR /&gt;&lt;BR /&gt;You are so professional,  what you tell is very correct&lt;BR /&gt;&lt;BR /&gt;Our action creates a fresh user session, using startUserSession that with user admin but an empty group list&lt;BR /&gt;&lt;BR /&gt;Then seems it will  get group assigned automatically if we add admin into ncsadm from nacm rule setting, why ?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;And about the DpUserInfo userInfo you mentioned , it doesn’t include group info ,  so we  can get its group list without hardcode&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Apr 2019 14:29:44 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/nso-user-admin-didn-t-get-all-access-even-already-did-quot/m-p/3841160#M3700</guid>
      <dc:creator>jinlliu</dc:creator>
      <dc:date>2019-04-18T14:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: nso user admin didn't get all access even already did "usermod -a -G 'ncsadmin' 'admin' "</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/nso-user-admin-didn-t-get-all-access-even-already-did-quot/m-p/3841172#M3701</link>
      <description>Sorry again,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Let me guess, In our case(User admin with shell access that are members of ncsadmin Linux group)  , the first user session will get ncsadmin assigned as group when login by cli/netconf,&lt;BR /&gt;&lt;BR /&gt;Then the following usersession will not get ncsadmin assigned if not specific , also no define under nacm rule setting,  then it will failed since access issue.&lt;BR /&gt;&lt;BR /&gt;Am I right ?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thank again.&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Apr 2019 14:55:46 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/nso-user-admin-didn-t-get-all-access-even-already-did-quot/m-p/3841172#M3701</guid>
      <dc:creator>jinlliu</dc:creator>
      <dc:date>2019-04-18T14:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: nso user admin didn't get all access even already did "usermod -a -G 'ncsadmin' 'admin' "</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/nso-user-admin-didn-t-get-all-access-even-already-did-quot/m-p/3841180#M3702</link>
      <description>Yes, that is exactly right in your understanding!&lt;BR /&gt;&lt;BR /&gt;I am trying to look at a way of digging up the group, I was certain it was in the uinfo but it seems not. I’ll have to poke around a bit.&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Apr 2019 15:06:44 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/nso-user-admin-didn-t-get-all-access-even-already-did-quot/m-p/3841180#M3702</guid>
      <dc:creator>vleijon</dc:creator>
      <dc:date>2019-04-18T15:06:44Z</dc:date>
    </item>
  </channel>
</rss>

