summaryrefslogtreecommitdiff
path: root/source3/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
commitf637448150ef248726363ae0df0b0f7e096c256e (patch)
tree5b81b94d9f6b867c208eb344d0a2012f08eeab02 /source3/auth
parent499b3e33153527420b3945b5eeb699e6b02d3420 (diff)
downloadsamba-f637448150ef248726363ae0df0b0f7e096c256e.tar.gz
samba-f637448150ef248726363ae0df0b0f7e096c256e.tar.bz2
samba-f637448150ef248726363ae0df0b0f7e096c256e.zip
standlone servers don't have any trusted domains
(This used to be commit 4acdfc5c944aa8830d6cec7bd1225200448e45c5)
Diffstat (limited to 'source3/auth')
-rw-r--r--source3/auth/auth_util.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c
index d1c3b107e7..6fc1d772ec 100644
--- a/source3/auth/auth_util.c
+++ b/source3/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) {