summaryrefslogtreecommitdiff
path: root/source3/passdb
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-05-26 12:11:21 +0200
committerMichael Adam <obnox@samba.org>2008-05-26 16:42:24 +0200
commita186e598c43cb3a9a3ff7f4626407074cc938e96 (patch)
treea5a67c1467ead5e51a3b4b44eb2f72c72aea5d22 /source3/passdb
parent4de01a909a0b632775866866ca0042a25cb5495e (diff)
downloadsamba-a186e598c43cb3a9a3ff7f4626407074cc938e96.tar.gz
samba-a186e598c43cb3a9a3ff7f4626407074cc938e96.tar.bz2
samba-a186e598c43cb3a9a3ff7f4626407074cc938e96.zip
passdb: in get_trust_pw_clear() correctly fail if trusted domains not supported
(but trusted domain situation was found) This completes the fix for bugs #5425 and #5451 by Steven Dannemann, in that now no special cases are left uncovered. Michael (This used to be commit 0b26bcd3becb869319bca48bbf244c18b6e8e3dd)
Diffstat (limited to 'source3/passdb')
-rw-r--r--source3/passdb/passdb.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/passdb/passdb.c b/source3/passdb/passdb.c
index 2df2a9c3ce..874355da67 100644
--- a/source3/passdb/passdb.c
+++ b/source3/passdb/passdb.c
@@ -1543,7 +1543,11 @@ bool get_trust_pw_clear(const char *domain, char **ret_pwd,
/* if we are a DC and this is not our domain, then lookup an account
* for the domain trust */
- if (is_trusted_domain_situation(domain)) {
+ if (is_dc_trusted_domain_situation(domain)) {
+ if (!lp_allow_trusted_domains()) {
+ return false;
+ }
+
if (!pdb_get_trusteddom_pw(domain, ret_pwd, NULL,
&last_set_time))
{