From owner-freebsd-questions@FreeBSD.ORG Thu Nov 4 21:27:40 2010 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 B12DE1065672 for ; Thu, 4 Nov 2010 21:27:40 +0000 (UTC) (envelope-from freebsd-questions@herveybayaustralia.com.au) Received: from mail.unitedinsong.com.au (mail.unitedinsong.com.au [150.101.178.33]) by mx1.freebsd.org (Postfix) with ESMTP id 307468FC08 for ; Thu, 4 Nov 2010 21:27:39 +0000 (UTC) Received: from webmail.unitedinsong.com.au (abracadabra.herveybayaustralia.com.au [192.168.0.80]) by mail.unitedinsong.com.au (Postfix) with ESMTP id 073365C21; Fri, 5 Nov 2010 07:32:18 +1000 (EST) MIME-Version: 1.0 X-Priority: Normal X-Mailer: AtMail Atmail Open 1.04 Message-ID: <62525.1288906338@herveybayaustralia.com.au> To: "Tim Dunphy" , "freebsd-questions" X-Origin: 192.168.0.200 X-Atmail-Account: freebsd-questions@herveybayaustralia.com.au Date: Fri, 5 Nov 2010 08:32:18 +1100 From: freebsd-questions@herveybayaustralia.com.au Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: failure to import ldif into ldap X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@herveybayaustralia.com.au List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Nov 2010 21:27:40 -0000 On Fri 5/11/10 6:40 AM , Tim Dunphy wrote:Thanks all.. I have read the man of ldif.... your advice has gotten me quite far both in my current implementation and in my overall understanding of LDAP which I am hoping grows with each passing day. In my attempt to build my current directory, I have taken a dump of my last successful implementation (which was created on FreeBSD 8.1) and substituted values for the dc=3Dcompany and dc=3Dcom values with the correct ones for the current directory (attempting to implement under CentOS 5.4) and even tho the correct schemas are in place it is choking on this entry: # defaults, sudoers, Services, acadaca.com dn: cn=3Ddefaults,ou=3Dsudoers,ou=3DServices,dc=3Dacadaca,dc=3Dnet objectClass: top objectClass: sudoRole cn: defaults description: Default sudoOption's go here And again I should have all the schemas in place to make this work... include /etc/openldap/schema/core.schema include /etc/openldap/schema/cosine.schema include /etc/openldap/schema/inetorgperson.schema include /etc/openldap/schema/nis.schema include /etc/openldap/schema/misc.schema inlcude /etc/openldap/schema/sudoers.schema include /etc/openldap/schema/openldap.schema [ ldif]# ldapadd -h ldap -a -w secret -x -D "cn=3DManager,dc=3Dacadaca,dc=3Dnet" -f /home/tim/txt/ldif/acadaca-master.ldif adding new entry "cn=3Ddefaults,ou=3Dsudoers,ou=3DServices,dc=3Dacadaca,dc=3Dnet" ldapadd: Invalid syntax (21) additional info: objectClass: value #1 invalid per syntax Why this ldif will work in one directory but not another is a mystery at this point.. thanks again I'd be checking in a schema browser- make sure your objectclasses are all present and accounted for, plus your attributes and syntaxes match. HTH ------------------------- Message sent via Atmail Open - http://atmail.org/