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

This patch adds basic functionality not unlike the setspn.exe
command that is provided by windows for adminsistering SPN on
the AD. (see https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-R2-and-2012/cc731241(v=ws.11)

Only the basic list operation (that corresponds to the -l
    switch for setspn.exe is implemented)

Usage:

     net ads setspn list <computer>

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 [new file with mode: 0644]
source3/utils/net_ads.c
source3/utils/net_proto.h
source3/wscript_build