From owner-freebsd-questions@FreeBSD.ORG Thu Oct 28 18:27:55 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 4A0D0106566C for ; Thu, 28 Oct 2010 18:27:55 +0000 (UTC) (envelope-from bluethundr@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id D092C8FC20 for ; Thu, 28 Oct 2010 18:27:54 +0000 (UTC) Received: by bwz3 with SMTP id 3so1841529bwz.13 for ; Thu, 28 Oct 2010 11:27:53 -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=MPBTYXx1MaUfhkmh636a5B69P9HRV/zxFYzxF14HKzY=; b=r70EkrZF1S1s4n9GZXP0UGr9AaBeRxHJ616H0Z8UV+3zdB1c9UtGxCcg5m7Oklrg02 LKMy7kA8flo6yvmmK8TgbR+ZgfGk1aXasWiFdzp+4TJZhsAb1Z3duqvu7PpmBqUFj0qe RqFU9U9XnPvfvDdYZA9wgAplF/aq+m5hB6Nuk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=YUpy7vqYAQshvdLGeITRXRY/ZBNQw1MQ4EolbHiw9jHyVAR5UTxvTzcQaiTMCQv5jx isVgmvmINd09bDBmXeS59AyLLBNQ0FQvzSYEH6ygrgGxheJrQ7xCEbOOG6Frw7DJG9PX rR8bYgsfsJTyLAZKjOq+RwX6jakQ8uA6oKdRI= MIME-Version: 1.0 Received: by 10.204.117.199 with SMTP id s7mr9028716bkq.15.1288290472673; Thu, 28 Oct 2010 11:27:52 -0700 (PDT) Received: by 10.204.81.153 with HTTP; Thu, 28 Oct 2010 11:27:52 -0700 (PDT) Date: Thu, 28 Oct 2010 14:27:52 -0400 Message-ID: From: Tim Dunphy To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: adding user ldif to 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, 28 Oct 2010 18:27:55 -0000 hi list.. I am trying to add an ldif with my users that I have derived from /etc/passwd. for some reason ldapadd is choking on the root user... may I ask how best to correct this? Here is the error: LBSD2# ldapadd -x -D "cn=Manager,dc=summitnjhome,dc=com" -w localG30rg3T0wn -f /tmp/passwd.ldif adding new entry "uid=root,ou=People,dc=summitnjhome,dc=com" ldap_add: Invalid syntax (21) additional info: objectClass: value #6 invalid per syntax Here is the entry that seems to be the problem: dn: uid=root,ou=People,dc=summitnjhome,dc=com uid: root cn: Enoch & givenName: Enoch sn: & mail: root@summitnjhome.com mailRoutingAddress: root@mail.summitnjhome.com mailHost: mail.summitnjhome.com objectClass: inetLocalMailRecipient objectClass: person objectClass: organizationalPerson objectClass: inetOrgPerson objectClass: posixAccount objectClass: top objectClass: kerberosSecurityObject userPassword: {crypt}* krbName: root@summitnjhome.COM loginShell: /bin/csh uidNumber: 0 gidNumber: 0 homeDirectory: /root gecos: Enoch & And here are the schemas I have included in my slapd.conf: LBSD2# cat /usr/local/etc/openldap/slapd.conf # # 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 include /usr/local/etc/openldap/schema/openldap.schema include /usr/local/etc/openldap/schema/sudoers.schema include /usr/local/etc/openldap/schema/nis.schema include /usr/local/etc/openldap/schema/misc.schema Thanks for your help! -- Here's my RSA Public key: gpg --keyserver pgp.mit.edu --recv-keys 5A4873A9 Share and enjoy!!