summaryrefslogtreecommitdiff
path: root/source3/auth/pass_check.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2001-07-08 14:10:30 +0000
committerAndrew Bartlett <abartlet@samba.org>2001-07-08 14:10:30 +0000
commit5b8d230e39cedda6117cf8528065cbab45bdd835 (patch)
tree1e9be7f0d7c7a092d2675bf41402e074f1d3e0f3 /source3/auth/pass_check.c
parent04932c05bf9b876aa059195100633e7c56dbce71 (diff)
downloadsamba-5b8d230e39cedda6117cf8528065cbab45bdd835.tar.gz
samba-5b8d230e39cedda6117cf8528065cbab45bdd835.tar.bz2
samba-5b8d230e39cedda6117cf8528065cbab45bdd835.zip
This removes unused paramaters from various authtication functions, and should
not change behaviour. This should make my later diffs smaller, where I actualy start cleaning up this mess... Andrew Bartlett (This used to be commit 04f090c224bb7ac3b53c430a591fce1fc939a81c)
Diffstat (limited to 'source3/auth/pass_check.c')
-rw-r--r--source3/auth/pass_check.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/source3/auth/pass_check.c b/source3/auth/pass_check.c
index 9424189b23..677d298449 100644
--- a/source3/auth/pass_check.c
+++ b/source3/auth/pass_check.c
@@ -682,7 +682,7 @@ match is found and is used to update the encrypted password file
return True on correct match, False otherwise
****************************************************************************/
-BOOL pass_check(char *user, char *password, int pwlen, struct passwd *pwd,
+BOOL pass_check(char *user, char *password, int pwlen,
BOOL (*fn) (char *, char *))
{
pstring pass2;
@@ -702,12 +702,7 @@ BOOL pass_check(char *user, char *password, int pwlen, struct passwd *pwd,
if (((!*password) || (!pwlen)) && !lp_null_passwords())
return (False);
- if (pwd && !user) {
- pass = (struct passwd *)pwd;
- user = pass->pw_name;
- } else {
- pass = Get_Pwnam(user, True);
- }
+ pass = Get_Pwnam(user, True);
#ifdef WITH_PAM