From owner-freebsd-hackers@FreeBSD.ORG Thu Oct 16 04:45:52 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6982316A4BF for ; Thu, 16 Oct 2003 04:45:52 -0700 (PDT) Received: from gandalf.online.bg (gandalf.online.bg [217.75.128.9]) by mx1.FreeBSD.org (Postfix) with SMTP id 5222843F93 for ; Thu, 16 Oct 2003 04:45:50 -0700 (PDT) (envelope-from roam@ringlet.net) Received: (qmail 5785 invoked from network); 16 Oct 2003 11:45:20 -0000 Received: from office.sbnd.net (HELO straylight.ringlet.net) (217.75.140.130) by gandalf.online.bg with SMTP; 16 Oct 2003 11:45:19 -0000 Received: (qmail 49428 invoked by uid 1000); 16 Oct 2003 11:45:48 -0000 Date: Thu, 16 Oct 2003 14:45:48 +0300 From: Peter Pentchev To: omestre Message-ID: <20031016114547.GF79269@straylight.oblivion.bg> Mail-Followup-To: omestre , freebsd-hackers@freebsd.org References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="WChQLJJJfbwij+9x" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.4i cc: freebsd-hackers@freebsd.org Subject: Re: crypt X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Oct 2003 11:45:52 -0000 --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--