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 Message-ID: <20031016114547.GF79269@straylight.oblivion.bg> In-Reply-To: <Pine.NEB.4.58.0310161126410.13334@norge.freeshell.org> References: <Pine.NEB.4.58.0310161126410.13334@norge.freeshell.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--WChQLJJJfbwij+9x Content-Type: text/plain; charset=windows-1251 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Oct 16, 2003 at 11:37:37AM +0000, omestre wrote: >=20 > 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 --=20 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 =2Esiht ekil ti gnidaer eb d'uoy ,werbeH ni erew ecnetnes siht fI --WChQLJJJfbwij+9x Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/joTr7Ri2jRYZRVMRAumoAKCHFaZbhxj/ytHRrx4lYTItN7akvgCfbQCU qryITNRAmnKKXvRUcOpuhNA= =Obyq -----END PGP SIGNATURE----- --WChQLJJJfbwij+9x--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031016114547.GF79269>