LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   OpenLDAP error ldapadd: Undefined attribute type (17) (https://www.linuxquestions.org/questions/linux-server-73/openldap-error-ldapadd-undefined-attribute-type-17-a-598088/)

gergaholic 11-08-2007 11:36 AM

OpenLDAP error ldapadd: Undefined attribute type (17)
 
am working to get OpenLDAP and running and I have run into this issue.

I have read that it relates to having a blank line in between entries but that is taken care of. Any ideas?

#new.ldif contents
dn: cn=Greg,dc=affinitygs,dc=com
cn: Greg
sn: Larson
objectClasserson
ojbectClass:employee
userPassword:XXXXXXX
mail: gregl@example.com
l: somecity
st: ND
postalCode: 58XXX
c: US
dept: techanalyst

bathory 11-09-2007 04:01 AM

Quote:

objectClasserson
I guess this is a typo, else you have to fix it (objectClass: person)
Also along with the error (17) you should get a note about what attribute has the problem.

psan 11-11-2007 03:03 AM

Quote:

Originally Posted by bathory (Post 2953045)
I guess this is a typo, else you have to fix it (objectClass: person)
Also along with the error (17) you should get a note about what attribute has the problem.


You need an empty line before each line starting with "dn:"
LDIF separates entries by blank lines.
dn: denotes the distinguished name of an entry and
needs to be the first line of each entry.
example :

##line blank
dn: dc=csc,dc=ku,dc=ac,dc=th
dc: csc
description: LDAP Admin
objectClass: dcObject
objectClass: organizationalUnit
ou: rootobject
##line blank
dn: ou=People, dc=csc,dc=ku,dc=ac,dc=th
ou: People
description: Users of CSC
objectClass: organizationalUnit


All times are GMT -5. The time now is 03:51 AM.