summaryrefslogtreecommitdiff
path: root/pam/pam.c
diff options
context:
space:
mode:
Diffstat (limited to 'pam/pam.c')
-rw-r--r--pam/pam.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pam/pam.c b/pam/pam.c
index 2b67c73..36caf11 100644
--- a/pam/pam.c
+++ b/pam/pam.c
@@ -270,8 +270,8 @@ static int nslcd2pam_rc(pam_handle_t *pamh, int rc)
}
/* check whether the specified user is handled by nslcd */
-static int nslcd_request_exists(pam_handle_t *pamh, struct pld_ctx *ctx,
- struct pld_cfg *cfg, const char *username)
+static int nslcd_request_exists(pam_handle_t *pamh, struct pld_cfg *cfg,
+ const char *username)
{
PAM_REQUEST(
NSLCD_ACTION_PASSWD_BYNAME,
@@ -675,7 +675,7 @@ int pam_sm_chauthtok(pam_handle_t *pamh, int flags,
return remap_pam_rc(PAM_PERM_DENIED, &cfg);
}
/* see if we are dealing with an LDAP user first */
- rc = nslcd_request_exists(pamh, ctx, &cfg, username);
+ rc = nslcd_request_exists(pamh, &cfg, username);
if (rc != PAM_SUCCESS)
return remap_pam_rc(rc, &cfg);
/* preliminary check, just see if we can authenticate with the current password */