From yuri@ice.irfu.se  Mon Nov 24 04:41:55 2003
Return-Path: <yuri@ice.irfu.se>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id AC26616A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 24 Nov 2003 04:41:55 -0800 (PST)
Received: from sponsa.its.uu.se (sponsa.its.UU.SE [130.238.7.36])
	by mx1.FreeBSD.org (Postfix) with ESMTP id E2EF343FCB
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 24 Nov 2003 04:41:53 -0800 (PST)
	(envelope-from yuri@ice.irfu.se)
Received: by sponsa.its.uu.se (Postfix, from userid 213)
	id 566D04597; Mon, 24 Nov 2003 13:41:48 +0100 (MEZ)
Received: from sponsa.its.uu.se(127.0.0.1) by sponsa.its.uu.se via virus-scan 
	id s43289; Mon, 24 Nov 03 13:41:20 +0100
Received: from ice.irfu.se (ice.irfu.se [130.238.30.157])
	by sponsa.its.uu.se (Postfix) with ESMTP
	id 0E00A412A; Mon, 24 Nov 2003 13:41:18 +0100 (MEZ)
Received: from ice.irfu.se (localhost [127.0.0.1])
	by ice.irfu.se (8.12.10/8.12.10) with ESMTP id hAOCfLpg018635;
	Mon, 24 Nov 2003 13:41:21 +0100 (CET)
	(envelope-from yuri@ice.irfu.se)
Received: (from yuri@localhost)
	by ice.irfu.se (8.12.10/8.12.10/Submit) id hAOCfK9i018634;
	Mon, 24 Nov 2003 13:41:20 +0100 (CET)
	(envelope-from yuri)
Message-Id: <200311241241.hAOCfK9i018634@ice.irfu.se>
Date: Mon, 24 Nov 2003 13:41:20 +0100 (CET)
From: Yuri Khotyaintsev <yuri@irfu.se>
Reply-To: Yuri Khotyaintsev <yuri@irfu.se>
To: FreeBSD-gnats-submit@freebsd.org
Cc: Dag-ErlingSmrgrav <des@des.no>
Subject: passwd(1) does not use PAM to change the password	
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         59638
>Category:       bin
>Synopsis:       passwd(1) does not use PAM to change the password
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    des
>State:          suspended
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Nov 24 04:50:25 PST 2003
>Closed-Date:    
>Last-Modified:  Sun Oct 23 19:16:19 GMT 2005
>Originator:     Yuri Khotyaintsev
>Release:        FreeBSD 5.1-CURRENT i386
>Organization:
Swedish Institute of Space Physics	
>Environment:
System: FreeBSD ice.irfu.se 5.1-CURRENT FreeBSD 5.1-CURRENT #2: Thu Nov 20 11:20:31 CET 2003 root@ice.irfu.se:/usr/obj/usr/src/sys/ICE i386


>Description:
I cannot change password for LDAP users using pam_ldap. 

[user at ice][~]# passwd
passwd: Sorry, `passwd' can only change passwords for local or NIS users.
	
>How-To-Repeat:
	run passwd for a LDAP user.	
>Fix:


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: kris 
State-Changed-When: Mon Nov 24 04:54:52 PST 2003 
State-Changed-Why:  
Please provide full details about how you have configured your system. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=59638 
Responsible-Changed-From-To: freebsd-bugs->des 
Responsible-Changed-By: lofi 
Responsible-Changed-When: Mon Nov 24 05:33:15 PST 2003 
Responsible-Changed-Why:  
This PR follows up to this thread on the FreeBSD-current mailing list: 
http://lists.freebsd.org/pipermail/freebsd-current/2003-November/014749.html 


http://www.freebsd.org/cgi/query-pr.cgi?pr=59638 

From: Pawel Wieleba <wielebap@volt.iem.pw.edu.pl>
To: freebsd-gnats-submit@FreeBSD.org, yuri@irfu.se
Cc:  
Subject: Re: bin/59638: passwd(1) does not use PAM to change the password
Date: Sat, 22 May 2004 14:12:49 +0200

 It is not the best solution, but it works.
 I hope some day it will be possible to have passwd fully compatible with pam.
 
 %pwd
 /usr/src/usr.bin
 %diff passwd-OLD passwd
 diff passwd-OLD/passwd.c passwd/passwd.c
 124,125c124,125
 <        errx(1,
 <     "Sorry, `passwd' can only change passwords for local or NIS 
 users.");
 ---
 >        fprintf(stderr,
 >     "Now passwd can change passwords using pam. \n");
 
 By the way. Do you know how to migrate passwords from nis to ldap using pam?
 I'd like to accomplish this in the same way as pam_smb migrate option.
 
 Best,
 wielebap@volt.iem.pw.edu.pl
State-Changed-From-To: feedback->suspended 
State-Changed-By: linimon 
State-Changed-When: Sun Oct 23 19:14:34 GMT 2005 
State-Changed-Why:  
Feedback was received some time ago.  Mark as 'suspended' since this is 
really a feature request that seems to not be being worked on. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=59638 
>Unformatted:
