From owner-freebsd-questions@FreeBSD.ORG Wed Mar 11 04:30:08 2009 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 DC3D3106566C for ; Wed, 11 Mar 2009 04:30:08 +0000 (UTC) (envelope-from ljfong@sdf.lonestar.org) Received: from sdf.lonestar.org (mx.freeshell.org [192.94.73.19]) by mx1.freebsd.org (Postfix) with ESMTP id 71B928FC08 for ; Wed, 11 Mar 2009 04:30:08 +0000 (UTC) (envelope-from ljfong@sdf.lonestar.org) Received: from sdf.lonestar.org (IDENT:ljfong@sverige.freeshell.org [192.94.73.4]) by sdf.lonestar.org (8.14.3/8.13.8) with ESMTP id n2B4FQtt003356 for ; Wed, 11 Mar 2009 04:15:26 GMT Received: (from ljfong@localhost) by sdf.lonestar.org (8.14.3/8.12.8/Submit) id n2B4FQje012150 for freebsd-questions@freebsd.org; Tue, 10 Mar 2009 21:15:26 -0700 (MST) Date: Tue, 10 Mar 2009 21:15:26 -0700 From: Hong To: FreeBSD Questions List Message-ID: <20090311041526.GA1154@SDF.LONESTAR.ORG> Mail-Followup-To: Hong , FreeBSD Questions List Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Subject: Ldapadd Crashed with Segmentation Fault 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: Wed, 11 Mar 2009 04:30:09 -0000 Hi, I was playing with OpenLDAP installed on FreeBSD 7.1-RELEASE installed through the port system. The configuration file /usr/local/etc/slapd.conf was edited: ... database bdb #suffix "dc=my-domain,dc=com" #rootdn "cn=Manager,dc=my-domain,dc=com" suffix "dc=example,dc=com" rootdn "cn=Manager,dc=example,dc=com" ... I created a test LDIF file named test1.ldif: dn: dc=example,dc=com objectclass: dcObject objectclass: organization o: Example Company dc: example dn: cn=Manager,dc=example,dc=com objectClass: organizationalRole cn: Manager Then I used ldapadd to add the new entries in the LDIF file: # ldapadd -x -D "cn=Manager,dc=example,dc=com" -W -f test1.ldif Enter LDAP Password: adding new entry "dc=example,dc=com" adding new entry "cn=Manager,dc=example,dc=com" Segmentation fault: 11 (core dumped) Any idea what went wrong? Hong