FreeBSD 5.0-current OpenPAM

Dag-Erling Smorgrav des at
Mon Mar 25 09:09:02 GMT 2002

"David W. Chapman Jr." <dwcjr at> writes:
> I'm running FreeBSD 5.0-current which I belive is using OpenPAM, 
> which has a few slight differences that are apparent in the build log 
> below.  I've cc'd FreeBSD's pam maintainer, as he thinks it should be 
> PAM_AUTHTOK_RECOVERY_ERR.  Any help would be appreciated.

Linux-PAM incorrectly spells it PAM_AUTHTOK_RECOVER_ERR, while XSSO,
Solaris and OpenPAM spell it PAM_AUTHTOK_RECOVERY_ERR.  I haven't
looked at the code, so it's possible that Samba actually has an #ifdef
for this, but it probably tests for the common case instead of testing
for the exception.  Testing for the common case fails on OpenPAM
because it uses enums instead of preprocessor macros.  Instead of

        /* correct code */
        /* Linux bug compatibility */

you should use

        /* Linux bug compatibility */
        /* correct code */

Dag-Erling Smorgrav - des at

More information about the samba-technical mailing list