From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Sep 28 15:30:30 2004 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AF95216A4D0 for ; Tue, 28 Sep 2004 15:30:30 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 79A0B43D48 for ; Tue, 28 Sep 2004 15:30:30 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i8SFUUO2055818 for ; Tue, 28 Sep 2004 15:30:30 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i8SFUUip055817; Tue, 28 Sep 2004 15:30:30 GMT (envelope-from gnats) Resent-Date: Tue, 28 Sep 2004 15:30:30 GMT Resent-Message-Id: <200409281530.i8SFUUip055817@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Pawel Wieleba Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A680516A4CE for ; Tue, 28 Sep 2004 15:29:36 +0000 (GMT) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9AEFA43D31 for ; Tue, 28 Sep 2004 15:29:36 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.12.11/8.12.11) with ESMTP id i8SFTaFc090757 for ; Tue, 28 Sep 2004 15:29:36 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.11/8.12.11/Submit) id i8SFTZHd090756; Tue, 28 Sep 2004 15:29:35 GMT (envelope-from nobody) Message-Id: <200409281529.i8SFTZHd090756@www.freebsd.org> Date: Tue, 28 Sep 2004 15:29:35 GMT From: Pawel Wieleba To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Subject: ports/72149: [PATCH] heimdal with LDAP backend - bad slapd socket path X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Sep 2004 15:30:30 -0000 >Number: 72149 >Category: ports >Synopsis: [PATCH] heimdal with LDAP backend - bad slapd socket path >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Sep 28 15:30:30 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Pawel Wieleba >Release: FreeBSD 5.2.1 >Organization: >Environment: FreeBSD s09 5.2.1-RELEASE FreeBSD 5.2.1-RELEASE #0: Mon Feb 23 20:45:55 GMT 2004 root@wv1u.btc.adaptec.com:/usr/obj/usr/src/sys/GENERIC i386 >Description: A problem is described in the article: www.iem.pw.edu.pl/~wielebap/ldap/heimdal/heimdal_doc.pdf (It also contains instructions how to install kerberos with ldap backend.) Now heimdal ldap backend uses ldapi:///. As it is not a full path to the socket, LDAP database is not accesible to kerberos. 'kadmin -l' ill not have an access to the ldap database. My environment: heimdal-0.6.1 openldap-sasl-server-2.2.15 >How-To-Repeat: >Fix: A default location for slapd socket is: /var/run/openldap/ldapi. Here is a patch for heimdal port: % cat /usr/ports/security/heimdal/files/patch-hdb-ldap.c --- lib/hdb/hdb-ldap.c.orig Thu Sep 18 22:49:09 2003 +++ lib/hdb/hdb-ldap.c Tue Sep 27 17:19:13 2004 @@ -984,7 +984,7 @@ return 0; } - rc = ldap_initialize((LDAP **) & db->db, "ldapi:///"); + rc = ldap_initialize((LDAP **) & db->db, "ldapi://%2fvar%2frun%2fopenldap%2 fldapi/"); if (rc != LDAP_SUCCESS) { krb5_set_error_string(context, "ldap_initialize: %s", ldap_err2string(rc )); return HDB_ERR_NOENTRY; You can also download it from: www.iem.pw.edu.pl/~wielebap/ldap/heimdal/ If you're using heimdal from the base system sources, apply a patch to: /usr/src/crypto/heimdal/lib/hdb/hdb-ldap.c >Release-Note: >Audit-Trail: >Unformatted: