Displaying 4 results from an estimated 4 matches for "pam_silent".
2003 Sep 26
1
openssh-3.7.1p2: no pam_close_session() invocation
...with openssh-3.5
Now that I have tried to upgrade to 3.7.1p1/p2 the pam_close_session()
function won't get invoked. Some debugging shows, that the call is
protected by an if-statement (module auth-pam.c, function sshpam_cleanup):
if (sshpam_session_open) {
pam_close_session(sshpam_handle, PAM_SILENT);
/* cb, 26.09.03 */
debug2("\n\nin sshpam_cleanup: mypid = %d\n\n", getpid());
sshpam_session_open = 0;
}
I guess that the forked child process that calls the sshpam_cleanup()
function is forked before the parent calls do_pam_session() (which sets
sshpam_session_open to true)...
2003 Oct 29
4
Fix for USE_POSIX_THREADS in auth-pam.c
...uot;);
- if (sshpam_handle == NULL)
- return;
- pam_set_item(sshpam_handle, PAM_CONV, (const void *)&null_conv);
- if (sshpam_cred_established) {
- pam_setcred(sshpam_handle, PAM_DELETE_CRED);
- sshpam_cred_established = 0;
- }
- if (sshpam_session_open) {
- pam_close_session(sshpam_handle, PAM_SILENT);
- sshpam_session_open = 0;
- }
- sshpam_authenticated = sshpam_new_authtok_reqd = 0;
- pam_end(sshpam_handle, sshpam_err);
- sshpam_handle = NULL;
+ if (grab_pamh(0, NULL) != NULL) {
+ pam_set_item(grab_pamh(0, NULL), PAM_CONV, (const void *)&null_conv);
+ if (sshpam_cred_established) {
+...
2001 Sep 06
1
lastlog on Solaris with PAM (patch included)
On Solaris, the pam_unix module includes a pam_session which updates the
lastlog file. Since OpenSSH calls pam_session before reading the lastlog
file, SSH logins to systems with this configuration (as well as similar
ones, I'd imagine) report the last login time and remote host as the values
from the current session.
My solution to this problem is to call pam_open_session in the child,
2007 Jun 05
2
pam_ldap-184 compile error
...r: storage size of 'msg' isn't known
pam_ldap.c:3419: error: `argc' undeclared (first use in this function)
pam_ldap.c:3421: error: `argv' undeclared (first use in this function)
pam_ldap.c:3441: error: `flags' undeclared (first use in this function)
pam_ldap.c:3441: error: `PAM_SILENT' undeclared (first use in this function)
pam_ldap.c:3444: error: `pamh' undeclared (first use in this function)
pam_ldap.c:3444: error: `PAM_CONV' undeclared (first use in this function)
pam_ldap.c:3444: warning: dereferencing type-punned pointer will break
strict-aliasing rules
pam_lda...