OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: How comile pam modules

From: Matt Sellers (mattindigo.nu)
Date: Thu Dec 08 2005 - 13:53:22 CST


no, this is the standard pam_permit.c that is packaged with the latest
pam release. Im trying to compile it so I know the procedure for
compiling pam modules then I wish to alter it in C++ ( stdlib then using
ldap libraries later). Ill admit im very rusty with this type of
development at the moment, but as soon as I can test my work with
correct compiling ill be alot more viable.

Any help suggestions greatly appreciated..

Matt Sellers
mattindigo.nu

Jason Gerfen wrote:
> PPKcS2? Is that some library you are trying to utilize? If so you
> will need to link against it:
>
> g++ shared pam_permit.c -o pam_permit.so -libppk (or equivelant)
>
> Matt Sellers wrote:
>
>> Im trying to compile a single pam module via this.
>>
>> g++ -shared pam_permit.c -o pam_permit.so
>>
>> 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-listredhat.com
>> https://www.redhat.com/mailman/listinfo/pam-list
>
>
>

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