From owner-freebsd-questions@FreeBSD.ORG Fri Jul 25 23:13:30 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 74EEB37B401 for ; Fri, 25 Jul 2003 23:13:30 -0700 (PDT) Received: from lakemtao04.cox.net (lakemtao04.cox.net [68.1.17.241]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9BDC043FB1 for ; Fri, 25 Jul 2003 23:13:29 -0700 (PDT) (envelope-from rjhjr@cox.net) Received: from kongemord.krig.net ([68.100.93.21]) by lakemtao04.cox.net (InterMail vM.5.01.04.05 201-253-122-122-105-20011231) with SMTP id <20030726061328.MLBB13930.lakemtao04.cox.net@kongemord.krig.net> for ; Sat, 26 Jul 2003 02:13:28 -0400 Received: by kongemord.krig.net (sSMTP sendmail emulation); Sat, 26 Jul 2003 02:13:28 -0400 From: "Bob Hall" Date: Sat, 26 Jul 2003 02:13:28 -0400 To: FreeBSD Questions List Message-ID: <20030726061328.GA73902@kongemord.krig.net> Mail-Followup-To: FreeBSD Questions List Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i Subject: Setting up OpenLDAP X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Jul 2003 06:13:30 -0000 OpenLDAP 2.1.22, FBSD 4.8 I'm trying to set up LDAP to store passwords. Eventually I will want to store addresses and do general authentication, but right now I just want to do something really simple: add passwords. I installed from the ports using portintall, couldn't get it to work, and went back and reinstalled doing # make depend # make # make test The install didn't fail any of the tests, although make kept looping through the tests until I hit ^C. But I still have the same problems. If anyone has succeeded in installing OpenLDAP from the ports, I'd be grateful for any pointers. I'm trying to do the Quick Install described at www.openldap.org. The first problem is that the doc claims that this is supposed to be a non-referring set up, which is what I want, but OpenLDAP complains that there's no referral. So I've uncommented the referral line in slapd.conf. But attempts to add records still fail. When I do search prior to adding records, I get # /usr/local/bin/ldapsearch -x -b '' -s base '(objectclass=*)' dn: objectClass: top objectClass: OpenLDAProotDSE When I try to add records without a referral, I get # ldapadd -x -v -D "cn=Manager,dc=domain,dc=net" -W -f domain.ldif additional info: referral missing With the referral, I get ldapadd: update failed: dc=domain, dc=net objectclass: dcObject objectclass: organization o: SNAFU dc: domain ldap_add: Referral (10) referrals: ldap://root.openldap.org/dc=domain,dc=net%20%20%20objectclass:%20dcObject%20%20%20objectclass:%20organization%20%20%20o:%20SNAFU%20%20%20dc:%20domain Configuration # less slap.conf include /usr/local/etc/openldap/schema/core.schema referral ldap://root.openldap.org pidfile /var/run/ldap/slapd.pid argsfile /var/run/ldap/slapd.args database bdb suffix "dc=domain, dc=net" rootdn "cn=Manager, dc=domain, dc=net" rootpw directory /var/db/openldap-data index objectClass eq # less domain.ldif dn: dc=domain, dc=net objectclass: dcObject objectclass: organization o: SNAFU dc: domain dn: cn=Manager, dc=domain, dc=net objectclass: organizationalRole cn: Manager Bob Hall