From a4156f9b50c81fe40823cd8e32ec990690d3884c Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 27 Mar 1998 19:59:14 +0000 Subject: chgpasswd.c, ipc.c, loadparm.c: Added boolean "unix password sync" parameter which allows the new change password code to change the unix password also. Defaults to OFF. includes.h: Added termios.h to FreeBSD to allow password changing. namequery.c: Fixed missing name parameters to debug statements. Jeremy. (This used to be commit 4ac50c0f0aa5af084ddad89b1f9baf6c2c1ddcb8) --- source3/include/includes.h | 1 + source3/include/proto.h | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'source3/include') diff --git a/source3/include/includes.h b/source3/include/includes.h index c9a515af9a..e6dee108a5 100644 --- a/source3/include/includes.h +++ b/source3/include/includes.h @@ -516,6 +516,7 @@ char *mktemp(char *); /* No standard include */ #include #include #include +#include #if __FreeBSD__ >= 3 #include #else diff --git a/source3/include/proto.h b/source3/include/proto.h index a643996d3c..993cf46486 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -32,9 +32,9 @@ void add_char_string(char *s); /*The following definitions come from chgpasswd.c */ -BOOL chat_with_program(char *passwordprogram,char *name,char *chatsequence); -BOOL chgpasswd(char *name,char *oldpass,char *newpass); -BOOL chgpasswd(char *name,char *oldpass,char *newpass); +BOOL chat_with_program(char *passwordprogram,char *name,char *chatsequence, BOOL as_root); +BOOL chgpasswd(char *name,char *oldpass,char *newpass, BOOL as_root); +BOOL chgpasswd(char *name,char *oldpass,char *newpass, BOOL as_root); BOOL check_lanman_password(char *user, unsigned char *pass1, unsigned char *pass2, struct smb_passwd **psmbpw); BOOL change_lanman_password(struct smb_passwd *smbpw, unsigned char *pass1, unsigned char *pass2); @@ -924,6 +924,7 @@ BOOL lp_nis_home_map(void); BOOL lp_time_server(void); BOOL lp_bind_interfaces_only(void); BOOL lp_net_wksta_user_logon(void); +BOOL lp_unix_password_sync(void); int lp_os_level(void); int lp_max_ttl(void); int lp_max_wins_ttl(void); -- cgit