04-18-2019 04:49 AM
nso version 4.7.2.1, system installation
we found nso user 'admin' get access error when call an action , but read/write service model is okay
we use pam as aaa, run cli usermod -a -G 'ncsadmin' 'admin' to grant all access to user admin according to installation guide
here is ncam output:
admin@ncs# show running-config nacm groups
nacm groups group ncsadmin
user-name [ private]
!
nacm groups group ncsoper
user-name [ public ]
!
if we add 'admin' into ncsadmin on nacm, then the issue will okay
can any nso expert explain this isse?
04-18-2019 05:31 AM
04-18-2019 05:45 AM
04-18-2019 05:50 AM
04-18-2019 06:07 AM
04-18-2019 06:46 AM
04-18-2019 07:11 AM
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.
Now calling that api doesn't use a password, so it doesn't do proper authentication, so it doesn't get any external groups.
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.
04-18-2019 07:29 AM
04-18-2019 07:55 AM
04-18-2019 08:06 AM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide