summaryrefslogtreecommitdiff
path: root/source3/rpc_server/srv_samr_util.h
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-05-18 12:06:23 +0200
committerGünther Deschner <gd@samba.org>2010-05-26 22:17:02 +0200
commit2807ab358ec346a1da15522adce7f182d3ffefe5 (patch)
treeeafd88c92b500c74495c2005932a8078ffe68ea7 /source3/rpc_server/srv_samr_util.h
parent14b03d132bba45b368a07de4c4ed3ce73a8e1bde (diff)
downloadsamba-2807ab358ec346a1da15522adce7f182d3ffefe5.tar.gz
samba-2807ab358ec346a1da15522adce7f182d3ffefe5.tar.bz2
samba-2807ab358ec346a1da15522adce7f182d3ffefe5.zip
s3-samr: move chgpasswd.c out of smbd and into the samr server.
Guenther
Diffstat (limited to 'source3/rpc_server/srv_samr_util.h')
-rw-r--r--source3/rpc_server/srv_samr_util.h14
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);