FreeBSD 5.0-current OpenPAM

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


"David W. Chapman Jr." <dwcjr at inethouston.net> 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

#ifdef PAM_AUTHTOK_RECOVERY_ERR
        /* correct code */
#else
        /* Linux bug compatibility */
#endif

you should use

#ifdef PAM_AUTHTOK_RECOVER_ERR
        /* Linux bug compatibility */
#else
        /* correct code */
#endif

DES
-- 
Dag-Erling Smorgrav - des at ofug.org




More information about the samba-technical mailing list