From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Apr 16 20:50:17 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C9CA916A402 for ; Sun, 16 Apr 2006 20:50:17 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 93BF843D45 for ; Sun, 16 Apr 2006 20:50:17 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k3GKoGOg090844 for ; Sun, 16 Apr 2006 20:50:16 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k3GKoGKa090843; Sun, 16 Apr 2006 20:50:16 GMT (envelope-from gnats) Date: Sun, 16 Apr 2006 20:50:16 GMT Message-Id: <200604162050.k3GKoGKa090843@freefall.freebsd.org> To: freebsd-ports-bugs@FreeBSD.org From: Pawel Wieleba Cc: Subject: Re: ports/73448: [PATCH] nss_ldap - getpwnam does not return password hash when run as root X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Pawel Wieleba List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Apr 2006 20:50:17 -0000 The following reply was made to PR ports/73448; it has been noted by GNATS. From: Pawel Wieleba To: Sergey Matveychuk Cc: bug-followup@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org, vd@FreeBSD.org Subject: Re: ports/73448: [PATCH] nss_ldap - getpwnam does not return password hash when run as root Date: Sun, 16 Apr 2006 22:45:20 +0200 On Sun, Apr 16, 2006 at 11:26:08PM +0400, Sergey Matveychuk wrote: > I'm not sure it's correct. > How does it work in Linux world? On Linux there is a function getspnam which returns password hash and on FreeBSD there is no such a function. However on FreeBSD a function getpwnam when run as root returns user's password hash. Pawel Wieleba ps To make it clear I'm keen on PAM, but some software does not work with it. The question is do we really need the present passwd structure. Maybe we should resign from 'pw_passwd' and 'pw_class' fields as they are not compatible with broadly used LDAP posixAccount and shadowAccount objectClasses.