Added error-info to netconf error-msg for duplicate leaf-lists

Test: removed potential duplicate user in nacm.sh
This commit is contained in:
Olof hagsand 2024-03-26 14:32:41 +01:00
parent df2af320c2
commit c9c5d4f813
6 changed files with 38 additions and 22 deletions

View file

@ -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>