samba-tool contact: add new contact 'rename' command
commitbf04cb3b7a9182b07e8eee7c0626cb0c2cf0b7e6
authorJule Anger <ja@sernet.de>
Fri, 14 Aug 2020 10:25:10 +0000 (14 12:25 +0200)
committerDouglas Bagnall <dbagnall@samba.org>
Thu, 1 Oct 2020 01:18:40 +0000 (1 01:18 +0000)
treee93a63d4af2263db5e505dd99ba44f0abd6a7f33
parentac283a96e774b67cf6da05e8bcc9247444be851b
samba-tool contact: add new contact 'rename' command

Usage: samba-tool contact rename <contactname> [options]

Rename a contact and related attributes.

This command allows to set the contact's name related attributes.

Use an empty attribute value to remove the specified attribute.

The contactname specified on the command is the CN.

Example1:
samba-tool contact rename "John Doe" --surname=Bloggs \\
    --force-new-cn=John

Example1 shows how to change the surname ('sn' attribute) of a contact
'John Doe' to 'Bloggs' and change the CN to 'John' on the local server.

Signed-off-by: Jule Anger <ja@sernet.de>
Reviewed-by: Björn Baumbach <bb@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
python/samba/netcmd/contact.py