s3:utils: add new 'net ads setspn add' subcommand
authorNoel Power <noel.power@suse.com>
Wed, 24 Jan 2018 14:41:06 +0000 (14:41 +0000)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 2 Mar 2018 13:07:14 +0000 (14:07 +0100)
commit8a6c3c5ae2cab809d994821ed573315ba0c7562d
tree1f0208292c1b377dffdb4d023f4403119d84ccc1
parent65ef044b8dba40e118446a0c700cffcf9bd81330
s3:utils: add new 'net ads setspn add' subcommand

This patch adds 'add' 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 add <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