infix
infix copied to clipboard
NETCONF ACL to limit access to password hash
Example: Custom DENY Rule
Deny reading password hash for non-administrators. (Untested)
nacm {
groups {
group admin {
name "admin";
user-name [ "admin1", "admin2" ]; // Specify actual administrator usernames
}
}
rule-list admin-rule-list {
group "admin"; // Link to the admin group
rule allow-admin-password-read {
module-name "ietf-system";
path "/sys:system/sys:authentication/sys:user/sys:password";
access-operations "read"; // Specify operations you want to allow (read, write, etc.)
action permit; // Actions can be 'permit' or 'deny'
}
}
rule-list default-deny-all {
group "*"; // Applies to all users
rule deny-password-read {
module-name "ietf-system";
path "/sys:system/sys:authentication/sys:user/sys:password";
access-operations "read"; // Specify operations you want to deny
action deny; // Ensuring default deny all for password field
}
}
}