pam_userdb database format

Hello. Finally (yesterday) I've found a solution which made pam_userdb to be able to find, to open and use it's user database. Pam_userdb obviously needs a database in old dbm format using two database files with "dir" and "pag" extensions. The only way to create them that I found is to use a Perl script with dbmopen function. Why not recompile PAM to support new db formats? As seen from the pam_userdb source code, an attempt was made to support them, only the conditional defines there seem to be not working. Boris. -- -- -- -- -- Boris Kimel N. D. Zelinsky Institute of Organic Chemistry 47 Leninsky Prospekt, Moscow, Russia Phone1: +7 095 135-89-41 Phone2: +7 095 938-35-10 Phone3: (inside IOC) 9-80 auto secretary, please use! Fax: +7 095 135-53-28 Email: kimel@1303.ru -- -- -- -- --

* Boris Kimel; <webmaster@1303.ru> on 24 Dec, 2002 wrote:
Hello.
Finally (yesterday) I've found a solution which made pam_userdb to be able to find, to open and use it's user database. Pam_userdb obviously needs a database in old dbm format using two database files with "dir" and "pag" extensions. The only way to create them that I found is to use a Perl script with dbmopen function.
Would you care to send the script you used to create the database ( you can send it directly to me if you want) -- Togan Muftuoglu Unofficial SuSE FAQ Maintainer http://dinamizm.ath.cx

Hope it won't be spamming the group as I hope it would be useful. A script to create a database in dbm format (maybe I'm wrong in naming the format, but as far as I know it is called DBM). Tested with SuSE 8.1 --------- cut here ---------- #!/usr/bin/perl $dbmfile="vsftpd_login"; dbmopen(%MYHASH, $dbmfile, 0644) || die "Something is wrong today"; %MYHASH = (user01 => 'pass01'); dbmclose (%MYHASH); --------- cut here ---------- One gets two files: vsftpd_login.pag and vsftpd_login.dir. User 'user01' can use ftp with a password 'pass01'. Boris. -- -- -- -- -- Boris Kimel N. D. Zelinsky Institute of Organic Chemistry 47 Leninsky Prospekt, Moscow, Russia Phone1: +7 095 135-89-41 Phone2: +7 095 938-35-10 Phone3: (inside IOC) 9-80 auto secretary, please use! Fax: +7 095 135-53-28 Email: kimel@1303.ru -- -- -- -- --
participants (2)
-
Boris Kimel
-
Togan Muftuoglu