diff options
author | Luke Leighton <lkcl@samba.org> | 1998-05-07 18:19:05 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1998-05-07 18:19:05 +0000 |
commit | 57b01ad4ffb14ebd600d4e66602b54ed987f6106 (patch) | |
tree | b949aca841cd3b4440c2c85973f9d68ef88161d2 /source/include | |
parent | dfdc9b0b1e47717b83e54f1cf726e40122cf9baf (diff) | |
download | samba-57b01ad4ffb14ebd600d4e66602b54ed987f6106.tar.gz samba-57b01ad4ffb14ebd600d4e66602b54ed987f6106.tar.xz samba-57b01ad4ffb14ebd600d4e66602b54ed987f6106.zip |
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.
Diffstat (limited to 'source/include')
-rw-r--r-- | source/include/proto.h | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/source/include/proto.h b/source/include/proto.h index 7c09113259b..c6311b3068d 100644 --- a/source/include/proto.h +++ b/source/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); |