]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:ads: Do not update system keytab from "net ads changetrustpw"
authorPavel Filipenský <pfilipensky@samba.org>
Thu, 21 Dec 2023 12:57:38 +0000 (13:57 +0100)
committerPavel Filipensky <pfilipensky@samba.org>
Fri, 26 Jul 2024 17:12:36 +0000 (17:12 +0000)
It will be done in secrets_{prepare,finish}_password_change

BUG: https://bugzilla.samba.org/show_bug.cgi?id=6750

Signed-off-by: Pavel Filipenský <pfilipensky@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/utils/net_ads.c

index 9f0dbf0611e8c0782bb27cbf539aeb5041285a5e..5adb0a7a6be262d2bb55f46d2ae5db5cad8ca539 100644 (file)
@@ -2691,13 +2691,6 @@ int net_ads_changetrustpw(struct net_context *c, int argc, const char **argv)
 
        d_printf(_("Password change for principal %s succeeded.\n"), host_principal);
 
-       if (USE_SYSTEM_KEYTAB) {
-               d_printf(_("Attempting to update system keytab with new password.\n"));
-               if (ads_keytab_create_default(ads)) {
-                       d_printf(_("Failed to update system keytab.\n"));
-               }
-       }
-
        ret = 0;
 out:
        TALLOC_FREE(tmp_ctx);