From owner-freebsd-questions@FreeBSD.ORG Wed Oct 13 14:33:22 2010 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 3DA2F1065670 for ; Wed, 13 Oct 2010 14:33:22 +0000 (UTC) (envelope-from bluethundr@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id C45C88FC20 for ; Wed, 13 Oct 2010 14:33:21 +0000 (UTC) Received: by bwz16 with SMTP id 16so2593455bwz.13 for ; Wed, 13 Oct 2010 07:33:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=4ELfV+bJTvqMTGBEdLxHEbsucT5qailTPr8y88zjfts=; b=sCRTFOFHyh5BzWp3iIZp6/koKF0wtBmLLU+lJAy0sHD4JKUmTPYI1dro/FwoRLwc4J dSbrZPidBPYD6ettW3cETgEUdHhORj1PmQ3U7+nZw/MoIFZGzNNiBdg9JNkQz5cMLo93 NTOQgM3h72dzgfhI6zRHtodA0wvNAZRUXHclE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=DSicrmdq13VF5DVsTjTb7U1p16Z95knCtvL19gC2fDzfG/MG2VERDEPPwwn2/wPLvd 7HlB0+jxTugJzPW5G4xvOJ6tZced7IGDGgaheh6XXKKqdO/UXrByfHeqfulhS6BTUKIF 9LwcFDQ5a07FZ1gXpq1tZJd+erN5hdI7Q+txQ= MIME-Version: 1.0 Received: by 10.204.69.193 with SMTP id a1mr6937017bkj.108.1286978916046; Wed, 13 Oct 2010 07:08:36 -0700 (PDT) Received: by 10.204.69.144 with HTTP; Wed, 13 Oct 2010 07:08:35 -0700 (PDT) Date: Wed, 13 Oct 2010 10:08:35 -0400 Message-ID: From: Tim Dunphy To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: migrating to openldap 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: Wed, 13 Oct 2010 14:33:22 -0000 Hello, I am attempting to migrate my local user setup to openldap under FreeBSD 8.1. My server is currently running nicely. At the moment, sudoers is imported into openldap-server24. But services that authenticate through PAM (such as su and ssh) are currently not working. I notice that the CentOS version of openldap24 has a really nice set of perl scripts suited to this purpose. So I rsynced them over to my BSD box in the hopes of using them. LBSD2# ls README migrate_group.pl migrate_aliases.pl migrate_hosts.pl migrate_all_netinfo_offline.sh migrate_netgroup.pl migrate_all_netinfo_online.sh migrate_netgroup_byhost.pl migrate_all_nis_offline.sh migrate_netgroup_byuser.pl migrate_all_nis_online.sh migrate_networks.pl migrate_all_nisplus_offline.sh migrate_passwd.pl migrate_all_nisplus_online.sh migrate_profile.pl migrate_all_offline.sh migrate_protocols.pl migrate_all_online.sh migrate_rpc.pl migrate_automount.pl migrate_services.pl migrate_base.pl migrate_slapd_conf.pl migrate_common.ph migration-tools.txt migrate_fstab.pl What one needs to do is set an environment variable for your base DN and then run the scripts. LBSD2# echo $DEFAULT_BASE dc=summitnjhome,dc=com LBSD2# ./migrate_base.pl > /home/bluethundr/txt/base.ldif But for some reason the scripts running under BSD don't see the base dn that i set, whereas when I run them under CentOS they do. Now, I could edit the resulting file by hand, but that isn't a very practical solution. Does anyone know if there are either existing FreeBSD versions of these migration scripts or have a tip for helping me get these to run under FreeBSD? Thanks!!! -- Here's my RSA Public key: gpg --keyserver pgp.mit.edu --recv-keys 5A4873A9 Share and enjoy!!