[Date Prev][Date Next] [Chronological] [Thread] [Top]

(ITS#7528) 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:Saint Kitts and Nevis Saint Lucia,Saint Vincent and The
Grenadines:Saint Vincent and The Grenadines,Samoa:Samoa,San Marino:San
Marino,Sao Tome and Principe:Sao Tome and Principe,Saudi Arabia:Saudi
Arabia,Senegal:Senegal,Seychelles:Seychelles,Sierra Leone:Sierra
Leone,Singapore:Singapore,Slovakia:Slovakia,Slovenia:Slovenia,Solomon
Islands:Solomon Islands,Somalia:Somalia,South Africa:South
Africa,Spain:Spain,Sri Lanka:Sri Lanka,St. Helena:St. Helena,St. Pierre and
Miquelon:St. Pierre and Miquelon,Sudan:Sudan
multiline: f
multivalue: f
property: t
readable: t
showinusage: t
sync: f
timestampproperty: whenchanged
type: list
isregenrequired: f
isregencomposite: f
hasscope: f
allowedonlicenseexpiry: f
--------------------------------------------------------------------------------