summaryrefslogtreecommitdiff
path: root/source3/libads/ads_proto.h
diff options
context:
space:
mode:
authorNoel Power <noel.power@suse.com>2018-01-24 14:41:06 +0000
committerAndreas Schneider <asn@cryptomilk.org>2018-03-02 14:07:14 +0100
commit8a6c3c5ae2cab809d994821ed573315ba0c7562d (patch)
tree1f0208292c1b377dffdb4d023f4403119d84ccc1 /source3/libads/ads_proto.h
parent65ef044b8dba40e118446a0c700cffcf9bd81330 (diff)
downloadsamba-8a6c3c5ae2cab809d994821ed573315ba0c7562d.tar.gz
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>
Diffstat (limited to 'source3/libads/ads_proto.h')
-rw-r--r--source3/libads/ads_proto.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/libads/ads_proto.h b/source3/libads/ads_proto.h
index d806ce49c16..f7a9f426639 100644
--- a/source3/libads/ads_proto.h
+++ b/source3/libads/ads_proto.h
@@ -56,7 +56,8 @@ int ads_keytab_list(const char *keytab_name);
/* The following definitions come from libads/net_ads_setspn.c */
bool ads_setspn_list(ADS_STRUCT *ads, const char *machine);
-
+bool ads_setspn_add(ADS_STRUCT *ads, const char *machine_name,
+ const char * spn);
/* The following definitions come from libads/krb5_errs.c */
/* The following definitions come from libads/kerberos_util.c */