Date: Thu, 28 Oct 2010 14:27:52 -0400 From: Tim Dunphy <bluethundr@gmail.com> To: freebsd-questions@freebsd.org Subject: adding user ldif to ldap Message-ID: <AANLkTimv9KoEO4gxBY9zFj7XkDtprUehXiz5H2Yihhd=@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
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!!
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTimv9KoEO4gxBY9zFj7XkDtprUehXiz5H2Yihhd=>