18121813181418151816181718181819182018211822
Hashtable errorList = new Hashtable(); deleteCollection(req, resources, path, errorList); try { resources.unbind(path); } catch (NamingException e) { errorList.put(path, new Integer (WebdavStatus.SC_INTERNAL_SERVER_ERROR)); }
679680681682683684685686687688689
} if (exists) { boolean result = true; try { resources.unbind(path); } catch (NamingException e) { result = false; } if (result) { resp.setStatus(HttpServletResponse.SC_NO_CONTENT);
670671672673674675676677678679680
18011802180318041805180618071808180918101811
boolean collection = (object instanceof DirContext); if (!collection) { try { resources.unbind(path); } catch (NamingException e) { resp.sendError(WebdavStatus.SC_INTERNAL_SERVER_ERROR); return false; } } else {
967968969970971972973974975976977
+ LDAPSecurityConstants.getBaseSearch(); DirContext ctx = LDAPUserManager.bindAsAdmin(); // Remove the group from LDAP. ctx.unbind(dn); // Remove the group from system-wide cache. getAllGroups().remove(group); } catch (NamingException ex)
10111012101310141015101610171018101910201021
+ LDAPSecurityConstants.getBaseSearch(); DirContext ctx = LDAPUserManager.bindAsAdmin(); // Remove the role from LDAP. ctx.unbind(dn); // Remove the role from system-wide cache. getAllRoles().remove(role); } catch (NamingException ex)
10551056105710581059106010611062106310641065
+ LDAPSecurityConstants.getBaseSearch(); DirContext ctx = LDAPUserManager.bindAsAdmin(); // Remove the permission in LDAP. ctx.unbind(dn); // Remove the permission from system-wide cache. getAllPermissions().remove(permission); } catch (NamingException ex)
465466467468469470471472473474475
LDAPUser ldapUser = (LDAPUser) user; String name = ldapUser.getDN(); DirContext ctx = bindAsAdmin(); ctx.unbind(name); } catch (NamingException ex) { throw new DataBackendException("NamingException caught", ex); }
17601761176217631764176517661767176817691770