diff options
author | Michael Adam <obnox@samba.org> | 2009-11-14 01:21:42 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2009-11-14 01:28:57 +0100 |
commit | 2e3d9abeafebffa6ff1c7b3de80525cd5f6deb49 (patch) | |
tree | eb307840a6290e98ff1eb38d662445b46ac70541 /source3/auth | |
parent | 144c23893ec580eed1a38b2fd577b4bd4ebf491d (diff) | |
download | samba-2e3d9abeafebffa6ff1c7b3de80525cd5f6deb49.tar.gz samba-2e3d9abeafebffa6ff1c7b3de80525cd5f6deb49.tar.bz2 samba-2e3d9abeafebffa6ff1c7b3de80525cd5f6deb49.zip |
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
Diffstat (limited to 'source3/auth')
-rw-r--r-- | source3/auth/auth_util.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c index 512cae0dcb..118f41c35b 100644 --- a/source3/auth/auth_util.c +++ b/source3/auth/auth_util.c @@ -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 ) { |