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": "abef:g1:23:45",
"type": "user_connect"
}
Can I rename the "hw_addr" key to something else (e.g., "hw_addr_wireless")?
sacli Rename Existing Key
- novaflash
- OpenVPN Inc.
- Posts: 1073
- Joined: Fri Apr 13, 2012 8:43 pm
Re: sacli Rename Existing Key
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
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.