Bug 371391

Summary: Including <security/pam_appl.h> should define PAM_AUTHTOK_RECOVERY_ERR
Product: Red Hat Enterprise Linux 4 Reporter: Eduard Benes <ebenes>
Component: pamAssignee: Tomas Mraz <tmraz>
Status: CLOSED ERRATA QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: 4.5   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: RHBA-2008-0707 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-07-24 19:53:30 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Eduard Benes 2007-11-08 16:10:54 UTC
Description of problem:
Including <security/pam_appl.h> does not define PAM_AUTHTOK_RECOVERY_ERR.

How reproducible:
always

Steps to Reproduce:
1. cat > xyz.c << EOF
#include <security/pam_appl.h>
int main(int argc, char **argv) {
#ifdef PAM_AUTHTOK_RECOVERY_ERR
  return 0;
#endif
  return 1;
}
EOF
2. gcc xyz.c ; chmod +x a.out ; ./a.out ; echo $?

Actual results:
The above returns 1 => PAM_AUTHTOK_RECOVERY_ERR is not defined

Expected results:
Should return 0 => PAM_AUTHTOK_RECOVERY_ERR is defined 

Additional info:
There is a typo in /usr/include/security/_pam_types.h:74
#define PAM_AUTHTOK_RECOVER_ERR 21 /* Authentication information */

Comment 1 RHEL Program Management 2007-11-29 03:55:34 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.

Comment 6 errata-xmlrpc 2008-07-24 19:53:30 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2008-0707.html