s3:utils: add new 'net ads setspn delete' subcommand
authorNoel Power <noel.power@suse.com>
Wed, 24 Jan 2018 14:51:03 +0000 (14:51 +0000)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 2 Mar 2018 13:07:14 +0000 (14:07 +0100)
commit5fa82263ad6bc82c9a8b34797df35bd800b7f11f
tree1995c1bb4eb91f50cf862a2948133ee2d91f44e4
parent8a6c3c5ae2cab809d994821ed573315ba0c7562d
s3:utils: add new 'net ads setspn delete' subcommand

This patch adds 'delete' to the 'net ads setspn' subcommand

(see https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-R2-and-2012/cc731241(v=ws.11)

Usage:

    net ads setspn delete <computer> <SPN>

Note: <computer> is optional, if not specified the computer account
associated with value returned by lp_netbios_name() is used instead.

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/libads/ads_proto.h
source3/libads/net_ads_setspn.c
source3/utils/net_ads.c