PATCH: adjust 'net ads add keytab' for windows SPN(s) & add new 'net ads setspn' subcommand

Noel Power nopower at
Fri Feb 2 10:08:44 UTC 2018


This patch set (already reviewed-by Andreas) contains a number of
changes related to handling of windows SPN(s)

In summary the first couple of patches clean up some existing code a
little, the main patches however are to

a) change the behaviour of 'net ads add keytab'

     Note: the change here is properly handle a windows format SPN. e.g.
'net ads add keytab nfs/my.fully.qualified.domain' both to update the
keytab with the expected value and to also add the SPN to the computer
account at the AD. Legacy behaviour is preserved (see commit message in 
attached PATCH(s) 04/05 for more detail)

b) introduce a new 'setspn' subcommand.

   While working on 'net ads add keytab' changes above it seemed a good
idea to provide similar SPN management as provided by the windows tool

and commit message in PATCH 07 for more details

c) some blackbox tests for the above

please have a look.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: keytab_setspn_and_tests.patch
Type: text/x-patch
Size: 49761 bytes
Desc: not available
URL: <>

More information about the samba-technical mailing list