-
Notifications
You must be signed in to change notification settings - Fork 192
Closed
Description
Hi,
I tried to configure a nacm-module for an user not to use protocol operation.
So, by referring RFC 8341 document, I instanced the data nodes of nacm module like bellow:
<nacm xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-acm">
<groups>
<group>
<name>guest</name>
<user-name>test</user-name>
</group>
</groups>
<rule-list>
<name>guest_limited_copy_config</name>
<group>guest</group>
<rule>
<name>deny_copy_conig</name>
<module-name>ietf-netconf</module-name>
<rpc-name>copy-config</rpc-name>
<access-operations>exec</access-operations>
<action>deny</action>
<comment>
Don't allow the ’guest’ group to execute "copy-config".
</comment>
</rule>
</rule-list>
</nacm>It's not work properly, "test" client can use operation.
but, "test" client cannot use the when I config bellow:
<nacm xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-acm">
<groups>
<group>
<name>guest</name>
<user-name>test</user-name>
</group>
</groups>
<rule-list>
<name>guest_limited_copy_config</name>
<group>guest</group>
<rule>
<name>deny_copy_conig</name>
<module-name>ietf-netconf</module-name>
<rpc-name>*</rpc-name>
<access-operations>exec</access-operations>
<action>deny</action>
<comment>
Don't allow the ’guest’ group to execute "copy-config".
</comment>
</rule>
</rule-list>
</nacm>I only changed "copy-config" into "*" that doesn't allows an user to use all protocol operations.
Do i configure wrong or has netopeer2 issue??
Please help me
Metadata
Metadata
Assignees
Labels
No labels