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:
5f5fac8
)
s3:is_trusted_domain: shortcut if domain name is NULL or empty
author
Michael Adam
<obnox@samba.org>
Sat, 14 Nov 2009 00:12:22 +0000
(
01:12
+0100)
committer
Michael Adam
<obnox@samba.org>
Sat, 14 Nov 2009 07:49:00 +0000
(08:49 +0100)
This saves some roundtrips to LDAP in an ldapsm setup.
Michael
source3/auth/auth_util.c
patch
|
blob
|
history
diff --git
a/source3/auth/auth_util.c
b/source3/auth/auth_util.c
index 1d25e2220284e3a4ba64df18ccc3490560c3eef5..512cae0dcbb23bb74b5880c32d25d8397d3fc5e7 100644
(file)
--- a/
source3/auth/auth_util.c
+++ b/
source3/auth/auth_util.c
@@
-2181,6
+2181,10
@@
bool is_trusted_domain(const char* dom_name)
if ( lp_server_role() == ROLE_STANDALONE )
return False;
+ if (dom_name == NULL || dom_name[0] == '\0') {
+ return false;
+ }
+
/* if we are a DC, then check for a direct trust relationships */
if ( IS_DC ) {