From danny@cs.huji.ac.il  Wed May 10 10:52:53 2006
Return-Path: <danny@cs.huji.ac.il>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 81E5716A407
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 10 May 2006 10:52:53 +0000 (UTC)
	(envelope-from danny@cs.huji.ac.il)
Received: from cs1.cs.huji.ac.il (cs1.cs.huji.ac.il [132.65.16.10])
	by mx1.FreeBSD.org (Postfix) with ESMTP id C7FC643D45
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 10 May 2006 10:52:52 +0000 (GMT)
	(envelope-from danny@cs.huji.ac.il)
Received: from bsd.cs.huji.ac.il ([132.65.16.112])
	by cs1.cs.huji.ac.il with esmtp
	id 1FdmJG-000IHa-6a
	for FreeBSD-gnats-submit@freebsd.org; Wed, 10 May 2006 13:52:50 +0300
Received: from danny by bsd.cs.huji.ac.il with local (Exim 4.60)
	(envelope-from <danny@cs.huji.ac.il>)
	id 1FdmJG-00020v-5O
	for FreeBSD-gnats-submit@freebsd.org; Wed, 10 May 2006 13:52:50 +0300
Message-Id: <E1FdmJG-00020v-5O@bsd.cs.huji.ac.il>
Date: Wed, 10 May 2006 13:52:50 +0300
From: Danny Braniss <danny@cs.huji.ac.il>
Reply-To: Danny Braniss <danny@cs.huji.ac.il>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: passwd does not support _PWF_HESIOD
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         97083
>Category:       bin
>Synopsis:       [patch] passwd(1) does not support _PWF_HESIOD
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 10 11:00:29 GMT 2006
>Closed-Date:    
>Last-Modified:  Fri May 12 04:01:44 GMT 2006
>Originator:     Danny Braniss
>Release:        FreeBSD 6.1-STABLE amd64
>Organization:
>Environment:
System: FreeBSD bsd 6.1-STABLE FreeBSD 6.1-STABLE #0: Tue May 9 10:09:06 IDT 2006 danny@bsd:/r+d/obj/bsd/r+d/6.1/src/sys/HUJI amd64


	
>Description:
	since the actual password update is done via the pam
	modules, I see no harm in adding support for HESIOD
>How-To-Repeat:
	
>Fix:

	patch attached:

--- passwd.c.orig       Sat Apr 19 00:27:09 2003
+++ passwd.c    Wed May 10 13:42:40 2006
@@ -119,10 +119,14 @@
                fprintf(stderr, "Changing NIS password for %s\n",
                    pwd->pw_name);
                break;
+       case _PWF_HESIOD:
+               fprintf(stderr, "Changing HESIOD password for %s\n",
+                   pwd->pw_name);
+               break;
        default:
                /* XXX: Green men ought to be supported via PAM. */
                errx(1, 
-         "Sorry, `passwd' can only change passwords for local or NIS users.");
+         "Sorry, `passwd' can only change passwords for local, NIS, or HESIOD users.");
        }
 
 #define pam_check(func) do { \



>Release-Note:
>Audit-Trail:
>Unformatted:
