494495496497498499500501502503504
try { connImpl = realm.getConnection(); ctx = (DirContext)connImpl.getConnection(); ctx.unbind(dn); } catch (NameNotFoundException e) { throw new OperationFailedException("Tribe '"+name+"' not found!"); } catch (Exception e) {
721722723724725726727728729730731
} if (exists) { boolean result = true; try { resources.unbind(path); } catch (NamingException e) { result = false; } if (result) { resp.setStatus(HttpServletResponse.SC_NO_CONTENT);
20172018201920202021202220232024202520262027
boolean collection = (object instanceof DirContext); if (!collection) { try { resources.unbind(path); } catch (NamingException e) { resp.sendError(WebdavStatus.SC_INTERNAL_SERVER_ERROR); return false; } } else {
20282029203020312032203320342035203620372038
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)); }
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)
521522523524525526527528529530531
LDAPUser ldapUser = (LDAPUser) user; String name = ldapUser.getDN(); DirContext ctx = bindAsAdmin(); ctx.unbind(name); } catch (NamingException ex) { throw new DataBackendException("NamingException caught", ex); }
385386387388389390391392393394395
{ // expected behaviour } // Remove entry (use old rdn) ctx.unbind( oldRdn ); } /** * Test for DIRSERVER-1086.
971972973974975976977978979980981
{ // expected behaviour } // Remove entry (use new rdn) ctx.unbind( newRdn ); } /** * Test for DIRSERVER-1162 and DIRSERVER-1085.