741742743744745746747748749750751
} if (exists) { boolean result = true; try { resources.unbind(path); } catch (NamingException e) { result = false; } if (result) { resp.setStatus(HttpServletResponse.SC_NO_CONTENT);
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 {
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)); }
521522523524525526527528529530531
LDAPUser ldapUser = (LDAPUser) user; String name = ldapUser.getDN(); DirContext ctx = bindAsAdmin(); ctx.unbind(name); } catch (NamingException ex) { throw new DataBackendException("NamingException caught", ex); }
964965966967968969970971972973974
+ 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)
10081009101010111012101310141015101610171018
+ 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)
10521053105410551056105710581059106010611062
+ 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)
17621763176417651766176717681769177017711772
17731774177517761777177817791780178117821783
696697698699700701702703704705706