diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-08-15 21:26:07 +0200 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-08-17 18:45:33 +0200 |
commit | eb345ebedf06ccef420f4352d145c54c1d39efe3 (patch) | |
tree | 2801a34d59da066c4f1155a69b9f792e185e35eb /source4/dsdb | |
parent | d72d7f9c5f318b58e38a47d38debe72bb6f53891 (diff) | |
download | samba-eb345ebedf06ccef420f4352d145c54c1d39efe3.tar.gz samba-eb345ebedf06ccef420f4352d145c54c1d39efe3.tar.bz2 samba-eb345ebedf06ccef420f4352d145c54c1d39efe3.zip |
s4:samdb_set_password/samdb_set_password_sid - make more arguments "const"
Diffstat (limited to 'source4/dsdb')
-rw-r--r-- | source4/dsdb/common/util.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source4/dsdb/common/util.c b/source4/dsdb/common/util.c index 25d6a407c5..cf13b64e07 100644 --- a/source4/dsdb/common/util.c +++ b/source4/dsdb/common/util.c @@ -997,7 +997,7 @@ int samdb_msg_add_uint64(struct ldb_context *sam_ldb, TALLOC_CTX *mem_ctx, struc add a samr_Password element to a message */ int samdb_msg_add_hash(struct ldb_context *sam_ldb, TALLOC_CTX *mem_ctx, struct ldb_message *msg, - const char *attr_name, struct samr_Password *hash) + const char *attr_name, const struct samr_Password *hash) { struct ldb_val val; val.data = talloc_memdup(mem_ctx, hash->hash, 16); @@ -2010,8 +2010,8 @@ int samdb_set_password_callback(struct ldb_request *req, struct ldb_reply *ares) NTSTATUS samdb_set_password(struct ldb_context *ldb, TALLOC_CTX *mem_ctx, struct ldb_dn *user_dn, struct ldb_dn *domain_dn, const DATA_BLOB *new_password, - struct samr_Password *lmNewHash, - struct samr_Password *ntNewHash, + const struct samr_Password *lmNewHash, + const struct samr_Password *ntNewHash, const struct samr_Password *lmOldHash, const struct samr_Password *ntOldHash, enum samPwdChangeReason *reject_reason, @@ -2200,8 +2200,8 @@ NTSTATUS samdb_set_password(struct ldb_context *ldb, TALLOC_CTX *mem_ctx, NTSTATUS samdb_set_password_sid(struct ldb_context *ldb, TALLOC_CTX *mem_ctx, const struct dom_sid *user_sid, const DATA_BLOB *new_password, - struct samr_Password *lmNewHash, - struct samr_Password *ntNewHash, + const struct samr_Password *lmNewHash, + const struct samr_Password *ntNewHash, const struct samr_Password *lmOldHash, const struct samr_Password *ntOldHash, enum samPwdChangeReason *reject_reason, |