From owner-freebsd-current@FreeBSD.ORG Mon Nov 24 05:17:26 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3BCC216A4CF for ; Mon, 24 Nov 2003 05:17:26 -0800 (PST) Received: from sponsa.its.uu.se (sponsa.its.UU.SE [130.238.7.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id DD43743F75 for ; Mon, 24 Nov 2003 05:17:23 -0800 (PST) (envelope-from yuri@irfu.se) Received: by sponsa.its.uu.se (Postfix, from userid 213) id 1FE494737; Mon, 24 Nov 2003 14:17:22 +0100 (MEZ) Received: from sponsa.its.uu.se(127.0.0.1) by sponsa.its.uu.se via virus-scan id s43317; Mon, 24 Nov 03 14:16:38 +0100 Received: from irfu.se (sol.irfu.se [130.238.30.6]) by sponsa.its.uu.se (Postfix) with SMTP id F2C094055; Mon, 24 Nov 2003 14:16:37 +0100 (MEZ) Received: from irfu.se by irfu.se (SMI-8.6/SMI-SVR4) id OAA11264; Mon, 24 Nov 2003 14:16:38 +0100 Message-ID: <3FC204D2.3030808@irfu.se> Date: Mon, 24 Nov 2003 14:17:06 +0100 From: Yuri Khotyaintsev Organization: Swedish Inst. of Space Physics User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; uk-UA; rv:1.5) Gecko/20030925 X-Accept-Language: uk-UA, uk, ru, sv MIME-Version: 1.0 To: Clement Laforet References: <200311241039.16134.yuri@irfu.se> <20031124121305.3a824f3b.sheepkiller@cultdeadsheep.org> In-Reply-To: <20031124121305.3a824f3b.sheepkiller@cultdeadsheep.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-current@freebsd.org Subject: Re: pam_ldap and passwd X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Nov 2003 13:17:26 -0000 Clement Laforet wrote: > Yuri Khotyaintsev wrote: >>As I understand pam_ldap supports changing LDAP passwords. Is it >>supposed to work on FreeBSD ? > > > according to src/usr.bin/passwd/passwd.c: > ... > /* check where the user's from */ > switch (pwd->pw_fields & _PWF_SOURCE) { > case _PWF_FILES: > fprintf(stderr, "Changing local password for %s\n", > pwd->pw_name); > break; > case _PWF_NIS: > fprintf(stderr, "Changing NIS 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."); > } > ... > > If you change default: behaviour you CAN change your password. Currently, > passwd is not fully PAM-aware. > > clem > I think I will wait for "official" solution rather then hacking myself... Do you have any patches for this ? Yuri