Re: PAM problem with netatalk package

On May 3, 3:52pm, mark%ecs.vuw.ac.nz@localhost (Mark Davies) wrote:
-- Subject: Re: PAM problem with netatalk package
| On Mon, 03 May 2010, Christos Zoulas wrote:
| > The only difference between mine (which is older) and yours is that
| > yours has the following symbols. I would suggest to turn on debug
| > logging on pam to see what the following prints from
| > openpam_dynamic.c
| >
| > openpam_log(PAM_LOG_DEBUG, "%s: %s", vpath, dlerror());
|
| 16603 1 afpd GIO fd 3 wrote 182 bytes
| "<31>May 3 15:35:32 afpd[16603]: in
| openpam_dynamic(): /usr/lib/securi\
| ty/pam_nologin.so.1: /usr/lib/security/pam_nologin.so.1:
| Undefined PLT\
| symbol \"_pam_verbose_error\" (symnum = 12)"
|
| Which _is_ in libpam.so.1.0
|
| % nm /usr/lib/libpam.so.1.0 | grep verbose_err
| 00001a70 T _pam_verbose_error
|
| So is this happening because pam_nologin.so.1 is being dynamically
| loaded in libpam which (in afpd's case) is itself in a module that is
| dynamically loaded into the afpd process
| (/usr/pkg/libexec/netatalk/uams/uams_pam.so)?
|
| If so how do you get that to work?
Add -lpam as a dependency in all the rest of the pam modules? Don't do
RTLD_NOW, but RTLD_LAZY? The first one should definitely work I think.
christos