s3:libads: Allow 'net ads keytab add' handle Windows SPN(s) part 2
authorNoel Power <noel.power@suse.com>
Mon, 29 Jan 2018 18:38:05 +0000 (18:38 +0000)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 2 Mar 2018 13:07:15 +0000 (14:07 +0100)
commit6cac9a4720713592ba9d0a88c39e331ec42baef4
tree6d71ca9e88c3d5dddd26ec5d121ce08c93d7608c
parentefabfb1c17b02c2e567e8e351e52aa8ba69d7c34
s3:libads: Allow 'net ads keytab add' handle Windows SPN(s) part 2

This patch addresses how the windows SPN is written to the AD.

If a legacy service (e.g. cifs, http etc.) is passed as param to
'net ads keytab add param' then windows SPNs are generated from
'param' as follows
          i) long form 'param/full_qualified_dns'
         ii) short form 'param/netbios_name'

If the SPN is a is a Windows SPN (e.g. conforming to format
'serviceclass/host:port') then this is the SPN that is passed to
the AD.

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/kerberos_keytab.c