LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-28-2013, 01:00 AM   #1
yashfire007
Member
 
Registered: Jan 2013
Distribution: CentOS, RHEL 6.4
Posts: 79

Rep: Reputation: Disabled
Unhappy ldap_add undefined attribute type (17) additional info attribute type undefined


Hai to all,

While am trying tp add in ldap database i am getting the following error.

[root@Testing openldap]# ldapadd -x -D "cn=Manager,dc=testdomain3,dc=com" -f yuvraj.ldif -w secret
adding new entry "dc=testdomain3,dc=com"
ldap_add: Undefined attribute type (17)
additional info: employeeNumber: attribute type undefined


[root@Testing openldap]# cat yuvraj.ldif
#Entry 1
dn: dc=testdomain3,dc=com
description: LDAPDB
objectClass: top
employeeNumber: 1000515
nationality: India
fn: yuvraj
sn: singh
sex: Male
age: 31
o: Cricket
ou: Batsman
displayName: singhy
uidNumber: 5155555
cn: yuvraj singh
userPassword: s


Please suggest.
Distro : CentOS 5.5







Thanks in advance..

Last edited by yashfire007; 05-28-2013 at 02:16 AM.
 
Old 05-28-2013, 09:34 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,736

Rep: Reputation: 7973Reputation: 7973Reputation: 7973Reputation: 7973Reputation: 7973Reputation: 7973Reputation: 7973Reputation: 7973Reputation: 7973Reputation: 7973Reputation: 7973
Quote:
Originally Posted by yashfire007 View Post
Hai to all,
While am trying tp add in ldap database i am getting the following error.

[root@Testing openldap]# ldapadd -x -D "cn=Manager,dc=testdomain3,dc=com" -f yuvraj.ldif -w secret
adding new entry "dc=testdomain3,dc=com"
ldap_add: Undefined attribute type (17)
additional info: employeeNumber: attribute type undefined

[root@Testing openldap]# cat yuvraj.ldif
#Entry 1
dn: dc=testdomain3,dc=com
description: LDAPDB
objectClass: top
employeeNumber: 1000515
nationality: India
fn: yuvraj
sn: singh
sex: Male
age: 31
o: Cricket
ou: Batsman
displayName: singhy
uidNumber: 5155555
cn: yuvraj singh
userPassword: s

Please suggest.
Distro : CentOS 5.5
Again, as with several of your other threads, reading the documentation would have solved your problem, as would a quick Google search. You need to try these things first, before posting questions. As clearly stated in the OpenLDAP docs, you need an empty line before each line starting with "dn:"
LDIF separates entries by blank lines.

Also, you rarely, if ever, have posted a follow-up or even said thanks for anyone helping you.
 
Old 05-30-2013, 04:18 AM   #3
yashfire007
Member
 
Registered: Jan 2013
Distribution: CentOS, RHEL 6.4
Posts: 79

Original Poster
Rep: Reputation: Disabled
Thumbs down

Quote:
Originally Posted by TB0ne View Post
. As clearly stated in the OpenLDAP docs, you need an empty line before each line starting with "dn:"
LDIF separates entries by blank lines.

I have given an empty line between two dn entry. After that also the error came.
Anyway i have googled and solved the issue. Thanks for your reply too.
 
Old 05-30-2013, 07:50 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,736

Rep: Reputation: 7973Reputation: 7973Reputation: 7973Reputation: 7973Reputation: 7973Reputation: 7973Reputation: 7973Reputation: 7973Reputation: 7973Reputation: 7973Reputation: 7973
Quote:
Originally Posted by yashfire007 View Post
I have given an empty line between two dn entry. After that also the error came.
Anyway i have googled and solved the issue. Thanks for your reply too.
Really?? So since you have solved the issue, why don't you post what you did to solve it? You came here for help, as others will also, so posting the solution would be a good thing.
 
Old 06-07-2013, 05:30 AM   #5
yashfire007
Member
 
Registered: Jan 2013
Distribution: CentOS, RHEL 6.4
Posts: 79

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
Really?? So since you have solved the issue, why don't you post what you did to solve it? You came here for help, as others will also, so posting the solution would be a good thing.

Nothing else i just added the objectClass which includes the attribute of employeeNumber.
 
Old 03-19-2015, 10:29 PM   #6
huuphang
LQ Newbie
 
Registered: Nov 2014
Location: VN
Distribution: fedora
Posts: 4

Rep: Reputation: Disabled
Smile

Quote:
Originally Posted by yashfire007 View Post
Hai to all,

While am trying tp add in ldap database i am getting the following error.

[root@Testing openldap]# ldapadd -x -D "cn=Manager,dc=testdomain3,dc=com" -f yuvraj.ldif -w secret
adding new entry "dc=testdomain3,dc=com"
ldap_add: Undefined attribute type (17)
additional info: employeeNumber: attribute type undefined


[root@Testing openldap]# cat yuvraj.ldif
#Entry 1
dn: dc=testdomain3,dc=com
description: LDAPDB
objectClass: top
employeeNumber: 1000515
nationality: India
fn: yuvraj
sn: singh
sex: Male
age: 31
o: Cricket
ou: Batsman
displayName: singhy
uidNumber: 5155555
cn: yuvraj singh
userPassword: s


Please suggest.
Distro : CentOS 5.5







Thanks in advance..
you can use tool automation to create .ldif file, more read to fix : ldap server configuration in centos 6 step by step
 
Old 03-20-2015, 09:12 AM   #7
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,736

Rep: Reputation: 7973Reputation: 7973Reputation: 7973Reputation: 7973Reputation: 7973Reputation: 7973Reputation: 7973Reputation: 7973Reputation: 7973Reputation: 7973Reputation: 7973
Quote:
Originally Posted by huuphang View Post
you can use tool automation to create .ldif file, more read to fix : ldap server configuration in centos 6 step by step
Yes, but you don't say anything about which "tool automation" to use...and posted a link to configure an LDAP server, which the OP already had done. Also, this thread was not only already resolved, with the solution posted, but had been closed for two years at this point. Please see the LQ Rules about reopening old threads and/or posting without adding any new information.
 
  


Reply



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
samba/ldap issue sambasid attribute type undefined butch601 Linux - Newbie 1 05-12-2012 10:28 PM
PhP & Ldap : Undefined attribute type jonaskellens Linux - Newbie 3 03-24-2011 04:28 AM
ldap_add: Undefined attribute type (17) additional info: ojectclass: attribute type vinaytp Linux - Newbie 2 05-28-2009 04:57 AM
samba4: LDAP memberOf: attribute type undefined touzeaud Linux - Server 10 04-13-2009 07:03 PM
OpenLDAP error ldapadd: Undefined attribute type (17) gergaholic Linux - Server 2 11-11-2007 03:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:25 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration