nss-pam-ldapd commit: r1103 - nss-pam-ldapd/pam
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
nss-pam-ldapd commit: r1103 - nss-pam-ldapd/pam
- From: "Commits of the nss-pam-ldapd project." <nss-pam-ldapd-commits [at] lists.arthurdejong.org>
- To: nss-pam-ldapd-commits [at] lists.arthurdejong.org
- Reply-to: nss-pam-ldapd-users [at] lists.arthurdejong.org
- Subject: nss-pam-ldapd commit: r1103 - nss-pam-ldapd/pam
- Date: Thu, 13 May 2010 18:31:53 +0200 (CEST)
Author: arthur
Date: Thu May 13 18:31:52 2010
New Revision: 1103
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?view=rev&revision=1103
Log:
also use PAM username instead of one from context for session open and close
Modified:
nss-pam-ldapd/pam/pam.c
Modified: nss-pam-ldapd/pam/pam.c
==============================================================================
--- nss-pam-ldapd/pam/pam.c Thu May 13 18:30:19 2010 (r1102)
+++ nss-pam-ldapd/pam/pam.c Thu May 13 18:31:52 2010 (r1103)
@@ -249,13 +249,14 @@
}
/* do a session nslcd request (open or close) */
-static int nslcd_request_sess(struct pld_ctx *ctx,int action,const char
*service,
+static int nslcd_request_sess(struct pld_ctx *ctx,int action,
+ const char *username,const char *service,
const char *tty, const char *rhost,
const char *ruser)
{
PAM_REQUEST(action,
/* write the request parameters */
- WRITE_STRING(fp,ctx->user);
+ WRITE_STRING(fp,username);
WRITE_STRING(fp,ctx->dn);
WRITE_STRING(fp,service);
WRITE_STRING(fp,tty);
@@ -483,7 +484,7 @@
pam_get_item(pamh,PAM_RHOST,(const void **)&rhost);
pam_get_item(pamh,PAM_RUSER,(const void **)&ruser);
/* do the nslcd request */
- rc=nslcd_request_sess(ctx,action,service,tty,rhost,ruser);
+ rc=nslcd_request_sess(ctx,action,username,service,tty,rhost,ruser);
if ((rc==PAM_AUTHINFO_UNAVAIL)&&cfg.ignore_authinfo_unavail)
rc=PAM_IGNORE;
else if ((rc==PAM_USER_UNKNOWN)&&cfg.ignore_unknown_user)
--
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits
- nss-pam-ldapd commit: r1103 - nss-pam-ldapd/pam,
Commits of the nss-pam-ldapd project.