Subject: Re: 3.0.1 and PAM problem
To: None <netbsd-help@netbsd.org>
From: Christos Zoulas <christos@astron.com>
List: netbsd-help
Date: 08/16/2006 15:21:16
In article <loom.20060816T140836-642@post.gmane.org>,
Derkjan  <benedictus21@hotmail.com> wrote:
>Dieter <netbsd <at> sopwith.solgatos.com> writes:
>
>> 
>> Continuing with the upgrade to 3.0.1:
>> 
>> I'm getting a *bunch* of error messages logged that seem to be PAM related,
>> for example:
>> 
>> in openpam_dynamic(): pam_ksu.so: pam_sm_acct_mgmt(): Undefined 
>symbol "pam_sm_acct_mgmt"
>> in openpam_dynamic(): pam_ksu.so: pam_sm_open_session(): Undefined 
>symbol "pam_sm_open_session"
>> in openpam_dynamic(): pam_ksu.so: pam_sm_close_session(): Undefined 
>symbol "pam_sm_close_session"
>> in openpam_dynamic(): pam_ksu.so: pam_sm_chauthtok(): Undefined 
>symbol "pam_sm_chauthtok"
>> 
>> Somehow this doesn't give me a warm, cozy feeling.
>> 
>> I can't search the archives until I get this machine running properly.
>> Please cc me on any response.  Thanks.
>
>We are seeing the same problem here, mostly when doing a 'su'; this is a box 
>that has been upgraded from NetBSD 2.0.1. Did you find a solution yet?

This is a not problem. Please apply this patch to /usr/src/usr.bin/su/Makefile
and rebuild su:

Index: Makefile
===================================================================
RCS file: /cvsroot/src/usr.bin/su/Makefile,v
retrieving revision 1.42.2.1
retrieving revision 1.45
diff -u -u -r1.42.2.1 -r1.45
--- Makefile	16 Dec 2005 12:00:05 -0000	1.42.2.1
+++ Makefile	13 Jul 2006 18:18:09 -0000	1.45
@@ -11,7 +11,7 @@
 
 .if ${USE_PAM} != "no"
 
-CPPFLAGS+=-DUSE_PAM -DPAM_DEBUG
+CPPFLAGS+=-DUSE_PAM
 # XXX: Need libcrypt here, because libcrypto defines it too.
 DPADD+=	${LIBPAM} ${LIBCRYPT} ${LIBUTIL} ${PAM_STATIC_DPADD}
 LDADD+= -lpam -lcrypt -lutil ${PAM_STATIC_LDADD}