s3:libads: Do not turn on canonicalization flag for MIT Kerberos
authorAndreas Schneider <asn@samba.org>
Wed, 9 Oct 2019 14:32:47 +0000 (16:32 +0200)
committerKarolin Seeger <kseeger@samba.org>
Wed, 16 Oct 2019 19:25:14 +0000 (19:25 +0000)
This partially reverts 303b7e59a286896888ee2473995fc50bb2b5ce5e.

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

Pair-Programmed-With: Isaac Boukris <iboukris@redhat.com>

Signed-off-by: Andreas Schneider <asn@samba.org>
Signed-off-by: Isaac Boukris <iboukris@redhat.com>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit 123584294cfd153acc2d9a5be9d71c395c847a25)

source3/libads/krb5_setpw.c

index 67bc2f4640d541a4c42569e1849e4e7a79da6f00..028b0dcfa65bbb321c334e572d1b7705a3937ce9 100644 (file)
@@ -207,7 +207,22 @@ static ADS_STATUS ads_krb5_chg_password(const char *kdc_host,
        krb5_get_init_creds_opt_set_win2k(context, opts, true);
        krb5_get_init_creds_opt_set_canonicalize(context, opts, true);
 #else /* MIT */
+#if 0
+       /*
+        * FIXME
+        *
+        * Due to an upstream MIT Kerberos bug, this feature is not
+        * not working. Affection versions (2019-10-09): <= 1.17
+        *
+        * Reproducer:
+        * kinit -C aDmInIsTrAtOr@ACME.COM -S kadmin/changepw@ACME.COM
+        *
+        * This is NOT a problem if the service is a krbtgt.
+        *
+        * https://bugzilla.samba.org/show_bug.cgi?id=14155
+        */
        krb5_get_init_creds_opt_set_canonicalize(opts, true);
+#endif
 #endif /* MIT */
 
     /* note that heimdal will fill in the local addresses if the addresses