1 Reply Latest reply on Apr 14, 2018 1:02 PM by handat

    ldapdelete Result Code:  34 (Invalid DN Syntax)

    happy10319

      Hi,

      I want to delete all entries in OUD Ldap. Then I ran:

      [oracle@oamim2 bin]$ ./ldapdelete -h oamim2.localdomain -p 1389 -D "cn=Directory Manager" -w *** -f oiam.ldif

      Processing DELETE request for dn: ou=People,dc=oiam,dc=com

      DELETE operation failed

      Result Code:  34 (Invalid DN Syntax)

      Additional Information:  The provided value "dn: ou=People,dc=oiam,dc=com" could not be parsed as a valid distinguished name because character ':' at position 2 is not allowed in an attribute name

       

      Here is oiam.ldif:

       

      dn: ou=People,dc=oiam,dc=com

      changetype: add

      ou: People

      objectClass: organizationalunit

      objectClass: top

       

      dn: ou=Groups,dc=oiam,dc=com

      changetype: add

      ou: Groups

      objectClass: organizationalunit

      objectClass: top

       

      dn: ou=Reserve,dc=oiam,dc=com

      changetype: add

      ou: Reserve

      objectClass: organizationalunit

      objectClass: top

       

      dn: ou=SystemIds,dc=oiam,dc=com

      changetype: add

      ou: SystemIds

      objectClass: organizationalunit

      objectClass: top

       

      The same ldif file was used by ldapmodify but it did not show any syntax error.

      Thanks for help.