diff options
Diffstat (limited to 'source3/rpc_server/srv_samr_util.h')
-rw-r--r-- | source3/rpc_server/srv_samr_util.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/source3/rpc_server/srv_samr_util.h b/source3/rpc_server/srv_samr_util.h index 9dbc8b5ad6..fb6d02620d 100644 --- a/source3/rpc_server/srv_samr_util.h +++ b/source3/rpc_server/srv_samr_util.h @@ -61,3 +61,17 @@ void copy_id25_to_sam_passwd(struct samu *to, struct samr_UserInfo25 *from); void copy_id26_to_sam_passwd(struct samu *to, struct samr_UserInfo26 *from); + +/* The following definitions come from rpc_server/srv_samr_chgpasswd.c */ + +bool chgpasswd(const char *name, const struct passwd *pass, + const char *oldpass, const char *newpass, bool as_root); +NTSTATUS pass_oem_change(char *user, + uchar password_encrypted_with_lm_hash[516], + const uchar old_lm_hash_encrypted[16], + uchar password_encrypted_with_nt_hash[516], + const uchar old_nt_hash_encrypted[16], + enum samPwdChangeReason *reject_reason); +NTSTATUS check_password_complexity(const char *username, + const char *password, + enum samPwdChangeReason *samr_reject_reason); |