Solaris/PAM/AFS: can't make it work

Darren Tucker
Fri, 28 May 2004 02:15:55 -0000

David R. Steiner wrote:
> I know this has been discussed (pretty much since 3.7.1) and I have been
> going through the archives trying to  make sense of it but I am still
> having problems getting 3.8.1p1 to work with PAM and AFS on Solaris 8.
[...]
> - I tried forcing USE_POSIX_THREADS when building as described in
> http://bugzilla.mindrot.org/show_bug.cgi?id=688 . My understanding of
> how to do this was to set CFLAGS=-DUSE_POSIX_THREADS when configuring
> and I added -lpthreads to the LIBS in the Makefile. (Correct?)

Right, more or less (it's -lpthread not -lpthreads).  The easiest way is:
./configure --with-cflags=-DUSE_POSIX_THREADS --with-libs=-lpthread

> debug3: PAM: import_environments entering
> buffer_get: trying to get more bytes 4 than in buffer 0

Are you sure this isn't 3.8p1?  There was a bug in the use-threads
configuration in 3.8p1 that caused that problem, but it was fixed in
3.8.1p1.

If that's not it you could also try these patches by Christian Pfaffel,
(I don't know enough about how pam_dhkeys works to know if this will
help in your case or not):
http://marc.theaimsgroup.com/?l=openssh-unix-dev&m=108566628206690

--
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
     Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.