From owner-freebsd-questions@FreeBSD.ORG Fri Apr 11 14:31:31 2008 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 D92BC106564A for ; Fri, 11 Apr 2008 14:31:31 +0000 (UTC) (envelope-from pauls@utdallas.edu) Received: from smtp3.utdallas.edu (smtp3.utdallas.edu [129.110.10.49]) by mx1.freebsd.org (Postfix) with ESMTP id B0A028FC0A for ; Fri, 11 Apr 2008 14:31:31 +0000 (UTC) (envelope-from pauls@utdallas.edu) Received: from utd65257.utdallas.edu (utd65257.utdallas.edu [129.110.3.28]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp3.utdallas.edu (Postfix) with ESMTP id 6AA0965512; Fri, 11 Apr 2008 09:31:31 -0500 (CDT) Date: Fri, 11 Apr 2008 09:31:31 -0500 From: Paul Schmehl To: Konrad Heuer , karim.bourenane@orange-ftgroup.com Message-ID: In-Reply-To: <20080411155548.M48993@gwdu60.gwdg.de> References: <20080411155548.M48993@gwdu60.gwdg.de> X-Mailer: Mulberry/4.0.8 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: freebsd-questions@freebsd.org Subject: Re: [7.0] Openldap client 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, 11 Apr 2008 14:31:31 -0000 --On Friday, April 11, 2008 16:03:24 +0200 Konrad Heuer wrote: > > On Fri, 11 Apr 2008, karim.bourenane@orange-ftgroup.com wrote: > >> I'm unbale to install nss_ldap from padl. I've error : >> => nss_ldap-257.tar.gz doesn't seem to exist in /usr/ports/distfiles/. >> => Attempting to fetch from http://www.padl.com/download/. >> fetch: http://www.padl.com/download/nss_ldap-257.tar.gz: size mismatch: >> expected 229242, actual 229299 >> >> Anyone, can tell me, how to install openldap client on Freebsd 7-Stable ? > > I do not know why /usr/ports/net/nss_ldap/distinfo contains a different file > size (and probably inappropriate checksums), but you can just edit > /usr/ports/net/nss_ldap/distinfo and put in what you find (start with size > only, later by using md5 and sha256 utilities in /sbin to calculate checksums > after the file has been fetched /usr/ports/distfiles). The answer to that is obvious. The size and checksums are different because the *file* is different. That means that the file he's trying to download hasn't been vetted by the maintainer to ensure that it's not compromised. The way to solve this problem is (in the order you should do them) 1) Update your ports to see if the maintainer has corrected the problem 2) Download the source code and compare it with the md5sum of the vendor to ensure that it's not compromised. If the checksum matches, go into the port directory and run "make makesum" to update the distinfo file. (No need to reinvent the wheel.) 3) Use DISABLE_VULNERABILITIES to foolishly install the software without first verifying that it hasn't been compromised. I'm thinking option one is probably best: # make => nss_ldap-257.tar.gz doesn't seem to exist in /usr/ports/distfiles/. => Attempting to fetch from http://www.padl.com/download/. nss_ldap-257.tar.gz 100% of 223 kB 36 kBps ===> Extracting for nss_ldap-1.257 => MD5 Checksum OK for nss_ldap-257.tar.gz. => SHA256 Checksum OK for nss_ldap-257.tar.gz. -- Paul Schmehl (pauls@utdallas.edu) Senior Information Security Analyst The University of Texas at Dallas http://www.utdallas.edu/ir/security/