s3:is_trusted_domain: shortcut if domain name == global_sam_name
authorMichael Adam <obnox@samba.org>
Sat, 14 Nov 2009 00:21:42 +0000 (01:21 +0100)
committerKarolin Seeger <kseeger@samba.org>
Thu, 26 Nov 2009 10:40:56 +0000 (11:40 +0100)
commit4bf0602502cde53b8a5196001e0fdc2db9736da9
tree88351b8b14a35d7da7895e39b96febf57ceedb67
parenta44a8d6315b1ff5eec5879289e311841c4413f6e
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
(cherry picked from commit dc3a90cf21813526854c12db126d08ebf32f8ae5)
source3/auth/auth_util.c