git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a44a8d6
)
s3:is_trusted_domain: shortcut if domain name == global_sam_name
author
Michael Adam
<obnox@samba.org>
Sat, 14 Nov 2009 00:21:42 +0000
(
01:21
+0100)
committer
Karolin Seeger
<kseeger@samba.org>
Thu, 26 Nov 2009 10:40:56 +0000
(11:40 +0100)
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
patch
|
blob
|
history
diff --git
a/source3/auth/auth_util.c
b/source3/auth/auth_util.c
index 512cae0dcbb23bb74b5880c32d25d8397d3fc5e7..118f41c35b09ce9a3b9bacbf7033af44024a3cbb 100644
(file)
--- 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 ) {