]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:kdc: let samba_kdc_trust_message2entry don't support WITHIN_FOREST and PIM_TRUST
authorStefan Metzmacher <metze@samba.org>
Fri, 20 Dec 2024 18:50:53 +0000 (19:50 +0100)
committerRalph Boehme <slow@samba.org>
Sat, 8 Feb 2025 16:23:30 +0000 (16:23 +0000)
These are not supported yet.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Sat Feb  8 16:23:30 UTC 2025 on atb-devel-224

source4/kdc/db-glue.c

index e626f230684a157cc5255d1a9249a4d78edc2dda..9fad99340589b77d4da9e205fc1da33472db6943 100644 (file)
@@ -2272,6 +2272,24 @@ static krb5_error_code samba_kdc_trust_message2entry(krb5_context context,
                goto out;
        }
 
+       if (tdo->trust_attributes & LSA_TRUST_ATTRIBUTE_WITHIN_FOREST) {
+               /*
+                * We don't support WITHIN_FOREST yet
+                */
+               krb5_clear_error_message(context);
+               ret = SDB_ERR_NOENTRY;
+               goto out;
+       }
+
+       if (tdo->trust_attributes & LSA_TRUST_ATTRIBUTE_PIM_TRUST) {
+               /*
+                * We don't support PIM_TRUST yet
+                */
+               krb5_clear_error_message(context);
+               ret = SDB_ERR_NOENTRY;
+               goto out;
+       }
+
        if (tdo->trust_attributes & LSA_TRUST_ATTRIBUTE_CROSS_ORGANIZATION) {
                /*
                 * We don't support selective authentication yet.