729730731732733734735736737738739
} if (exists) { boolean result = true; try { resources.unbind(path); } catch (NamingException e) { result = false; } if (result) { resp.setStatus(HttpServletResponse.SC_NO_CONTENT);
988989990991992993994995996997998
+ 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)
10321033103410351036103710381039104010411042
+ 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)
524525526527528529530531532533534
LDAPUser ldapUser = (LDAPUser) user; String name = ldapUser.getDN(); DirContext ctx = bindAsAdmin(); ctx.unbind(name); } catch (NamingException ex) { throw new DataBackendException("NamingException caught", ex); }
18061807180818091810181118121813181418151816
boolean collection = (object instanceof DirContext); if (!collection) { try { resources.unbind(path); } catch (NamingException e) { resp.sendError(WebdavStatus.SC_INTERNAL_SERVER_ERROR); return false; } } else {
18171818181918201821182218231824182518261827
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)); }
696697698699700701702703704705706
17991800180118021803180418051806180718081809
18101811181218131814181518161817181818191820