OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
PAM list: New auth. module with some symbol problems

New auth. module with some symbol problems


Subject: New auth. module with some symbol problems
From: Bodor Denis (listeslinuxmag-france.org)
Date: Mon Jan 17 2000 - 11:04:19 CST


Hello,

I just beging to write a new pam module called crypt2g. The goal of this
module is to offer the cheapest smartcard authentification. My module is
based on the french phonecard (t2g card). Reading a card is quite simple
you just read the // port for each bit on the card and increment counter
by writing on // port. So the phone card is just act like a serial EEPROM.
Each card is unique (with serial number).
My module juste do :
- get username
- read card (dump special area)
- crypt() the dumped string
- look for username and crypted string in a config file
- if the string in the file is the same, my module return PAM_SUCCES
I will extend my module to support serial EEPROM in the futur...but... I
have a big probleme :
check_user: PAM unable to dlopen(/lib/security/pam_crypt2g.so)
check_user: PAM [dlerror: /lib/security/pam_crypt2g.so: undefined symbol: inb]
check_user: PAM adding faulty module: /lib/security/pam_crypt2g.so
I compile with :
gcc -fPIC -c pam_crypt2g.c -O2
ls -x --shared -o pam_crypt2g.so pam_crypt2g.o -lpam -lcrypt -lc -ldl
with no error or warning.

The strange thing is that i use outb too but there is no dlerror with it.

Last thing, my module is based on pam_securetty...

If you can help me, please tell me.

thanks

--
denis bodor

-- To unsubscribe: mail -s unsubscribe pam-list-requestredhat.com < /dev/null



This archive was generated by hypermail 2b27 : Mon Jan 17 2000 - 11:04:45 CST