On Sa, 2002-10-19 at 22:36, David W. Chapman Jr. wrote: > > Hmm, I've more broken ports on my system.. Like a trouble with net/samba-devel > > (because of PAM headers) and I can't compile lang/librep since KSE III. > > Are you still having problems with this. If you could show me some > errors I may be able to relay them to the samba developers for you > unless this is something wrong with freebsd. Yes, I need the attached patch to compile nsswitch/pam_winbind.c. I'm compiling net/samba-devel with following parameters:
WITH_CUPS=yes WITH_QUOTAS=yes WITH_UTMP=yes WITH_MSDFS=yes WITH_WINBIND=yes WITH_ACL_SUPPORT=yes WITH_WINBIND_AUTH_CHALLENGE=yes Marc -- "Premature optimization is the root of all evil." -- Donald E. Knuth
--- nsswitch/pam_winbind.c.orig Thu Sep 26 23:17:53 2002
+++ nsswitch/pam_winbind.c Thu Sep 26 23:19:30 2002
@@ -286,10 +286,10 @@
item = NULL;
return PAM_SUCCESS;
} else if (on(WINBIND_USE_FIRST_PASS_ARG, ctrl)) {
- return PAM_AUTHTOK_RECOVER_ERR; /* didn't work */
+ return PAM_AUTHTOK_RECOVERY_ERR; /* didn't work
+*/
} else if (on(WINBIND_USE_AUTHTOK_ARG, ctrl)
&& off(WINBIND__OLD_PASSWORD, ctrl)) {
- return PAM_AUTHTOK_RECOVER_ERR;
+ return PAM_AUTHTOK_RECOVERY_ERR;
}
}
/*
@@ -342,7 +342,7 @@
if (!resp[i - 1].resp
|| strcmp(token, resp[i -
1].resp)) {
_pam_delete(token); /*
mistyped */
- retval =
PAM_AUTHTOK_RECOVER_ERR;
+ retval =
+PAM_AUTHTOK_RECOVERY_ERR;
_make_remark(pamh
,PAM_ERROR_MSG, MISTYPED_PASS);
}
}
@@ -361,7 +361,7 @@
} else {
retval = (retval == PAM_SUCCESS)
- ? PAM_AUTHTOK_RECOVER_ERR : retval;
+ ? PAM_AUTHTOK_RECOVERY_ERR : retval;
}
}
signature.asc
Description: This is a digitally signed message part
