From owner-freebsd-bugs@FreeBSD.ORG Thu Sep 2 15:00:42 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2A75616A4D2 for ; Thu, 2 Sep 2004 15:00:42 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id CBE8843D60 for ; Thu, 2 Sep 2004 15:00:37 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.11/8.12.11) with ESMTP id i82F0bMD046618 for ; Thu, 2 Sep 2004 15:00:37 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i82F0bTq046617; Thu, 2 Sep 2004 15:00:37 GMT (envelope-from gnats) Resent-Date: Thu, 2 Sep 2004 15:00:37 GMT Resent-Message-Id: <200409021500.i82F0bTq046617@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Pawel Wieleba Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9D65E16A4CF for ; Thu, 2 Sep 2004 14:55:12 +0000 (GMT) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 91A3C43D1D for ; Thu, 2 Sep 2004 14:55:12 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.12.11/8.12.11) with ESMTP id i82EtCSA065571 for ; Thu, 2 Sep 2004 14:55:12 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.11/8.12.11/Submit) id i82EtCiA065570; Thu, 2 Sep 2004 14:55:12 GMT (envelope-from nobody) Message-Id: <200409021455.i82EtCiA065570@www.freebsd.org> Date: Thu, 2 Sep 2004 14:55:12 GMT From: Pawel Wieleba To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Subject: bin/71290: [PATCH] passwd cannot change passwords other than NIS/local (e.g. via pam_ldap) X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Sep 2004 15:00:42 -0000 >Number: 71290 >Category: bin >Synopsis: [PATCH] passwd cannot change passwords other than NIS/local (e.g. via pam_ldap) >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Sep 02 15:00:37 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Pawel Wieleba >Release: FreeBSD 5.2.1 >Organization: >Environment: FreeBSD server 5.2.1-RELEASE FreeBSD 5.2.1-RELEASE #0: >Description: Initially this problem was announced in PR#71202. I was asked by marcus to divde this PR and so I'm doing. This problem (and two others) is described in the article: http://www.iem.pw.edu.pl/~wielebap/ldap/pam_ldap/pam_ldap_doc.pdf You can also check PR #71287(pam_ldap). Description I cannot change passwords LDAP users passwords via pam_ldap. Why it is prohibited??? Are there any security problems??? Please let me know, CU Pawel Wieleba Example config: % cat /etc/pam.d/passwd password sufficient pam_unix.so no_warn try_first_pass nullok password sufficient pam_ldap.so use_first_pass >How-To-Repeat: >Fix: You have to change and recompile /usr/src/usr.bin/passwd to enable changing pam_ldap passwords (I use this patch). A patch: %diff -u passwd.c.orig passwd.c --- /usr/src/usr.bin/passwd/passwd.c.orig Mon May 24 19:41:40 2004 +++ /usr/src/usr.bin/passwd/passwd.c Tue Aug 31 18:03:00 2004 @@ -121,8 +121,7 @@ break; default: /* XXX: Green men ought to be supported via PAM. */ - errx(1, - "Sorry, `passwd' can only change passwords for local or NIS users."); + fprintf(stderr, "Now you can change LDAP passwordi via PAM\n"); } #define pam_check(func) do { \ >Release-Note: >Audit-Trail: >Unformatted: