summaryrefslogtreecommitdiffstats
path: root/source/auth
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-07-08 17:19:37 +0000
committerGerald Carter <jerry@samba.org>2003-07-08 17:19:37 +0000
commit4acdfc5c944aa8830d6cec7bd1225200448e45c5 (patch)
treef199169225f70e2ce3e6640d36e76cf98091092b /source/auth
parent43f21078ec0f885d4d1a0b90476b55f8f92de9e7 (diff)
downloadsamba-4acdfc5c944aa8830d6cec7bd1225200448e45c5.tar.gz
samba-4acdfc5c944aa8830d6cec7bd1225200448e45c5.tar.xz
samba-4acdfc5c944aa8830d6cec7bd1225200448e45c5.zip
standlone servers don't have any trusted domains
Diffstat (limited to 'source/auth')
-rw-r--r--source/auth/auth_util.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/auth/auth_util.c b/source/auth/auth_util.c
index d1c3b107e77..6fc1d772ecf 100644
--- a/source/auth/auth_util.c
+++ b/source/auth/auth_util.c
@@ -1282,6 +1282,11 @@ BOOL is_trusted_domain(const char* dom_name)
time_t lct;
BOOL ret;
+ /* no trusted domains for a standalone server */
+
+ if ( lp_server_role() == ROLE_STANDALONE )
+ return False;
+
/* if we are a DC, then check for a direct trust relationships */
if (lp_server_role() == ROLE_DOMAIN_BDC || lp_server_role() == ROLE_DOMAIN_PDC) {