1
0
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:
Michael Adam 2009-11-14 01:21:42 +01:00
parent 144c23893e
commit 2e3d9abeaf

View File

@ -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 ) {