From owner-freebsd-questions@FreeBSD.ORG Wed Jan 7 04:33:17 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DB39716A4CE for ; Wed, 7 Jan 2004 04:33:17 -0800 (PST) Received: from bart.esiee.fr (bart.esiee.fr [147.215.1.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id D64E843D39 for ; Wed, 7 Jan 2004 04:33:15 -0800 (PST) (envelope-from frank@bart.esiee.fr) Received: from bart.esiee.fr (localhost.esiee.fr [127.0.0.1]) by bart.esiee.fr (8.12.10/8.12.7) with ESMTP id i07CXEkU027128 for ; Wed, 7 Jan 2004 13:33:14 +0100 (MET) Received: (from frank@localhost) by bart.esiee.fr (8.12.10/8.12.7/Submit) id i07CXERu027127 for freebsd-questions@freebsd.org; Wed, 7 Jan 2004 13:33:14 +0100 (MET) Date: Wed, 7 Jan 2004 13:33:14 +0100 From: Frank To: freebsd-questions@freebsd.org Message-ID: <20040107133314.A26989@bart.esiee.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Subject: How to use LDAP passwd at 4.9 ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jan 2004 12:33:18 -0000 Hi I have a centralized mail server that actually use NIS to access users's passwd, as we use a LDAP server to authenticate all users I had to setup a YP <--> LDAP gateway to let our mail server access to the LDAP. The YP <--> LDAP software is from HPUX 11.11 but it suffers of some bugs and sometime the NIS client on the mail server cannot contact the pseudo NIS server that runs on YP/LDAP gateway. The problem is the mail server runs 4.9-R that cannot support nss_ldap and it is not possible to upgrade to 5.xx for now due to other softwares that run on it. My question ( at last ... ) is there a possibility to dump the LDAP database from the mail server and format it ( thru a shell script ) into a /etc/passwd file format , then integrate it to the LOCAL passwd file ? at last is it possible to modify the /etc/master.passwd file with a shell script to add some entries in it the modify the passwd database WITHOUT using vipw ? Thanks