From owner-freebsd-questions@FreeBSD.ORG Thu Nov 4 19:40:27 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 4D56B10656C1 for ; Thu, 4 Nov 2010 19:40:27 +0000 (UTC) (envelope-from bluethundr@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id E0A038FC1C for ; Thu, 4 Nov 2010 19:40:26 +0000 (UTC) Received: by ywh2 with SMTP id 2so1805242ywh.13 for ; Thu, 04 Nov 2010 12:40:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=dB9lehmJhWQiR7htMP657OckzTFGJnaf4Mmbwbdq/GE=; b=AQA8vSdUsKFlgrGOVVg/S7GdCvmagDLLGmH6s5xw6U0608lEyPRNRvsxGZfaAp1QGl 4KSb3yNRFA2Nkw0RBBtpU9DoHu26mkARUi+Ntt3aIwCiVlkRTzdxei70T6s2EMWalBp2 /MZv1pTTx4ZNl/gLYE1R7VQWbUOrXC/2oE9Jw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=T1JxvLKdN1TpJaJYQkQxkaWGeo+60YdaRyvSsbKa1g2MB0nnUfX80KaZ55Eu3wANp5 bw4q3WvlTJLUt9j/1xzfIEFiB2oJ5fiVuqRB2RG0YpAtDCYgsQFlwK2+hgKGr90ydeM6 +ayBAZwZ63qTnOMSeMaQZb2KA8vBbKlnCD7N8= MIME-Version: 1.0 Received: by 10.204.116.201 with SMTP id n9mr1022323bkq.138.1288899623655; Thu, 04 Nov 2010 12:40:23 -0700 (PDT) Received: by 10.204.81.153 with HTTP; Thu, 4 Nov 2010 12:40:23 -0700 (PDT) Date: Thu, 4 Nov 2010 15:40:23 -0400 Message-ID: From: Tim Dunphy To: freebsd-questions Content-Type: text/plain; charset=ISO-8859-1 Subject: failure to import ldif into ldap 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: Thu, 04 Nov 2010 19:40:27 -0000 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=company and dc=com 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=defaults,ou=sudoers,ou=Services,dc=acadaca,dc=net 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 [root@ldap ldif]# ldapadd -h ldap -a -w secret -x -D "cn=Manager,dc=acadaca,dc=net" -f /home/tim/txt/ldif/acadaca-master.ldif adding new entry "cn=defaults,ou=sudoers,ou=Services,dc=acadaca,dc=net" 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 -- Here's my RSA Public key: gpg --keyserver pgp.mit.edu --recv-keys 5A4873A9 Share and enjoy!!