Added error-info to netconf error-msg for duplicate leaf-lists
Test: removed potential duplicate user in nacm.sh
This commit is contained in:
parent
df2af320c2
commit
c9c5d4f813
6 changed files with 38 additions and 22 deletions
|
|
@ -2,7 +2,9 @@
|
|||
# Authentication and authorization and IETF NACM
|
||||
# Library variable and functions
|
||||
|
||||
USER=$(whoami)
|
||||
if [ $(whoami) != root ]; then
|
||||
EXTRAUSER="<user-name>$(whoami)</user-name>"
|
||||
fi
|
||||
|
||||
# Three groups from RFC8341 A.1 (admin extended with $USER)
|
||||
NGROUPS=$(cat <<EOF
|
||||
|
|
@ -12,7 +14,7 @@ NGROUPS=$(cat <<EOF
|
|||
<user-name>root</user-name>
|
||||
<user-name>admin</user-name>
|
||||
<user-name>andy</user-name>
|
||||
<user-name>$USER</user-name>
|
||||
$EXTRAUSER
|
||||
</group>
|
||||
<group>
|
||||
<name>limited</name>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue