Page 1 of 1

sacli Rename Existing Key

Posted: Thu Jul 16, 2020 6:37 pm
by smichelson
Hi, does anyone know if it's possible to rename an existing key using sacli command?

For example, i have a user account with these properties:

"user@domain.com": {
"conn_group": "Default",
"hw_addr": "ab:cd:ef:g1:23:45",
"type": "user_connect"
}

Can I rename the "hw_addr" key to something else (e.g., "hw_addr_wireless")?

Re: sacli Rename Existing Key

Posted: Thu Jul 16, 2020 7:33 pm
by novaflash
Hello smichelson,

No, it is not possible to rename. You will simply have to create a new key and delete the old one. Renaming is not an implemented feature.

For example in your case:

./sacli --user "user@domain.com" --key "hw_addr_wireless" --value "AB:CD:EF:G1:23:45" UserPropPut
./sacli --user "user@domain.com" --key "hw_addr" UserPropDel
./sacli start