s4:kdc: disable support for CROSS_ORGANIZATION domains
[samba.git] / source4 / kdc / db-glue.c
index 9d633a6e528393bfbbb973efbf05b093e3082e68..8ccc34cd665c96d978487bf89250522155614da5 100644 (file)
@@ -1225,6 +1225,15 @@ static krb5_error_code samba_kdc_trust_message2entry(krb5_context context,
                goto out;
        }
 
+       if (tdo->trust_attributes & LSA_TRUST_ATTRIBUTE_CROSS_ORGANIZATION) {
+               /*
+                * We don't support selective authentication yet.
+                */
+               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;