From 8118169ba506bb9d49a1143aa3e97b1213e38db5 Mon Sep 17 00:00:00 2001 From: "Alan T. DeKok" Date: Wed, 3 Sep 2014 20:46:02 -0400 Subject: Add Calling-Station-Id to Access-Request after challenge. Closes #13 --- src/pam_radius_auth.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/pam_radius_auth.c b/src/pam_radius_auth.c index 5ee7ea9..dab127e 100644 --- a/src/pam_radius_auth.c +++ b/src/pam_radius_auth.c @@ -1223,6 +1223,11 @@ PAM_EXTERN int pam_sm_authenticate(pam_handle_t *pamh,int flags,int argc,CONST c /* request->code is already PW_AUTHENTICATION_REQUEST */ request->id++; /* one up from the request */ + if (rhost) { + add_attribute(request, PW_CALLING_STATION_ID, (unsigned char *) rhost, + strlen(rhost)); + } + /* copy the state over from the servers response */ add_attribute(request, PW_STATE, a_state->data, a_state->length - 2); -- cgit v1.2.3