Why destroySubcontext() gives error code 32 - No Such Object
Hi,
I use Java code to delete a user from SUN ONE directory, but keep getting error code 32 - No Such Object
[LDAP: error code 32 - No Such Object]
javax.naming.NameNotFoundException: [LDAP: error code 32 - No Such Object]; remaining name ''
The code is simple:
.......
DirContext ctx = this.getDirContext();
ctx.destroySubcontext("uid="+username+","+SEARCHBASE_DN);
.......
the "uid="+username+","+SEARCHBASE_DN returns as uid=SKing,ou=People,dc=uchicago,dc=edu and I have enough privilege as cn=Directory Manager.
What went wrong here? Your help will be apprecaited,

