727728729730731732733734735736737
} if (exists) { boolean result = true; try { resources.unbind(path); } catch (NamingException e) { result = false; } if (result) { resp.setStatus(HttpServletResponse.SC_NO_CONTENT);
729730731732733734735736737738739
18001801180218031804180518061807180818091810
boolean collection = (object instanceof DirContext); if (!collection) { try { resources.unbind(path); } catch (NamingException e) { resp.sendError(WebdavStatus.SC_INTERNAL_SERVER_ERROR); return false; } } else {
18111812181318141815181618171818181918201821
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)); }
670671672673674675676677678679680
10021003100410051006100710081009101010111012
+ 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)
10461047104810491050105110521053105410551056
+ 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)
10901091109210931094109510961097109810991100
+ 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)
502503504505506507508509510511512
LDAPUser ldapUser = (LDAPUser) user; String name = ldapUser.getDN(); DirContext ctx = bindAsAdmin(); ctx.unbind(name); } catch (NamingException ex) { throw new DataBackendException("NamingException caught", ex); }