I have added a new object class in my LDAP schema with the name “smapsinfo”. I want to now add this object class to all the users of type “DominoPerson”. To do that I exported all the user entries in the LDIF format using the ldapsearch command. Thereafter I modified the user entries to include the name of the new object class and added it back to the database using the ldapadd command. As an example here is what an entry in the add.ldif file looks like
dn: cn=amisra,o=infosys
changetype: modify
add: objectclass
objectclass: smapsinfo
I used the ldapadd command as shown below
ldapadd -h myhost -p 389 -D “cn=admin” -w “firewall” -f add.ldif
The addition is successful. However when I do a ldapsearch on that user, here is what I get
dn: cn=amisra,o=infosys
mail: amisra@infosys.com
objectclass: dominoPerson
objectclass: inetOrgPerson
objectclass: organizationalPerson
objectclass: person
objectclass: top
objectclass: sma ============> Truncated
sn: amisra
As you can see above, the name of the objectclass has been truncated. Any pointers as to why this is happening and how to overcome it?