From owner-freebsd-current@FreeBSD.ORG Thu Nov 18 17:10:25 2004 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 B4A0216A4CE for ; Thu, 18 Nov 2004 17:10:25 +0000 (GMT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 393AB43D2F for ; Thu, 18 Nov 2004 17:10:25 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.1) id iAIHACkC030906; Thu, 18 Nov 2004 11:10:12 -0600 (CST) (envelope-from dan) Date: Thu, 18 Nov 2004 11:10:12 -0600 From: Dan Nelson To: Ivan Voras Message-ID: <20041118171012.GB19265@dan.emsphone.com> References: <419CD314.80900@fer.hr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <419CD314.80900@fer.hr> X-OS: FreeBSD 5.3-STABLE X-message-flag: Outlook Error User-Agent: Mutt/1.5.6i cc: current@freebsd.org Subject: Re: Replacing 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: Thu, 18 Nov 2004 17:10:25 -0000 In the last episode (Nov 18), Ivan Voras said: > I've setup pam_ldap and nss_ldap and samba3 and smbldap, and it works > fine, but it would be nice to replace /usr/bin/passwd with > smbldap-passwd (which changes both NTLM and Unix password fields in > LDAP, while passwd is unaware of LDAP, at least according to man > page). Is there a clean way of doing it so I don't have to replace > it by hand after each installworld? passwd just uses PAM to set passwords, so the cleanest way would be to have a pam_smb module that does the password changes, and add it to /etc/pam.d/passwd , or maybe tell have pam_ldap do it. -- Dan Nelson dnelson@allantgroup.com