summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-12-05 13:29:58 +0100
committerStefan Metzmacher <metze@samba.org>2008-12-05 14:16:47 +0100
commit0f74de3d37cdb03f622d9cdc1cdcc4aa6ede5ce3 (patch)
tree31b7c7a4597acc414cb123701910f32b6d64e1fb /source4
parent39e468f55859c01f7bdaab4086df371d3375099f (diff)
downloadsamba-0f74de3d37cdb03f622d9cdc1cdcc4aa6ede5ce3.tar.gz
samba-0f74de3d37cdb03f622d9cdc1cdcc4aa6ede5ce3.tar.bz2
samba-0f74de3d37cdb03f622d9cdc1cdcc4aa6ede5ce3.zip
s4:password_hash: really catch the clearTextPasswordAttr case...
This fixes the creation of the user object for incoming trusts in dcesrv_lsa_CreateTrustedDomain_base(). And now w2k3 trust samba4 just fine:-) metze
Diffstat (limited to 'source4')
-rw-r--r--source4/dsdb/samdb/ldb_modules/password_hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/password_hash.c b/source4/dsdb/samdb/ldb_modules/password_hash.c
index cef1bf79f7..1707baba58 100644
--- a/source4/dsdb/samdb/ldb_modules/password_hash.c
+++ b/source4/dsdb/samdb/ldb_modules/password_hash.c
@@ -1641,7 +1641,7 @@ static int password_hash_add(struct ldb_module *module, struct ldb_request *req)
ntAttr = ldb_msg_find_element(req->op.mod.message, "unicodePwd");
lmAttr = ldb_msg_find_element(req->op.mod.message, "dBCSPwd");
- if ((!sambaAttr) && (!ntAttr) && (!lmAttr)) {
+ if ((!sambaAttr) && (!clearTextPasswordAttr) && (!ntAttr) && (!lmAttr)) {
return ldb_next_request(module, req);
}