1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00
samba-mirror/source4
Ralph Boehme 53ca19851d s4/rpc_server: return NULL dns_name for NT4 trusts
That's what Windows returns for an NT4 trust:

  array: struct netr_DomainTrust
      netbios_name             : *
          netbios_name             : 'NT4TRUST'
      dns_name                 : NULL
      trust_flags              : 0x00000020 (32)
             0: NETR_TRUST_FLAG_IN_FOREST
             0: NETR_TRUST_FLAG_OUTBOUND
             0: NETR_TRUST_FLAG_TREEROOT
             0: NETR_TRUST_FLAG_PRIMARY
             0: NETR_TRUST_FLAG_NATIVE
             1: NETR_TRUST_FLAG_INBOUND
             0: NETR_TRUST_FLAG_MIT_KRB5
             0: NETR_TRUST_FLAG_AES
      parent_index             : 0x00000000 (0)
      trust_type               : LSA_TRUST_TYPE_DOWNLEVEL (1)
      trust_attributes         : 0x00000000 (0)
             0: LSA_TRUST_ATTRIBUTE_NON_TRANSITIVE
             0: LSA_TRUST_ATTRIBUTE_UPLEVEL_ONLY
             0: LSA_TRUST_ATTRIBUTE_QUARANTINED_DOMAIN
             0: LSA_TRUST_ATTRIBUTE_FOREST_TRANSITIVE
             0: LSA_TRUST_ATTRIBUTE_CROSS_ORGANIZATION
             0: LSA_TRUST_ATTRIBUTE_WITHIN_FOREST
             0: LSA_TRUST_ATTRIBUTE_TREAT_AS_EXTERNAL
             0: LSA_TRUST_ATTRIBUTE_USES_RC4_ENCRYPTION
             0: LSA_TRUST_ATTRIBUTE_CROSS_ORGANIZATION_NO_TGT_DELEGATION
             0: LSA_TRUST_ATTRIBUTE_PIM_TRUST
             0: LSA_TRUST_ATTRIBUTE_CROSS_ORGANIZATION_ENABLE_TGT_DELEGATION
      sid                      : *
          sid                      : S-1-5-21-4267984555-3675415144-1682400025
      guid                     : 00000000-0000-0000-0000-000000000000

Even though when creating the trust the DNS name must not be NULL and the
trustPartner and name attributes are set to the flatName in the trustedDomain
object:

  dn: CN=NT4TRUST,CN=System,DC=wdom2,DC=site
  objectClass: top
  objectClass: leaf
  objectClass: trustedDomain
  cn: NT4TRUST
  distinguishedName: CN=NT4TRUST,CN=System,DC=wdom2,DC=site
  instanceType: 4
  whenCreated: 20240118175040.0Z
  whenChanged: 20240118175040.0Z
  uSNCreated: 4939915
  uSNChanged: 4939916
  showInAdvancedViewOnly: TRUE
  name: NT4TRUST
  objectGUID: c2273b74-19ff-4f5a-b528-9e5ae21960dd
  securityIdentifier: S-1-5-21-4267984555-3675415144-1682400025
  trustDirection: 1
  trustPartner: NT4TRUST
  trustPosixOffset: 0
  trustType: 1
  trustAttributes: 0
  flatName: NT4TRUST
  objectCategory: CN=Trusted-Domain,CN=Schema,CN=Configuration,DC=wdom2,DC=site
  isCriticalSystemObject: TRUE
  dSCorePropagationData: 16010101000000.0Z

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

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
2024-01-20 13:20:37 +00:00
..
auth s4:auth: Clarify comment about requiring FAST armor 2023-12-21 20:21:34 +00:00
cldap_server s4:cldap_server: Add missing newline to logging message 2023-08-08 04:39:38 +00:00
client s4:client: Fix code spelling 2023-09-11 02:42:41 +00:00
cluster dbwrap: Remove calls to loadparm 2018-04-24 01:53:19 +02:00
dns_server Use python.h from libreplace 2023-11-20 15:37:33 +00:00
dsdb python: Generate HRESULT definitions automatically 2024-01-15 01:56:53 +00:00
echo_server s4-echo: Remove the "echo" server (port 7, RFC 862) in production builds 2023-10-10 14:49:40 +00:00
include VERSION: move COPYRIGHT_STARTUP_MESSAGE as SAMBA_COPYRIGHT_STRING into version.h 2023-12-15 10:44:42 +00:00
kdc s4:kdc: Remove unused includes 2023-12-08 02:28:33 +00:00
ldap_server s4/ldap_backend: do_call: use modern DBG macros 2023-12-29 13:50:05 +00:00
lib pymessaging: Remove trailing whitespace 2023-12-08 02:28:33 +00:00
libcli s4/libcli/raw: implemement RAW_SFILEINFO_LINK_INFORMATION 2024-01-08 15:53:35 +00:00
libnet Use python.h from libreplace 2023-11-20 15:37:33 +00:00
librpc smbXsrv.idl: add python bindings 2024-01-09 10:21:34 +00:00
nbt_server librpc/nbt: Avoid reading invalid member of union 2023-07-07 01:14:06 +00:00
ntp_signd libcli/util: add struct tstream_context to tstream_read_pdu_blob_full_fn_t 2023-10-25 22:23:38 +00:00
ntvfs s4:ntvfs: Remove trailing whitespace 2023-12-08 02:28:33 +00:00
param Use python.h from libreplace 2023-11-20 15:37:33 +00:00
rpc_server s4/rpc_server: return NULL dns_name for NT4 trusts 2024-01-20 13:20:37 +00:00
samba VERSION: move COPYRIGHT_STARTUP_MESSAGE as SAMBA_COPYRIGHT_STRING into version.h 2023-12-15 10:44:42 +00:00
script s4:script: Fix shellcheck errors in find_unused_options.sh 2022-08-22 14:20:36 +00:00
scripting python: Generate HRESULT definitions automatically 2024-01-15 01:56:53 +00:00
selftest tests/krb5: Add Python implementation and tests for Group Key Distribution Service 2023-12-21 21:19:30 +00:00
setup CVE-2018-14628: s4:setup: set the correct nTSecurityDescriptor on the CN=Deleted Objects container 2023-10-16 14:39:33 +00:00
smb_server util/charset: Rename utf16_len_n() to utf16_null_terminated_len_n() 2023-11-15 22:07:36 +00:00
torture smbtorture: expand smb2.twrp.write test 2024-01-08 15:53:35 +00:00
utils s4:utils: Use correct enumeration constant 2023-11-30 00:02:33 +00:00
winbind CVE-2022-32746 ldb: Make use of functions for appending to an ldb_message 2022-07-27 10:52:36 +00:00
wrepl_server libcli/util: add struct tstream_context to tstream_read_pdu_blob_full_fn_t 2023-10-25 22:23:38 +00:00
.clang_complete
.valgrind_suppressions
wscript_build s4:client: Migrate cifsdd to new cmdline option parser 2021-06-16 00:34:38 +00:00