From owner-freebsd-questions@FreeBSD.ORG Thu May 18 20:03:00 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 A519916A475 for ; Thu, 18 May 2006 20:03:00 +0000 (UTC) (envelope-from darryl@osborne-ind.com) Received: from ws2.cnweb.com (ws2.cnweb.com [69.50.194.62]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2B24A43D72 for ; Thu, 18 May 2006 20:02:58 +0000 (GMT) (envelope-from darryl@osborne-ind.com) Received: (qmail 29645 invoked from network); 18 May 2006 15:06:49 -0500 Received: from p245n23.ruraltel.net (HELO darryl) (24.225.23.245) by ws2.cnweb.com with SMTP; 18 May 2006 15:06:49 -0500 From: "Darryl Hoar" To: Date: Thu, 18 May 2006 15:02:30 -0500 Message-ID: <004e01c67ab5$ff4c5660$0701a8c0@darryl> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1807 Importance: Normal Subject: Openldap problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: darryl@osborne-ind.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 May 2006 20:03:00 -0000 Greetings, I have Freebsd 6.0-release and configured on my machine. I need to install and have running openldap on this machine. here is what I have done: 1. cd /usr/ports/net/openldap22-server mailman# make mailman# make install. 2. Added the following lines to /etc/rc.conf slapd_enable="YES" slapd_flags='-h "ldapi://var/run/openldap/ldapi/ ldap://0.0.0.0/"' slapd_sockets="/var/run/openldap/ldapi" rebooted, and the system came up fine. Unfortunately, it does not start slapd. Went into /usr/local/etc/rc.d and did a ./slapd start. following the article at Onlamp.com to create an address book. my slapd.conf is: # # See slapd.conf(5) for details on configuration options. # This file should NOT be world readable. # include /usr/local/etc/openldap/schema/core.schema include /usr/local/etc/openldap/schema/cosine.schema include /usr/local/etc/openldap/schema/inetorgperson.schema # Define global ACLs to disable default read access. # Do not enable referrals until AFTER you have a working directory # service AND an understanding of referrals. #referral ldap://root.openldap.org pidfile /var/run/openldap/slapd.pid argsfile /var/run/openldap/slapd.args # Load dynamic backend modules: modulepath /usr/local/libexec/openldap moduleload back_bdb # moduleload back_ldap # moduleload back_ldbm # moduleload back_passwd # moduleload back_shell # Sample security restrictions # Require integrity protection (prevent hijacking) # Require 112-bit (3DES or better) encryption for updates # Require 63-bit encryption for simple bind # security ssf=1 update_ssf=112 simple_bind=64 # Sample access control policy: # Root DSE: allow anyone to read it # Subschema (sub)entry DSE: allow anyone to read it # Other DSEs: # Allow self write access # Allow authenticated users read access # Allow anonymous users to authenticate # Directives needed to implement policy: # access to dn.base="" by * read # access to dn.base="cn=Subschema" by * read # access to * # by self write # by users read # by anonymous auth # # if no access controls are present, the default policy # allows anyone and everyone to read anything but restricts # updates to rootdn. (e.g., "access to * by * read") # # rootdn can always read and write EVERYTHING! ####################################################################### # BDB database definitions ####################################################################### database bdb suffix "dc=osborneinternal, dc=com" rootdn "cn=Manager, dc=osborneinternal, dc=com" # Cleartext passwords, especially for the rootdn, should # be avoid. See slappasswd(8) and slapd.conf(5) for details. # Use of strong authentication encouraged. rootpw secret # The database directory MUST exist prior to running slapd AND # should only be accessible by the slapd and slap tools. # Mode 700 recommended. directory /var/db/openldap-data # Indices to maintain index objectClass eq when I try to do a : mailman# ldapadd -D 'dc=osborneinternal, dc=com' -f directory.ldif -W the system prompts Enter LDAP Password: I type in my password exactly as it is in the slapd.conf. So in the above slapd.conf it would be the password "secret" without quotes. No, its not really the word secret, and yes its internal so its intended to be a clear text password. The system replies with : ldap_bind: Invalid credentials how the heck do I get this to work ? thanks for any pointers, tips, etc. And sorry for the length. -Darryl