[dovecot-cvs] dovecot/src/auth passdb-pam.c,1.38,1.39
cras at dovecot.org
cras at dovecot.org
Fri Jun 16 12:49:54 EEST 2006
- Previous message: [dovecot-cvs]
dovecot/src/lib-index mail-index-view-private.h, 1.22,
1.23 mail-index-view-sync.c, 1.52, 1.53 mail-index-view.c,
1.44, 1.45 mail-transaction-log-append.c, 1.17, 1.18
- Next message: [dovecot-cvs] dovecot/src/lib-dict dict-client.c,1.8,1.9
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /var/lib/cvs/dovecot/src/auth
In directory talvi:/tmp/cvs-serv31011
Modified Files:
passdb-pam.c
Log Message:
Set PAM_TTY.
Index: passdb-pam.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/passdb-pam.c,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -d -r1.38 -r1.39
--- passdb-pam.c 16 Jun 2006 09:45:16 -0000 1.38
+++ passdb-pam.c 16 Jun 2006 09:49:51 -0000 1.39
@@ -256,8 +256,13 @@
pam_strerror(pamh, status));
} else {
const char *host = net_ip2addr(&request->remote_ip);
+
+ /* Set some PAM items. They shouldn't fail, and we don't really
+ care if they do. */
if (host != NULL)
- pam_set_item(pamh, PAM_RHOST, host);
+ (void)pam_set_item(pamh, PAM_RHOST, host);
+ /* TTY is needed by eg. pam_access module */
+ (void)pam_set_item(pamh, PAM_TTY, "dovecot");
status = pam_auth(request, pamh, &str);
if ((status2 = pam_end(pamh, status)) == PAM_SUCCESS) {
- Previous message: [dovecot-cvs]
dovecot/src/lib-index mail-index-view-private.h, 1.22,
1.23 mail-index-view-sync.c, 1.52, 1.53 mail-index-view.c,
1.44, 1.45 mail-transaction-log-append.c, 1.17, 1.18
- Next message: [dovecot-cvs] dovecot/src/lib-dict dict-client.c,1.8,1.9
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the dovecot-cvs
mailing list