You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by Yong Hu <hu...@yahoo.com.cn> on 2005/03/30 08:30:37 UTC

can i delete users stored in LDAP using webdavResource.deleteMethod() ?

I use LDAP to store all users, and config admin@mycompany.com domain.xml as the root user with all privilege on all nodes. When system starts up, admin@mycompany.com will be writen to uri and permission tables.
Now, for some reason, I want to delete this user through slide api(exactly, i want to delete the record from uri and permission tables). But when i call webdavResource.deleteMethod("/users/admin@mycompany.com"), ClassCastExeption is thrown from org.apache.slide.macro.MacroImpl.deleteObject(), and the concrete code is 
                            contentHelper.remove
                                (token, currentObject.getUri(),
                                     (NodeRevisionNumber)revisionNumberEnum.nextElement());
I don't know why the exception is thrown. Can I delete a user stored in LDAP using webdavResource.deleteMethod()?  
 
Best Regards
Yong



---------------------------------
Do You Yahoo!?
150万曲MP3疯狂搜,带您闯入音乐殿堂
美女明星应有尽有,搜遍美图、艳图和酷图
1G就是1000兆,雅虎电邮自助扩容!