“ldap_modify: additional info: Attribute dn is not supported in schema.” while importing an ldif file to OID

Today I faced an error while importing the ldif file to Oracle Internet directory. Though the solution is totally unrelated to the error, one will get disguised easily that there is some issue with the ldif file data.

All I am doing is creating 2 new attributes and 1 object class in OID using ldapmodify

The error is :

[oracle@oid_hostname bin]$ ./ldapmodify -h oid_hostname -p 389 -D “cn=orcladmin” -w admin123 -f LPM_OAM.ldif
modifying entry cn=subschemasubentry
ldap_modify: Undefined attribute type
ldap_modify: additional info: Attribute dn is not supported in schema.

I had gone through the ldif file and it just adds two attributes and compared the syntax with by doing an ldif export for existing object class and attributes.

The solution was simple that I transferred the ldif file from Windows to Unix box in binary mode. So the solution is to copy the file in ASCII mode or you can just run dos2unix command as shown below.

[oracle@oid_hostname bin]$ dos2unix LPM_OAM.ldif
dos2unix: converting file LPM_OAM.ldif to UNIX format …
[oracle@oid_hostname bin]$

Then when I ran the ldapmodify, it went smoothly.

About the Author Mahendra

I am engulfed in Oracle Identity & Access Management domain. I have expertise on providing the optimized solutions for user provisioning, web access management, Single Sign-On and federation capabilities etc., I am also well versed with complex integrations within Identity Management and other product domains. I have expertise on building demos and implementation experience on products Oracle Access Manager, Oracle Adaptive Access Manager, Oracle Entitlement Server, Oracle Virtual Directory, Oracle Internet Directory etc., Look @ my blog: http://talkidentity.blogspot.com

Leave a Comment:

10 comments
Add Your Reply