On Thu, 16 Oct 2003, Peter Pentchev wrote: > Date: Thu, 16 Oct 2003 14:45:48 +0300 > From: Peter Pentchev <[EMAIL PROTECTED]> > To: omestre <[EMAIL PROTECTED]> > Cc: [EMAIL PROTECTED] > Subject: Re: crypt > > On Thu, Oct 16, 2003 at 11:37:37AM +0000, omestre wrote: > > > > Hello, i need authenticate users in a FreeBSD environment and linux > > environment. My passwords are stored with FreeBSD crypt format. We wrote > > a pam module to authenticate the users, but if the module runs in FreeBSD > > and obvious (crypt bsd)... works. In linux does not. Have a simple way to > > write a simple "crypt" function to my linux module, that behaves like the > > FreeBSD libc crypt function? Then i will bypass the two libc crypt > > *imcompatibilities*... > > Sorry by the english. > > Linux has a crypt(3) function, too, and it usually works. You'll need > to tell us a bit more than 'in linux does not' - what exactly does not > work? > > My first guess would be that you cannot compile or load your module, > because either the linker or the loader tells you that the 'crypt' > symbol is undefined. In that case, try giving the -lcrypt option to > the linker, to tell it to use the libcrypt library - some Linux > distributions keep their crypt(3) in a separate library. > > G'luck, > Peter > > -- > Peter Pentchev [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] > PGP key: http://people.FreeBSD.org/~roam/roam.key.asc > Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 > .siht ekil ti gnidaer eb d'uoy ,werbeH ni erew ecnetnes siht fI >
Thanks, it is working fine. The linux crypt function is working like FreeBSD... modular and traditional types. :) I've make a mistake. [EMAIL PROTECTED] SDF Public Access UNIX System - http://sdf.lonestar.org _______________________________________________ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"