By: Simon Devlin user 26 Apr 2017 at 8:23 a.m. CDT

2 Responses
Simon Devlin gravatar
Does anyone have a working example to delete a user from the embedded OpenDJ instance - I have many to do, so the UI isn't really viable. ``` -bash-4.2# /opt/opendj/bin/ldapdelete -h localhost -x --useSSL -p 1636 -X -D "cn=directory manager" -w MYPASSWORD -f del.ldif Processing DELETE request for dn: inum=@!829E.1AB9.00E4.52F8!0001!B71B.1FB7!0000!2F23.6301,ou=people,o=@!829E.1AB9.00E4.52F8!0001!B71B.1FB7,o=gluu DELETE operation failed Result Code: 34 (Invalid DN Syntax) Additional Information: The provided value "dn: inum=@!829E.1AB9.00E4.52F8!0001!B71B.1FB7!0000!2F23.6301,ou=people,o=@!829E.1AB9.00E4.52F8!0001!B71B.1FB7,o=gluu" could not be parsed as a valid distinguished name because character ':' at position 2 is not allowed in an attribute name ``` where del.ldif contains the following; ``` dn: inum=@!829E.1AB9.00E4.52F8!0001!B71B.1FB7!0000!2F23.6301,ou=people,o=@!829E.1AB9.00E4.52F8!0001!B71B.1FB7,o=gluu changetype: delete ``` Any suggestions folks? Thanks

By Mohib Zico staff 26 Apr 2017 at 8:40 a.m. CDT

Mohib Zico gravatar
Syntax is wrong. 'ChangeType' cannot be 'delete'. You can use 'ldapdelete' command to delete this DN.

By Simon Devlin user 26 Apr 2017 at 8:52 a.m. CDT

Simon Devlin gravatar
Thank you! Stupid mistake. This format was for ldapmodify command.