s3:is_trusted_domain: shortcut if domain name == global_sam_name
commitc48405ed0ab0e3c3a0c1472e3bf874a4a64c0261
authorMichael Adam <obnox@samba.org>
Sat, 14 Nov 2009 00:21:42 +0000 (14 01:21 +0100)
committerKarolin Seeger <kseeger@samba.org>
Thu, 11 Feb 2010 11:02:46 +0000 (11 12:02 +0100)
tree030e93762de2b3ee2b7f3564a2728b536deb87af
parent85d8565e8c5a290698d0f0599f851dc0bee50245
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)

Signed-off-by: Stefan Metzmacher <metze@samba.org>
source3/auth/auth_util.c