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

Problem with ldapmodify command



Hi,

 

I am not able to update the data by using ldapmodify command. I am giving a ldif file to ldapmodify which is having update statements but its giving error message as

ldapmodify: invalid format (line 5) entry: "mdn=9874938748,dc=onmobile,dc=com".

 

Command:

ldapmodify -D "cn=Manager,dc=onmobile,dc=com" -w secret -x -f insert2.ldif

Output:

ldapmodify: invalid format (line 5) entry: "mdn=9874938748,dc=onmobile,dc=com".

 

Sample Data in insert2.ldif

 

# Subscriber Data number 10000410

dn:mdn=9874942807,dc=onmobile,dc=com

changetype: modify

replace: model

model:Vodafone225

-

replace: gprsEnabled

gprsEnabled:false

 

# Subscriber Data number 10000411

dn:mdn=9874942816,dc=onmobile,dc=com

changetype: modify

replace: model

model:Nokia7310Classic

-

replace: gprsEnabled

gprsEnabled:false

 

# Subscriber Data number 10000412

dn:mdn=9874942825,dc=onmobile,dc=com

changetype: modify

replace: model

model:Nokia1208

-

replace: gprsEnabled

gprsEnabled:false

 

# Subscriber Data number 10000413

dn:mdn=9874942826,dc=onmobile,dc=com

changetype: modify

replace: model

model:Nokia1100

-

replace: gprsEnabled

gprsEnabled:false

 

# Subscriber Data number 10000414

dn:mdn=9874942833,dc=onmobile,dc=com

changetype: modify

replace: model

model:Nokia5200b

-

replace: gprsEnabled

gprsEnabled:false

 

# Subscriber Data number 10000415

dn:mdn=9874942855,dc=onmobile,dc=com

changetype: modify

replace: model

model:Nokia1600

-

replace: gprsEnabled

gprsEnabled:false

 

# Subscriber Data number 10000416

dn:mdn=9874942861,dc=onmobile,dc=com

changetype: modify

replace: model

model:SamsungS3500

-

replace: gprsEnabled

gprsEnabled:false

 

Please help me to resolve this issue.

 

 

Best Regards,

Kiran Sama

9663371026