From owner-freebsd-hackers@FreeBSD.ORG Fri Oct 17 12:43:23 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 3929C16A4B3 for ; Fri, 17 Oct 2003 12:43:23 -0700 (PDT) Received: from sdf.lonestar.org (ol.freeshell.org [192.94.73.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3B0FB43FD7 for ; Fri, 17 Oct 2003 12:43:22 -0700 (PDT) (envelope-from omestre@sdf.lonestar.org) Received: from sdf.lonestar.org (IDENT:omestre@norge.freeshell.org [192.94.73.3]) by sdf.lonestar.org (8.12.10/8.12.10) with ESMTP id h9HJhJbM006435; Fri, 17 Oct 2003 19:43:19 GMT Received: (from omestre@localhost) by sdf.lonestar.org (8.12.10/8.12.8/Submit) id h9HJhIuT006455; Fri, 17 Oct 2003 19:43:18 GMT Date: Fri, 17 Oct 2003 19:43:18 +0000 (UTC) From: omestre To: Peter Pentchev In-Reply-To: <20031016114547.GF79269@straylight.oblivion.bg> Message-ID: References: <20031016114547.GF79269@straylight.oblivion.bg> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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: Fri, 17 Oct 2003 19:43:23 -0000 On Thu, 16 Oct 2003, Peter Pentchev wrote: > Date: Thu, 16 Oct 2003 14:45:48 +0300 > From: Peter Pentchev > To: omestre > 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