summaryrefslogtreecommitdiff
path: root/source4/dsdb
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-02-16 17:36:58 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:48:25 -0500
commit8a9a68b707963f071480e79618d33e858154263f (patch)
treee980af839f55d4f04ce1f4ce1c2ab141840910ac /source4/dsdb
parent613acb284f1d1bbd49991607a80d5f6f4f0324a0 (diff)
downloadsamba-8a9a68b707963f071480e79618d33e858154263f.tar.gz
samba-8a9a68b707963f071480e79618d33e858154263f.tar.bz2
samba-8a9a68b707963f071480e79618d33e858154263f.zip
r21395: fix comments
metze (This used to be commit 97fc985bd062b6ad5a58dd6ce883a637043283a1)
Diffstat (limited to 'source4/dsdb')
-rw-r--r--source4/dsdb/samdb/ldb_modules/password_hash.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/password_hash.c b/source4/dsdb/samdb/ldb_modules/password_hash.c
index 58a408a3d9..a2fe2a85db 100644
--- a/source4/dsdb/samdb/ldb_modules/password_hash.c
+++ b/source4/dsdb/samdb/ldb_modules/password_hash.c
@@ -56,7 +56,7 @@
* Once this is done (which could update anything at all), we
* calculate the password hashes.
*
- * This function must not only update the ntPwdHash, lmPwdHash and
+ * This function must not only update the unicodePwd, dBCSPwd and
* krb5Key fields, it must also atomicly increment the
* msDS-KeyVersionNumber. We should be in a transaction, so all this
* should be quite safe...
@@ -625,11 +625,11 @@ static int password_hash_add(struct ldb_module *module, struct ldb_request *req)
}
if (ntAttr && (ntAttr->num_values > 1)) {
- ldb_set_errstring(module->ldb, "mupltiple values for lmPwdHash not allowed!\n");
+ ldb_set_errstring(module->ldb, "mupltiple values for unicodePwd not allowed!\n");
return LDB_ERR_CONSTRAINT_VIOLATION;
}
if (lmAttr && (lmAttr->num_values > 1)) {
- ldb_set_errstring(module->ldb, "mupltiple values for lmPwdHash not allowed!\n");
+ ldb_set_errstring(module->ldb, "mupltiple values for dBCSPwd not allowed!\n");
return LDB_ERR_CONSTRAINT_VIOLATION;
}
@@ -639,11 +639,11 @@ static int password_hash_add(struct ldb_module *module, struct ldb_request *req)
}
if (ntAttr && (ntAttr->num_values == 0)) {
- ldb_set_errstring(module->ldb, "lmPwdHash must have a value!\n");
+ ldb_set_errstring(module->ldb, "unicodePwd must have a value!\n");
return LDB_ERR_CONSTRAINT_VIOLATION;
}
if (lmAttr && (lmAttr->num_values == 0)) {
- ldb_set_errstring(module->ldb, "lmPwdHash must have a value!\n");
+ ldb_set_errstring(module->ldb, "dBCSPwd must have a value!\n");
return LDB_ERR_CONSTRAINT_VIOLATION;
}
@@ -733,7 +733,7 @@ static int password_hash_add_do_add(struct ldb_handle *h) {
}
}
- /* add also krb5 keys based on NT the hash (we might have ntPwdHash, but not the cleartext */
+ /* add also krb5 keys based on NT the hash (we might have unicodePwd, but not the cleartext */
ret = add_krb5_keys_from_NThash(ac->module, msg, smb_krb5_context);
if (ret != LDB_SUCCESS) {
return ret;
@@ -809,7 +809,7 @@ static int password_hash_modify(struct ldb_module *module, struct ldb_request *r
return LDB_ERR_CONSTRAINT_VIOLATION;
}
- /* If no part of this touches the sambaPassword OR ntPwdHash and/or lmPwdHash, then we don't
+ /* If no part of this touches the sambaPassword OR unicodePwd and/or dBCSPwd, then we don't
* need to make any changes. For password changes/set there should
* be a 'delete' or a 'modify' on this attribute. */
/* If the only operation is the deletion of the passwords then go on */