Tuesday, May 28, 2013

ldap_add: Invalid DN syntax

ldap_add: Invalid DN syntax :  error while trying to add/create new user (ldiff)  in Oracle Internet Directory (OID).

LDIFF File:

version: 1
DN: cn=udstest1,cn=users,dc=us,DC=ORACLE,DC=COM
objectclass: orclBeehive
objectclass: top
objectclass: person
objectclass: orcluserv2
objectclass: orclcorpperson
objectclass: organizationalperson
objectclass: inetorgperson
cn: udstest1
givenname: udstest1
mail: udstest1@us.oracle.com
orclbeehiveuserstatus: false
orclisenabled: ENABLED
sn: udstest1
uid: udstest1@us.oracle.com
manager: udstest2600
userpassword: Welcome1


Invalid DN error occurs while trying to add above ldiff in OID.

Solution is manager field should be in absolute path  

cn=udstest2600,cn=users,dc=us,dc=oracle,dc=com

Modified Ldiff
version: 1
DN: cn=udstest1,cn=users,dc=us,DC=ORACLE,DC=COM
objectclass: orclBeehive
objectclass: top
objectclass: person
objectclass: orcluserv2
objectclass: orclcorpperson
objectclass: organizationalperson
objectclass: inetorgperson
cn: udstest1
givenname: udstest1
mail: udstest1@us.oracle.com
orclbeehiveuserstatus: false
orclisenabled: ENABLED
sn: udstest1
uid: udstest1@us.oracle.com
manager: udstest2600
userpassword: Welcome1

No comments:

Popular Posts