From cb774a74c4e1cc03ad0267cc68b93c06738e2ce6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Pavel=20Filipensk=C3=BD?= Date: Tue, 6 Aug 2024 23:31:21 +0200 Subject: [PATCH] docs: Add examples to net.8 that use 'sync machine password to keytab' MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit BUG: https://bugzilla.samba.org/show_bug.cgi?id=15689 Pair-Programmed-With: Stefan Metzmacher Signed-off-by: Pavel Filipenský Signed-off-by: Stefan Metzmacher --- docs-xml/manpages/net.8.xml | 65 +++++++++++++++++++++++++++++++++++-- 1 file changed, 63 insertions(+), 2 deletions(-) diff --git a/docs-xml/manpages/net.8.xml b/docs-xml/manpages/net.8.xml index f0b3df793d4..e633c8c7c6a 100644 --- a/docs-xml/manpages/net.8.xml +++ b/docs-xml/manpages/net.8.xml @@ -1558,8 +1558,28 @@ are made to the computer AD account. -ADS KEYTAB <replaceable>ADD</replaceable> <replaceable>(principal | machine | serviceclass | windows SPN</replaceable> +(Removed!) ADS KEYTAB <replaceable>ADD</replaceable> <replaceable>(principal | machine | serviceclass | windows SPN</replaceable> + +This command is no longer available in Samba 4.21.0 and newer. See for replacement. + + +To replace e.g. call of + +net ads keytab add wurst/brot@REALM + +Add to smb.conf: + +sync machine password to keytab = /path/to/keytab1:spns=wurst/brot@REALM:machine_password + +and run: + +net ads keytab create + + + +Original description of this command: + Adds a new keytab entry, the entry can be either; @@ -1600,7 +1620,48 @@ available. -ADS KEYTAB <replaceable>ADD_UPDATE_ADS</replaceable> <replaceable>(principal | machine | serviceclass | windows SPN</replaceable> +(Removed!) ADS KEYTAB <replaceable>DELETE</replaceable> <replaceable>(principal | machine | serviceclass | windows SPN</replaceable> + + +This command is no longer available in Samba 4.21.0 and newer. See for replacement. + + + +To replace e.g. call of + +net ads keytab delete wurst/brot@REALM + +Delete from principal "wurst/brot@REALM" and run: + +net ads keytab create + + + + + + +(Removed!) ADS KEYTAB <replaceable>ADD_UPDATE_ADS</replaceable> <replaceable>(principal | machine | serviceclass | windows SPN</replaceable> + +This command is no longer available in Samba 4.21.0 and newer. See for replacement. + + +To replace e.g. call of + +net ads keytab add_update_ads wurst/brot@REALM + +Add to smb.conf: + +sync machine password to keytab = /path/to/keytab2:sync_spns:machine_password + +and run: + +net ads setspn add wurst/brot@REALM +net ads keytab create + + + +Original description of this command: + Adds a new keytab entry (see section for net ads keytab add). In addition to -- 2.47.3