From owner-freebsd-questions@FreeBSD.ORG Wed Oct 13 20:23:23 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 E2A601065673 for ; Wed, 13 Oct 2010 20:23: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 6FD5C8FC18 for ; Wed, 13 Oct 2010 20:23:22 +0000 (UTC) Received: by bwz16 with SMTP id 16so2956438bwz.13 for ; Wed, 13 Oct 2010 13:23:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=/RMtJWNKc2XEzFHfWKrdMvy+9rQgwW2Gf7jnnPPOp1A=; b=dMZ7uaRIBcZ0zEeWMthzu8Qf6yOz2b2+geQ/rqGa8DC5UfNOpK4ruj5n0nqYdUjcqT /5miGfrSc9qVcaxxMFMVzbMCDH8EoDQpjTPJO6TIKsyxCMY3n11WYXOCj7J89Ae8QQxp 26QaJm/EiqAmUwYhMosiTphS152YIf0G/prLA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=S0PQHPkd+YwLdBYOeLyWaIaaKN9+KKpA0J1mYalOZ1C6ILYQcOAQdRgGqsOEMYXYWX KE25Yr98OJ3oNX0NB2Yl4BMIPKmdZYaGjcPr+OTz8D+Kd16KdbAqpcU3ANT0U+5rGBT9 gv6V/OQfd62PkaB+pYnZmF62uOyIDVbMI5fAg= MIME-Version: 1.0 Received: by 10.204.103.9 with SMTP id i9mr8004573bko.192.1287001397975; Wed, 13 Oct 2010 13:23:17 -0700 (PDT) Received: by 10.204.69.144 with HTTP; Wed, 13 Oct 2010 13:23:17 -0700 (PDT) In-Reply-To: <201010132213.55683.milu@dat.pl> References: <201010131737.09756.milu@dat.pl> <201010132213.55683.milu@dat.pl> Date: Wed, 13 Oct 2010 16:23:17 -0400 Message-ID: From: Tim Dunphy To: Maciej Milewski Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-questions@freebsd.org Subject: Re: 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 20:23:23 -0000 Actually, I was trying this as root on FBSD.. so therefore I was using csh.. but that's 6 of one half dozen of the other. At any rate, your suggestion WORKED!! THANK YOU a ton man, this really helped!! :))) LBSD2# setenv LDAP_BASEDN "dc=summitnjhome,dc=com" You have new mail. LBSD2# echo $LDAP_BASEDN dc=summitnjhome,dc=com LBSD2# rm /home/bluethundr/txt/ldif/base.ldif LBSD2# ./migrate_base.pl > /home/bluethundr/txt/ldif/base.ldif LBSD2# less /home/bluethundr/txt/ldif/base.ldif dn: dc=summitnjhome,dc=com dc: summitnjhome objectClass: top objectClass: domain dn: ou=Hosts,dc=summitnjhome,dc=com ou: Hosts objectClass: top objectClass: organizationalUnit dn: ou=Rpc,dc=summitnjhome,dc=com ou: Rpc objectClass: top objectClass: organizationalUnit dn: ou=Services,dc=summitnjhome,dc=com ou: Services objectClass: top objectClass: organizationalUnit dn: nisMapName=netgroup.byuser,dc=summitnjhome,dc=com nismapname: netgroup.byuser objectClass: top objectClass: nisMap On Wed, Oct 13, 2010 at 4:13 PM, Maciej Milewski wrote: > On Wednesday 13 October 2010 21:36:16, Tim Dunphy wrote: > >> Maciej, thanks for the suggestion! I did give it a try but the result > >> did not change.. Here is a copy-paste of what I tried: > >> > >> LBSD2# echo $LDAP_BASE > >> dc=summitnjhome,dc=com > > Not LDAP_BASE but LDAP_BASEDN. It works with stock migrationtools from > padl.com. > >> I mean I guess worse comes to worse I can break out some command line > >> perl and replace dc=padl with dc=summitnjhome but it would be cleaner > >> /faster I think to see if I can get the environment variable to be > >> read by the various scripts. I would appreciate any thoughts on the > >> matter... > >> > >> thanks again! > > You don't have to, look into these migrate_*.pl files they all should > include the same file where you can change these defaults with needed ones. > > -- > > Maciej Milewski -- Here's my RSA Public key: gpg --keyserver pgp.mit.edu --recv-keys 5A4873A9 Share and enjoy!!