01-14-2019 04:00 AM - edited 03-01-2019 04:15 AM
Hi all,
the below works fine on a local install i have running, but when issuing the same on a system install we get this error
[root@localhost:/opt/ncs/ncs-4.7.2.1/src]# python
Python 2.7.5 (default, Feb 20 2018, 09:19:12)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-28)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import ncs
>>> import ncs.maapi as maapi
>>> import ncs.maagic as maagic
>>>
>>> m = maapi.Maapi()
>>> m.start_user_session('admin','test_context')
>>> t = m.start_write_trans()
>>> root = maagic.get_root(t)
>>> root.devices.device['r01']
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/ncs/current/src/ncs/pyapi/ncs/maagic.py", line 1070, in __getitem__
self._backend._exists(self._path + keystr))):
File "/opt/ncs/current/src/ncs/pyapi/ncs/maagic.py", line 127, in _exists
return self.exists(path)
File "/opt/ncs/current/src/ncs/pyapi/ncs/maapi.py", line 945, in proxy
return real(self2.maapi, self2.th, *args, **kwargs)
File "/opt/ncs/current/src/ncs/pyapi/ncs/maapi.py", line 386, in exists
return True if _tm.maapi.exists(self.msock, th, path) else False
_ncs.error.Error: access denied (3): access denied
>>> quit ()
any suggestions on how i can resolve this
Thanks
Regards
Yale
Solved! Go to Solution.
01-14-2019 04:34 AM
01-14-2019 04:04 AM
01-14-2019 04:26 AM
hmmmm ok our system install uses PAM for auth, and the linux host uses LDAP there is an AD account called admin yet this still does not work,
do i need to create the user via the ncs_cli ?
01-14-2019 04:34 AM
01-14-2019 04:42 AM
where should i be running this show command from ??
admin@ncs# show configuration nacm | details
------------------------------^
syntax error: expecting
commit - Display configuration changes
rollback - Display configuration changes
admin@ncs#
01-14-2019 05:02 AM
01-14-2019 05:10 AM
01-14-2019 10:51 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