diff options
author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2002-06-27 22:31:32 +0000 |
---|---|---|
committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2002-06-27 22:31:32 +0000 |
commit | 83d2307d00b1f24dddf918c6651fb440d6863bf9 (patch) | |
tree | d93e4bc5fc0a9a5e99878bd93a4d51c873c1a43e /crypto/openssh/monitor_wrap.c | |
parent | 545d5eca429a5967b3300cb527d49cae8184e79f (diff) | |
download | src-test2-83d2307d00b1f24dddf918c6651fb440d6863bf9.tar.gz src-test2-83d2307d00b1f24dddf918c6651fb440d6863bf9.zip |
Notes
Diffstat (limited to 'crypto/openssh/monitor_wrap.c')
-rw-r--r-- | crypto/openssh/monitor_wrap.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/crypto/openssh/monitor_wrap.c b/crypto/openssh/monitor_wrap.c index faad6c2a7e3f..f7e332d8ed41 100644 --- a/crypto/openssh/monitor_wrap.c +++ b/crypto/openssh/monitor_wrap.c @@ -197,7 +197,9 @@ mm_getpwnamallow(const char *login) pw->pw_name = buffer_get_string(&m, NULL); pw->pw_passwd = buffer_get_string(&m, NULL); pw->pw_gecos = buffer_get_string(&m, NULL); +#ifdef HAVE_PW_CLASS_IN_PASSWD pw->pw_class = buffer_get_string(&m, NULL); +#endif pw->pw_dir = buffer_get_string(&m, NULL); pw->pw_shell = buffer_get_string(&m, NULL); buffer_free(&m); @@ -647,6 +649,23 @@ mm_session_pty_cleanup2(void *session) s->ttyfd = -1; } +#ifdef USE_PAM +void +mm_start_pam(char *user) +{ + Buffer m; + + debug3("%s entering", __func__); + + buffer_init(&m); + buffer_put_cstring(&m, user); + + mm_request_send(pmonitor->m_recvfd, MONITOR_REQ_PAM_START, &m); + + buffer_free(&m); +} +#endif /* USE_PAM */ + /* Request process termination */ void |