diff options
author | Jeremy Allison <jra@samba.org> | 1998-04-14 00:41:59 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1998-04-14 00:41:59 +0000 |
commit | 2a53d6f7077de596265a3e73e79827392054142c (patch) | |
tree | 9e3553f5c3210b814b14501fb2f6e6cd4a2c129b /source3/smbd/password.c | |
parent | 49ce0cab3c3ec31e08be9afb7872b8bb03371810 (diff) | |
download | samba-2a53d6f7077de596265a3e73e79827392054142c.tar.gz samba-2a53d6f7077de596265a3e73e79827392054142c.tar.bz2 samba-2a53d6f7077de596265a3e73e79827392054142c.zip |
Modified interfaces to getting smb password entries from
get_smbpwd_entry (now an internal function to smbpass.c)
to a more UNIX-like :
getsmbpwnam() - get entry by name.
getsmbpwuid() - get entry by uid.
Changed the type returned by the smbpasswd enumeration
functions to be a void * so that people don't come to
depend on it being a FILE *.
These abstractions should make it much easier to
replace the smbpasswd file with a better backend
in future.
Other files changed are to match the above changes.
Jeremy.
(This used to be commit 1161cfb7f2b0d5a6d3e2b524a14a6f325ce70efb)
Diffstat (limited to 'source3/smbd/password.c')
-rw-r--r-- | source3/smbd/password.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/password.c b/source3/smbd/password.c index 74ebeb1617..bbd9f8b849 100644 --- a/source3/smbd/password.c +++ b/source3/smbd/password.c @@ -1084,8 +1084,8 @@ BOOL password_ok(char *user,char *password, int pwlen, struct passwd *pwd) return(False); } - /* non-null username indicates search by username not smb userid */ - smb_pass = get_smbpwd_entry(user, 0); + smb_pass = getsmbpwnam(user); + if (!smb_pass) { DEBUG(3,("Couldn't find user %s in smb_passwd file.\n", user)); |