From owner-freebsd-questions@FreeBSD.ORG Fri Jul 8 16:14:08 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 783C2106566C for ; Fri, 8 Jul 2011 16:14:08 +0000 (UTC) (envelope-from m2o7i1@gmail.com) Received: from mail-ew0-f54.google.com (mail-ew0-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id 0A3028FC18 for ; Fri, 8 Jul 2011 16:14:07 +0000 (UTC) Received: by ewy1 with SMTP id 1so918899ewy.13 for ; Fri, 08 Jul 2011 09:14:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Lqeangq8pgkPCcL1c+ee/Kztaskp5F4fxYlZLnlkznM=; b=BaBWbbn3taQYgbUiLDpPbCyE9OVKUGh6b86VNvM3j1AIwfJhr7G5pevUtcHdTkrtFo bC5FZM7/2VYHDZjFHkL4ob3h4k/t/i1ZLsjxk0n/mJ5zejc3atAIoNxf6udd3+cvHCT0 Fc/BxGZZiuatUwEFKGgA1s5f78x1z8LIf/NrY= MIME-Version: 1.0 Received: by 10.213.27.141 with SMTP id i13mr746462ebc.134.1310139799410; Fri, 08 Jul 2011 08:43:19 -0700 (PDT) Received: by 10.213.4.15 with HTTP; Fri, 8 Jul 2011 08:43:19 -0700 (PDT) In-Reply-To: <4E1713AF.7000806@esiee.fr> References: <4E1713AF.7000806@esiee.fr> Date: Fri, 8 Jul 2011 11:13:19 -0430 Message-ID: From: Moises Castellanos To: Frank Bonnet Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: FreeBSD Mailing List 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: Fri, 08 Jul 2011 16:14:08 -0000 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 wrote: > Hello > > I need to import the necessary users's data from an OpenLDAP directory > server > to put them in the local password files , anyone has done this before ? > > 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 this > 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 > To unsubscribe, send any mail to "freebsd-questions-** > unsubscribe@freebsd.org " >