]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:kdc: only support LSA_TRUST_TYPE_UPLEVEL domains in samba_kdc_trust_message2entry()
authorStefan Metzmacher <metze@samba.org>
Thu, 1 Feb 2018 10:10:14 +0000 (11:10 +0100)
committerStefan Metzmacher <metze@samba.org>
Wed, 28 Feb 2018 13:33:19 +0000 (14:33 +0100)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13299

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source4/kdc/db-glue.c

index 5ca2c067585b79d32e01936bfe0ddc0fdbd2b7bc..9d633a6e528393bfbbb973efbf05b093e3082e68 100644 (file)
@@ -1215,6 +1215,16 @@ static krb5_error_code samba_kdc_trust_message2entry(krb5_context context,
                goto out;
        }
 
+       if (tdo->trust_type != LSA_TRUST_TYPE_UPLEVEL) {
+               /*
+                * Only UPLEVEL domains support kerberos here,
+                * as we don't support LSA_TRUST_TYPE_MIT.
+                */
+               krb5_clear_error_message(context);
+               ret = SDB_ERR_NOENTRY;
+               goto out;
+       }
+
        if (tdo->domain_name.string == NULL) {
                krb5_clear_error_message(context);
                ret = SDB_ERR_NOENTRY;