From d8d9f7723337c267a8740750fe19a6387cfbb1f6 Mon Sep 17 00:00:00 2001 From: Luke Leighton Date: Thu, 7 May 1998 18:19:05 +0000 Subject: created "passdb.c" which is an interface point to (at present) either smbpasswd or ldap passwd, at compile-time (-DUSE_LDAP). _none_ of the functions in ldap.c or smbpass.c should be called directly: only those in passdb.c should be used. -DUSE_LDAP is unlikely to compile at the moment. (This used to be commit 57b01ad4ffb14ebd600d4e66602b54ed987f6106) --- source3/include/proto.h | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'source3/include') diff --git a/source3/include/proto.h b/source3/include/proto.h index 7c09113259..c6311b3068 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -36,12 +36,12 @@ BOOL chat_with_program(char *passwordprogram,char *name,char *chatsequence, BOOL 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); + unsigned char *pass2, struct smb_passwd **psampw); +BOOL change_lanman_password(struct smb_passwd *sampw, unsigned char *pass1, unsigned char *pass2); BOOL check_oem_password(char *user, unsigned char *data, - struct smb_passwd **psmbpw, char *new_passwd, + struct smb_passwd **psampw, char *new_passwd, int new_passwd_size); -BOOL change_oem_password(struct smb_passwd *smbpw, char *new_passwd, BOOL override); +BOOL change_oem_password(struct smb_passwd *sampw, char *new_passwd, BOOL override); /*The following definitions come from client.c */ @@ -1558,6 +1558,18 @@ BOOL pm_process( char *FileName, BOOL (*sfunc)(char *), BOOL (*pfunc)(char *, char *) ); +/*The following definitions come from passdb.c */ + +struct smb_passwd *getsampwnam(char *name); +struct smb_passwd *getsampwuid(unsigned int uid); +void *startsampwent(BOOL update); +void endsampwent(void *vp); +struct smb_passwd *getsampwent(void *vp); +unsigned long getsampwpos(void *vp); +BOOL setsampwpos(void *vp, unsigned long tok); +BOOL add_sampwd_entry(struct smb_passwd *newpwd); +BOOL mod_sampwd_entry(struct smb_passwd* pwd, BOOL override); + /*The following definitions come from password.c */ void generate_next_challenge(char *challenge); -- cgit