From owner-freebsd-questions@FreeBSD.ORG Sat Jul 9 05:33:53 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F39DF1065670 for ; Sat, 9 Jul 2011 05:33:52 +0000 (UTC) (envelope-from f.bonnet@esiee.fr) Received: from hp9.esiee.fr (hp9.esiee.fr [147.215.1.4]) by mx1.freebsd.org (Postfix) with ESMTP id A79278FC0A for ; Sat, 9 Jul 2011 05:33:52 +0000 (UTC) Received: from mail.esiee.fr (mail.esiee.fr [147.215.1.3]) by hp9.esiee.fr (Postfix) with ESMTP id C97AB14E9B7B; Sat, 9 Jul 2011 07:32:09 +0200 (CEST) X-DKIM: OpenDKIM Filter v2.4.1 hp9.esiee.fr C97AB14E9B7B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=esiee.fr; s=MAILOUT; t=1310189529; bh=sRb8zFC8Z1xXXp8Q/gVNRawKsKtMgAmxEZ17JNxpp6w=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=kVEN4/3bY5uiWEoffv2qCjyDMxoa3NT0M0hOpa6obWp0O7fcNCOenw4zQ7Qk5bwVc aC0dhEjIceUyIeOwRIFxF986J/txQpjh/BW51lPi7rpqTULRenl2lyPIm9sde4InfG z4w4BtomP7wbDy61yXs1+46zRjQKJ2DeyDUat78I= Received: from mail.esiee.fr (localhost [127.0.0.1]) by VAMS.dummy (Postfix) with SMTP id DB1363C3CB6; Sat, 9 Jul 2011 07:32:23 +0200 (CEST) Received: from secure.esiee.fr (secure.esiee.fr [147.215.1.19]) by mail.esiee.fr (Postfix) with ESMTP id AB4D03C3CB3; Sat, 9 Jul 2011 07:32:23 +0200 (CEST) Received: from [127.0.0.1] (chs77-1-82-238-8-126.fbx.proxad.net [82.238.8.126]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: bonnetf) by secure.esiee.fr (Postfix) with ESMTPSA id F41BBEAC8F; Sat, 9 Jul 2011 07:34:06 +0200 (CEST) Message-ID: <4E17E834.1080201@esiee.fr> Date: Sat, 09 Jul 2011 07:33:40 +0200 From: Frank Bonnet User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:5.0) Gecko/20110624 Thunderbird/5.0 MIME-Version: 1.0 To: Moises Castellanos References: <4E1713AF.7000806@esiee.fr> <4E172DE2.1000308@esiee.fr> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@freebsd.org Subject: Re: import users from LDAP to local password file (pwd.db) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Jul 2011 05:33:53 -0000 Thanks for the pointer , I gonna try this Le 08/07/2011 20:35, Moises Castellanos a =E9crit : > On Fri, Jul 8, 2011 at 11:48 AM, Frank Bonnet wrote= : > >> getent does not show the encrypted password field >> >> >> > You could use perl with Net::LDAP to generate the passwd file, someth= ing > like http://bit.ly/p6bWwI > > Regards > > > >> On 07/08/2011 05:43 PM, Moises Castellanos wrote: >> >>> Hi >>> You can try with getent(1) passwd and see if you can work with the = output >>> >>> Regards >>> >>> On Fri, Jul 8, 2011 at 9:56 AM, Frank Bonnet wro= te: >>> >>> Hello >>>> >>>> I need to import the necessary users's data from an OpenLDAP direct= ory >>>> server >>>> to put them in the local password files , anyone has done this befor= e ? >>>> >>>> The machine use nss_ldap and pam_ldap to authenticate users but for >>>> robustness >>>> during the holidays I would like to have a local password file on th= is >>>> machine which >>>> is our mailhub. >>>> >>>> The OpenLDAP server runs on another machine and if it fails during >>>> holidays >>>> I want >>>> my mailhub to be standalone for authentication in order to let email >>>> service running >>>> even the directory server crash. >>>> >>>> Thanks >>>> >>>> ______________________________****_________________ >>>> freebsd-questions@freebsd.org mailing list >>>> http://lists.freebsd.org/****mailman/listinfo/freebsd-****questions<= http://lists.freebsd.org/**mailman/listinfo/freebsd-**questions> >>>> >>>>> >>>> >>>> To unsubscribe, send any mail to "freebsd-questions-** >>>> unsubscribe@freebsd.org >>>>> " >>>> >>>> ______________________________**_________________ >>> freebsd-questions@freebsd.org mailing list >>> http://lists.freebsd.org/**mailman/listinfo/freebsd-**questions >>> To unsubscribe, send any mail to "freebsd-questions-** >>> unsubscribe@freebsd.org" >>> >> >> >> -- >> >> Frank BONNET >> >> 01.45.92.66.17 >> >> Service des Moyens Informatiques Generaux >> >> ESIEE PARIS >> Cit=E9 Descartes / BP 99 >> 93162 NOISY-LE-GRAND Cedex >> http://www.esiee.fr >> >> >> ______________________________**_________________ >> freebsd-questions@freebsd.org mailing list >> http://lists.freebsd.org/**mailman/listinfo/freebsd-**questions >> To unsubscribe, send any mail to "freebsd-questions-** >> unsubscribe@freebsd.org" >> >