mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
s3:is_trusted_domain: shortcut if domain name == global_sam_name
A domain can't have a trust with itself. This saves some roundtrips to the ldap server for ldapsam. Michael
This commit is contained in:
parent
144c23893e
commit
2e3d9abeaf
@ -2185,6 +2185,10 @@ bool is_trusted_domain(const char* dom_name)
|
||||
return false;
|
||||
}
|
||||
|
||||
if (strequal(dom_name, get_global_sam_name())) {
|
||||
return false;
|
||||
}
|
||||
|
||||
/* if we are a DC, then check for a direct trust relationships */
|
||||
|
||||
if ( IS_DC ) {
|
||||
|
Loading…
Reference in New Issue
Block a user