From owner-freebsd-questions@FreeBSD.ORG Thu Nov 3 10:07:06 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B1A7616A41F for ; Thu, 3 Nov 2005 10:07:06 +0000 (GMT) (envelope-from dantoganelus@yahoo.com) Received: from web51302.mail.yahoo.com (web51302.mail.yahoo.com [206.190.38.168]) by mx1.FreeBSD.org (Postfix) with SMTP id 2783F43D45 for ; Thu, 3 Nov 2005 10:07:05 +0000 (GMT) (envelope-from dantoganelus@yahoo.com) Received: (qmail 38818 invoked by uid 60001); 3 Nov 2005 10:07:05 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=mb+eMpr2Cw4ku8TSCqnsyZySPJ82sKtjeBQnOJfqD1oWs4CqbpMVuXjZe+QYSUs1p/CJne1XYuUlpYWqkkFP89aCoy2C0+c3HOTtl6sDyf/ljIqETAZpHlx7a4OluO6BmNAVLFJ8Jxk8f7CykxZIfyt9HFlvC1sVSbXFSoD2zX8= ; Message-ID: <20051103100705.38816.qmail@web51302.mail.yahoo.com> Received: from [217.156.83.1] by web51302.mail.yahoo.com via HTTP; Thu, 03 Nov 2005 02:07:04 PST Date: Thu, 3 Nov 2005 02:07:04 -0800 (PST) From: Dan Toganel To: Igor Robul In-Reply-To: <4368B5E7.4050309@speechpro.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: freebsd-questions@freebsd.org Subject: Re: FreeBSD auth X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Nov 2005 10:07:06 -0000 --- Igor Robul wrote: > It is not recommended directly use /etc/passwd, you > your program need > authentification, then use > PAM (man 3 pam). If you still want ignore PAM, you > can use getpwent(3) > family of functions. > Thanks for your interest. Well, the problem with getpwent() is that i can't retrive hash from master.passwd, I can use it, only to parse passwd file. But i also need to parse master.passwd to obtain the hash and to crypt user password and obtain the hash. I need more specific help about those two. __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com