Date: Fri, 17 Oct 2003 19:43:18 +0000 (UTC) From: omestre <omestre@freeshell.org> To: Peter Pentchev <roam@ringlet.net> Cc: freebsd-hackers@freebsd.org Subject: Re: crypt Message-ID: <Pine.NEB.4.58.0310171939260.2248@norge.freeshell.org> In-Reply-To: <20031016114547.GF79269@straylight.oblivion.bg> References: <Pine.NEB.4.58.0310161126410.13334@norge.freeshell.org> <20031016114547.GF79269@straylight.oblivion.bg>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 16 Oct 2003, Peter Pentchev wrote: > Date: Thu, 16 Oct 2003 14:45:48 +0300 > From: Peter Pentchev <roam@ringlet.net> > To: omestre <omestre@freeshell.org> > Cc: freebsd-hackers@freebsd.org > 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 roam@ringlet.net roam@sbnd.net roam@FreeBSD.org > 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. omestre@sdf.lonestar.org SDF Public Access UNIX System - http://sdf.lonestar.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.4.58.0310171939260.2248>