[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: How comile pam modules



no luck, still getting same errors....

Dec 8 14:14:06 linuxlab2 su: PAM unable to dlopen(/lib/security/$ISA/pam_permit.so) Dec 8 14:14:06 linuxlab2 su: PAM [dlerror: /lib/security/../../lib/security/pam_permit.so: undefined symbol: _Z12pam_get_userP10pam_handlePPKcS2_] Dec 8 14:14:06 linuxlab2 su: PAM adding faulty module: /lib/security/$ISA/pam_permit.so Dec 8 14:14:06 linuxlab2 su: PAM unable to dlopen(/lib/security/$ISA/pam_permit.so) Dec 8 14:14:06 linuxlab2 su: PAM [dlerror: /lib/security/../../lib/security/pam_permit.so: undefined symbol: _Z12pam_get_userP10pam_handlePPKcS2_] Dec 8 14:14:06 linuxlab2 su: PAM adding faulty module: /lib/security/$ISA/pam_permit.so Dec 8 14:14:06 linuxlab2 su(pam_unix)[1507]: session opened for user root by root(uid=0)


What did I do....

1. extracted latest pam source
2. edited pam_permit.c to removed UNUSED declerations in function definitions. 3. ran ./configure and copied config.h to /modules/pam_permit/ so g++ could include it.
4. g++ -shared -lpam pam_permit.c -o pam_permit.so (no compile errors....)
5. copied to /lib/security/pam_permit.so 6. tested with su (/etc/pam.d/su is configured properly)
still any ideas?????
thanks again,
-matt




Jason Gerfen wrote:
thanks, not familiar with g++ tools.

Guilherme Mazzela wrote:

try

g++ -shared -lpam pam_permit.c -o pam_permit.so

Guilherme Mazzela

-----Original Message-----
From:   Matt Sellers [mailto:matt indigo nu]
Sent:   Thu 12/8/2005 5:37 PM
To:     pam-list redhat com
Cc:    Subject:        How comile pam modules
Im trying to compile a single pam module via this.



The problem i keep seing in syslog everytime I run the module.

syslog:

Dec 5 16:32:53 linuxlab2 su: PAM unable to
dlopen(/lib/security/$ISA/pam_permit.so)
Dec 5 16:32:53 linuxlab2 su: PAM [dlerror:
/lib/security/../../lib/security/pam_permit.so: undefined symbol:
_Z12pam_get_userP10pam_handlePPKcS2_]
Dec 5 16:32:53 linuxlab2 su: PAM adding faulty module:
/lib/security/$ISA/pam_permit.so

Anybody got any ideas, im trying to write my own pam module to do nice
things, and this is my practice.

:-)
-matt

_______________________________________________
Pam-list mailing list
Pam-list redhat com
https://www.redhat.com/mailman/listinfo/pam-list


------------------------------------------------------------------------

_______________________________________________
Pam-list mailing list
Pam-list redhat com
https://www.redhat.com/mailman/listinfo/pam-list





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]