ports/73448: [PATCH] nss_ldap - getpwnam does not return password hash when run as root

Pawel Wieleba P.Wieleba at iem.pw.edu.pl
Sun Apr 16 20:50:17 UTC 2006


The following reply was made to PR ports/73448; it has been noted by GNATS.

From: Pawel Wieleba <P.Wieleba at iem.pw.edu.pl>
To: Sergey Matveychuk <sem at FreeBSD.org>
Cc: bug-followup at FreeBSD.org, freebsd-ports-bugs at FreeBSD.org, vd at 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.



More information about the freebsd-ports-bugs mailing list