sacli Rename Existing Key

Business solution to host your own OpenVPN server with web management interface and bundled clients.
Post Reply
smichelson
OpenVpn Newbie
Posts: 3
Joined: Tue Jul 07, 2020 8:56 pm

sacli Rename Existing Key

Post by smichelson » Thu Jul 16, 2020 6:37 pm

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")?

User avatar
novaflash
OpenVPN Inc.
Posts: 1073
Joined: Fri Apr 13, 2012 8:43 pm

Re: sacli Rename Existing Key

Post by novaflash » Thu Jul 16, 2020 7:33 pm

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
I'm still alive, just posting under the openvpn_inc alias now as part of a larger group.

Post Reply