Displaying 2 results from an estimated 2 matches for "pam_verify_plain_child".
2004 Jun 14
1
PAM_RHOST item
A little problem, which is bugging me:  when using PAM authentication,
Dovecot (0.99.5) does not set the PAM_RHOST item, so the PAM modules
cannot know who the client is.  We need this for some PAM module doing
access control.
Changing passdb-pam.c to pam_set_item it seems trivial, but I'm bugged
as to how to get the client name from there.  It seems not to be
available in the auth_request
2004 Jul 09
1
passing remote ip to pam
...strerror(pamh, status));
+		return status;
+	}
+
 	if ((status = pam_authenticate(pamh, 0)) != PAM_SUCCESS) {
 		*error = t_strdup_printf("pam_authenticate(%s) failed: %s",
 					 user, pam_strerror(pamh, status));
@@ -205,7 +215,8 @@ static int pam_auth(pam_handle_t *pamh,
 static void
 pam_verify_plain_child(const char *service, const char *user,
-		       const char *password, int fd)
+		       const char *password, const struct ip_addr *remote_ip,
+		       int fd)
 {
 	pam_handle_t *pamh;
 	struct pam_userpass userpass;
@@ -228,7 +239,7 @@ pam_verify_plain_child(const char *servi
 		str = t_strdup_p...