LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 11-08-2007, 11:36 AM   #1
gergaholic
LQ Newbie
 
Registered: Nov 2007
Posts: 11

Rep: Reputation: 0
Lightbulb 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
 
Old 11-09-2007, 04:01 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,895

Rep: Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322
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.
 
Old 11-11-2007, 03:03 AM   #3
psan
LQ Newbie
 
Registered: Sep 2004
Posts: 1

Rep: Reputation: 0
Quote:
Originally Posted by bathory View Post
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenLDAP ldapadd command error. vedang Linux - Server 1 09-08-2007 05:36 AM
Attribute error in python code digitalbrutus Programming 1 08-15-2006 03:39 PM
Problem with extern struct object, in header file. Undefined type. RHLinuxGUY Programming 7 07-24-2006 12:01 AM
Cause of "Attribute /sys/devices/pci [...] type does not exist"? demoman Linux - Hardware 0 04-16-2006 02:10 AM
redhat-config-samba attribute error rwhitworth Linux - Networking 1 06-19-2003 12:55 PM


All times are GMT -5. The time now is 01:24 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration