OpenLDAP
Up to top level
Build   Contrib   Development   Documentation   Historical   Incoming   Software Bugs   Software Enhancements   Web  

Logged in as guest

Viewing Incoming/7528
Full headers

From: omkar@mithi.com
Subject: ldapadd not working while adding attribute having long list of values
Compose comment
Download message
State:
0 replies:
1 followups: 1

Major security issue: yes  no

Notes:

Notification:


Date: Fri, 15 Feb 2013 14:36:48 +0000
From: omkar@mithi.com
To: openldap-its@OpenLDAP.org
Subject: ldapadd not working while adding attribute having long list of values
Full_Name: Omkar Phadke
Version: 2.4.30
OS: Red Hat Enterprise Linux Server release 6.0 (Santiago)
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (115.111.211.142)


I am trying to add bellow ldif file.

Command 
ldapadd -d -1 -cxv -D "cn=Manager,dc=mithibo" -f /root/TestSmall.ldif -w
"$LDAP_ROOT_PASSWD" > /root/log_failed.txt 2>&1

I get error
ldap_add: Undefined attribute type (17)
additional info: ame: attribute type undefined

ldapadd exe is not present separately, in folder /usr/local/openldap/bin/
ldapadd is linked with ldapmodify

Actually homecountry attribute's value is list of countries and it is very long
bellow i give ldif file.

but if i extract ldapmodify file from older version 2.4.23 and copied to
/usr/local/openldap/bin/ then above command executes successfully.

----------------------------------------------------------------------------------
Ldif file /root/TestSmall.ldif contents --
dn: cn=homecountry,ou=boproperty,ou=user,cn=template.int,ou=domains,cn=enterprise,o=enterprise,
dc=mithibo
cn:homecountry
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: mithiBO
admincompulsary: f
admineditable: t
allowblankvalue: t
compulsary: f
default: India
record: user
description: Home country
dircontainer: cd
editable: t
encodedecode: f
inheritsvalue: f
label: Home country
ldapstorage: homecountry
list: Afghanistan:Afghanistan,Albania:Albania,Algeria:Algeria,American:American,Samoa:Samoa,Andorra:Andorra,Angola:Angola,Anguilla:Anguilla,Antarctica:Antarctica,Antigua
and Barbuda:Antigua and
Barbuda,Argentina:Argentina,Armenia:Armenia,Aruba:Aruba,Australia:Australia,Austria:Austria,Azerbaijan:Azerbaijan,Bahamas:Bahamas,Bahrain:Bahrain,Bangladesh:Bangladesh,Barbados:Barbados,Belarus:Belarus,Belgium:Belgium,Belize:Belize,Benin:Benin,Bermuda:Bermuda,Bhutan:Bhutan,Bolivia:Bolivia,Bosnia
and Herzegovina:Bosnia and Herzegovina,Botswana:Botswana,Bouvet Island:Bouvet
Island,Brazil:Brazil,British Indian Ocean Territory:British Indian Ocean
Territory,British Virgin Islands:British Virgin
Islands,Brunei:Brunei,Bulgaria:Bulgaria,Burkina Faso:Burkina
Faso,Burundi:Burundi,Cambodia:Cambodia,Cameroon:Cameroon,CanadaCape:CanadaCape,Verde:Verde,Cayman
Islands:Cayman Islands,Central:Central,African:African,Republic:Republic,Chad:Chad,Chile:Chile,China:China,Christmas
Island:Christmas Island,Cocos Islands:Cocos
Islands,Colombia:Colombia,Comoros:Comoros,Congo:Congo,Cook Islands:Cook
Islands,Costa Rica:Costa Rica,Croatia:Croatia,Cuba:Cuba,Cyprus:Cyprus,Czech
Republic:Czech Republic,Denmark:Denmark,Djibouti:Djibouti,Dominica:Dominica,Dominican
Republic:Dominican Republic,East Timor:East Timor,Ecuador:Ecuador,Egypt:Egypt,El
Salvador:El Salvador,Equatorial Guinea:Equatorial
Guinea,Eritrea:Eritrea,Estonia:Estonia,Ethiopia:Ethiopia,Falkland
Islands:Falkland Islands,Faroe Islands:Faroe
Islands,Fiji:Fiji,Finland:Finland,France:France,French Guiana:French
Guiana,French Polynesia:French Polynesia,French Southern Territories:French
Southern Territories,Gabon:Gabon,Gambia:Gambia,Georgia:Georgia,Germany:Germany,Ghana:Ghana,Gibraltar:Gibraltar,Greece:Greece,Greenland:Greenland,Grenada:Grenada,Guadeloupe:Guadeloupe,Guam:Guam,Guatemala:Guatemala,Guinea:Guinea,Guinea-Bissau:Guinea-Bissau,Guyana:Guyana,Haiti:Haiti,Heard
and McDonald Islands:Heard and McDonald Islands,Honduras:Honduras,Hong Kong:Hong
Kong,Hungary Iceland:Hungary
Iceland,India:India,Indonesia:Indonesia,Iran:Iran,Iraq:Iraq,Ireland:Ireland,Israel:Israel,Italy:Italy,Ivory
Coast:Ivory Coast,Jamaica:Jamaica,Japan:Japan,Jordan:Jordan,Kazakhstan:Kazakhstan,Kenya:Kenya,Kiribati
North:Kiribati North,Korea South:Korea
South,Korea:Korea,Kuwait:Kuwait,Kyrgyzstan:Kyrgyzstan,Laos:Laos,Latvia:Latvia,Lesotho:Lesotho,Liberia:Liberia,Libya:Libya,Liechtenstein:Liechtenstein,Lithuania:Lithuania,Luxembourg:Luxembourg,Macau:Macau,Macedonia:Macedonia,Madagascar:Madagascar,Malawi:Malawi,Malaysia:Malaysia,Maldives:Maldives,Mali:Mali,Malta:Malta,Marshall
Islands:Marshall Islands,Martinique:Martinique,Mauritania:Mauritania,Mauritius:Mauritius,Mayotte:Mayotte,Mexico:Mexico,Micronesia:Micronesia,Moldova:Moldova,Monaco:Monaco,Mongolia:Mongolia,Montserrat:Montserrat,Morocco:Morocco,Mozambique:Mozambique,Myanmar:Myanmar,Namibia:Namibia,Nauru:Nauru,Nepal:Nepal,Netherlands:Netherlands,Netherlands
Antilles:Netherlands Antilles,New Caledonia:New Caledonia,New Zealand:New
Zealand,Nicaragua:Nicaragua,Niger:Niger,Nigeria:Nigeria,Niue:Niue,Norfolk
Island:Norfolk Island,Northern Mariana Islands:Northern Mariana
Islands,Norway:Norway,Oman:Oman,Pakistan:Pakistan,Palau:Palau,Panama:Panama,Papua
New Guinea:Papua New
Guinea,Paraguay:Paraguay,Peru:Peru,Philippines:Philippines,Pitcairn
Island:Pitcairn Island,Poland:Poland,Portugal:Portugal,Puerto Rico:Puerto
Rico,Qatar:Qatar,Reunion:Reunion,Romania:Romania,Russia:Russia,RwandaS. Georgia
and S. Sandwich Isls.:RwandaS. Georgia and S. Sandwich Isls.,Saint Kitts and
Nevis Saint Lucia

Message of length 5799 truncated

Followup 1

Download message
Date: Thu, 14 Mar 2013 07:34:19 -0700
From: Howard Chu <hyc@symas.com>
To: omkar@mithi.com, openldap-its@openldap.org
Subject: Re: (ITS#7528) ldapadd not working while adding attribute having
 long list of values
omkar@mithi.com wrote:
> Full_Name: Omkar Phadke
> Version: 2.4.30
> OS: Red Hat Enterprise Linux Server release 6.0 (Santiago)
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (115.111.211.142)
>
>
> I am trying to add bellow ldif file.

Read the ldif(5) manpage. You appear to have line breaks in the data which 
breaks the format.

-- 
   -- Howard Chu
   CTO, Symas Corp.           http://www.symas.com
   Director, Highland Sun     http://highlandsun.com/hyc/
   Chief Architect, OpenLDAP  http://www.openldap.org/project/


Up to top level
Build   Contrib   Development   Documentation   Historical   Incoming   Software Bugs   Software Enhancements   Web  

Logged in as guest


The OpenLDAP Issue Tracking System uses a hacked version of JitterBug

______________
© Copyright 2013, OpenLDAP Foundation, info@OpenLDAP.org