[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: PAM



On Thu, Aug 05, 1999 at 11:04:35AM -0400, Alex Turner wrote:
> 
> > On Thu, Aug 05, 1999 at 10:36:16AM -0400, Alex Turner wrote:
> > > 
> > > I got the module fine.  Got some way to copmiling, but I don't have any of
> > > the SSL stuff being that I'm using the OpenLDAP libraries in RedHat 6.0
> > > Linux kernel 2.2.10.
> > > 
> > > Is there any way I can take out the SSL stuff?
> > 
> > what SSL stuff ?  You must be talking about an older version ; I
> > removed the SSL stuff long time ago when I stopped using the Netscape
> > SDK.
> 
> DOH!  It was in /usr/lib/ldap.a - old libs hanging around *sigh*
> 
> it compiled, but I get the following error in /var/log/messages:
> 
> Aug 5 11:01:43 localhost httpd: PAM unable to
> dlopen(/lib/security/pam_LDAP.so)
> Aug  5 11:01:43 localhost httpd: PAM [dlerror: /lib/security/pam_LDAP.so:
> ELF file's phentsize not the expected size]
> Aug  5 11:01:43 localhost httpd: PAM adding faulty module:
> /lib/security/pam_LDAP.so
> 
> I'm compiling with gcc -fPIC -o pam_LDAP.so pam_LDAP.c -lldap -lpam
> -rdynamic -llber -ldl -lcrypt -L/usr/local/lib -c
> 
> TIA
> 
> Alex Turner
> 

I haven't had the chance to try it on a linux machine yet.
On Solaris 7, I compile a perfectly working module with
cc -dy -G -KPIC -o pam_LDAP.so pam_LDAP.c -lsocket -lnsl -lthread -lldap -Bdynamic -lpam
using the Sun WorkShop Compiler C Compiler 4.2

-- 
--------------------------------------------------------
Piet RUYSSINCK                  Piet.Ruyssinck@rug.ac.be
Unix Systeem Administratie                +32 9 264 4733
ACADEMISCH REKENCENTRUM (ARC)     Universiteit Gent (RUG)
Krijgslaan 281, gebouw S9, bureel 4     9000 Gent, Belgie