From owner-freebsd-ports@FreeBSD.ORG Fri Jun 3 16:47:53 2005 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 962FD16A41C for ; Fri, 3 Jun 2005 16:47:53 +0000 (GMT) (envelope-from swhetzel@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id EDD4B43D48 for ; Fri, 3 Jun 2005 16:47:52 +0000 (GMT) (envelope-from swhetzel@gmail.com) Received: by wproxy.gmail.com with SMTP id 69so790411wri for ; Fri, 03 Jun 2005 09:47:52 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=iZKobh8lsKa7EzYzrfw3PCj3n+AZzbndw5VIEzZMfvOi8ds7hxsV548jO3GyT2jleIPWU4PdQPZtXQIu/EQH1YwfMyAfVn/T35DbThkR5v35UZLv1nH+DBveuMiGMMEvaZ8PYSAtcwt9Zu5m0v5D4i/Y+Ia54YMMrVm4Dng1ros= Received: by 10.54.128.20 with SMTP id a20mr875331wrd; Fri, 03 Jun 2005 09:47:52 -0700 (PDT) Received: by 10.54.29.77 with HTTP; Fri, 3 Jun 2005 09:47:52 -0700 (PDT) Message-ID: <790a9fff05060309474f2f06eb@mail.gmail.com> Date: Fri, 3 Jun 2005 11:47:52 -0500 From: Scot Hetzel To: Boris Samorodov In-Reply-To: <41916239@srv.sem.ipt.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <429D8B3B.50203@ng.fadesa.es> <29469499@srv.sem.ipt.ru> <429DE188.5020908@ng.fadesa.es> <09783236@srv.sem.ipt.ru> <429EE7D8.4050900@ng.fadesa.es> <65121725@srv.sem.ipt.ru> <42A025CA.2000107@ng.fadesa.es> <41916239@srv.sem.ipt.ru> Cc: fandino@ng.fadesa.es, freebsd-stable@freebsd.org, freebsd-ports@freebsd.org Subject: Re: kadmin (heimdal port) ignores the ldap backend X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Scot Hetzel List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Jun 2005 16:47:53 -0000 I believe you have to set NO_KERBEROS in /etc/make.conf. Then rebuild & install the FreeBSD sources in /usr/src. Then after the installworld, you'll need to go to the /usr/lib directory and move/remove all libs that are older than the date of the install. NOTE: I would also do a second installworld, after removing the libraries. Just incase something was removed that wasn't supposed to be removed. Then install the KERBEROS hemidal port. Scot On 6/3/05, Boris Samorodov wrote: > On Fri, 03 Jun 2005 11:41:30 +0200 fandino wrote: >=20 > > Boris Samorodov wrote: > > >>I removed temporally all /usr/lib/libkadm5srv* libraries and as resul= ts > > >>kadmin was forced to load /usr/local libraries, but I get the same > > >>problem :-( > > >=20 > > >>again kadmin doesn't use ldap and fallback to database files. > > > From your dump: > > > 58516 kadmin CALL access(0x28079000,0) > > > 58516 kadmin NAMI "/usr/lib/libhdb.so.7" > > > 58516 kadmin RET access 0 > > > 58516 kadmin CALL open(0x28076040,0,0xbfbfebcc) > > > 58516 kadmin NAMI "/usr/lib/libhdb.so.7" > > > 58516 kadmin RET open 3 > > > 58516 kadmin CALL fstat(0x3,0xbfbfebcc) > > > 58516 kadmin RET fstat 0 > > > 58516 kadmin CALL read(0x3,0x28070c40,0x1000) > > > 58516 kadmin GIO fd 3 read 4096 bytes > > > Thus kadmin is using the system libhdb. The port version shuold be > > > at > > > /usr/local/lib. >=20 > > Effectively /usr/lib/libhdb.so.7 was the cause of the problem. Thank yo= u > Boris. >=20 > You are welcome. >=20 > > I'd like to ask what is the proper way of treat with this conflict? >=20 > So do I. >=20 > > is it unavoidable? >=20 > The same. >=20 > > is there any solution? >=20 > I already gave you a skeleton of the wrapping script for kadmin with > search-order changed for libraries. IMO it's the most effective way at > the matter. >=20 > Does someone know the right solution? >=20 > > Also it'd be interesting if a warning was printed by the port install > script > > advising the consequences of enable "LDAP backend" in the heimdal port. >=20 > Please, do send-pr with your suggestion. >=20 >=20 > WBR > --=20 > bsam > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" >=20 --=20 DISCLAIMER: No electrons were mamed while sending this message. Only slightly bruised.