1 |
slords |
1.1 |
--- ./dovecot-1.0.beta2/src/auth/passdb-pam.c.pam-tty 2006-01-30 11:02:05.000000000 +0100 |
2 |
|
|
+++ ./dovecot-1.0.beta2/src/auth/passdb-pam.c 2006-01-30 11:03:08.000000000 +0100 |
3 |
|
|
@@ -256,6 +256,10 @@ |
4 |
|
|
if (host != NULL) |
5 |
|
|
pam_set_item(pamh, PAM_RHOST, host); |
6 |
|
|
|
7 |
|
|
+ /* fix bug 149673, need dummy TTY for pam_access, |
8 |
|
|
+ FIXME: should we check and report an error for PAM_TTY? */ |
9 |
|
|
+ pam_set_item(pamh, PAM_TTY, "dovecot"); |
10 |
|
|
+ |
11 |
|
|
status = pam_auth(request, pamh, &str); |
12 |
|
|
if ((status2 = pam_end(pamh, status)) == PAM_SUCCESS) { |
13 |
|
|
/* FIXME: check for PASSDB_RESULT_UNKNOWN_USER |