| | |
| | | public void addEntry(Entry entry, AddOperation addOperation) |
| | | throws DirectoryException |
| | | { |
| | | LocalizableMessage message = |
| | | ERR_ROOTDSE_ADD_NOT_SUPPORTED.get(String.valueOf(entry.getName())); |
| | | throw new DirectoryException(ResultCode.UNWILLING_TO_PERFORM, message); |
| | | throw new DirectoryException(ResultCode.UNWILLING_TO_PERFORM, |
| | | ERR_ROOTDSE_ADD_NOT_SUPPORTED.get(entry.getName())); |
| | | } |
| | | |
| | | |
| | |
| | | public void deleteEntry(DN entryDN, DeleteOperation deleteOperation) |
| | | throws DirectoryException |
| | | { |
| | | LocalizableMessage message = |
| | | ERR_ROOTDSE_DELETE_NOT_SUPPORTED.get(String.valueOf(entryDN)); |
| | | throw new DirectoryException(ResultCode.UNWILLING_TO_PERFORM, message); |
| | | throw new DirectoryException(ResultCode.UNWILLING_TO_PERFORM, |
| | | ERR_ROOTDSE_DELETE_NOT_SUPPORTED.get(entryDN)); |
| | | } |
| | | |
| | | |
| | |
| | | public void replaceEntry(Entry oldEntry, Entry newEntry, |
| | | ModifyOperation modifyOperation) throws DirectoryException |
| | | { |
| | | LocalizableMessage message = ERR_ROOTDSE_MODIFY_NOT_SUPPORTED.get( |
| | | String.valueOf(newEntry.getName()), String.valueOf(configEntryDN)); |
| | | throw new DirectoryException(ResultCode.UNWILLING_TO_PERFORM, message); |
| | | throw new DirectoryException(ResultCode.UNWILLING_TO_PERFORM, |
| | | ERR_ROOTDSE_MODIFY_NOT_SUPPORTED.get(newEntry.getName(), configEntryDN)); |
| | | } |
| | | |
| | | |
| | |
| | | ModifyDNOperation modifyDNOperation) |
| | | throws DirectoryException |
| | | { |
| | | LocalizableMessage message = |
| | | ERR_ROOTDSE_MODIFY_DN_NOT_SUPPORTED.get(String.valueOf(currentDN)); |
| | | throw new DirectoryException(ResultCode.UNWILLING_TO_PERFORM, message); |
| | | throw new DirectoryException(ResultCode.UNWILLING_TO_PERFORM, |
| | | ERR_ROOTDSE_MODIFY_DN_NOT_SUPPORTED.get(currentDN)); |
| | | } |
| | | |
| | | |
| | |
| | | if (! baseDN.isRootDN()) |
| | | { |
| | | LocalizableMessage message = ERR_ROOTDSE_INVALID_SEARCH_BASE. |
| | | get(searchOperation.getConnectionID(), |
| | | searchOperation.getOperationID(), String.valueOf(baseDN)); |
| | | get(searchOperation.getConnectionID(), searchOperation.getOperationID(), baseDN); |
| | | throw new DirectoryException(ResultCode.UNWILLING_TO_PERFORM, message); |
| | | } |
| | | |
| | |
| | | LocalizableMessage message = ERR_ROOTDSE_INVALID_SEARCH_SCOPE. |
| | | get(searchOperation.getConnectionID(), |
| | | searchOperation.getOperationID(), |
| | | String.valueOf(searchOperation.getScope())); |
| | | searchOperation.getScope()); |
| | | throw new DirectoryException(ResultCode.PROTOCOL_ERROR, message); |
| | | } |
| | | } |
| | |
| | | Backend backend = DirectoryServer.getBackend(baseDN); |
| | | if (backend == null) |
| | | { |
| | | LocalizableMessage message = WARN_ROOTDSE_NO_BACKEND_FOR_SUBORDINATE_BASE.get( |
| | | String.valueOf(baseDN)); |
| | | unacceptableReasons.add(message); |
| | | unacceptableReasons.add(WARN_ROOTDSE_NO_BACKEND_FOR_SUBORDINATE_BASE.get(baseDN)); |
| | | configIsAcceptable = false; |
| | | } |
| | | } |
| | |
| | | { |
| | | logger.traceException(e); |
| | | |
| | | LocalizableMessage message = WARN_ROOTDSE_SUBORDINATE_BASE_EXCEPTION.get( |
| | | stackTraceToSingleLineString(e)); |
| | | unacceptableReasons.add(message); |
| | | unacceptableReasons.add(WARN_ROOTDSE_SUBORDINATE_BASE_EXCEPTION.get( |
| | | stackTraceToSingleLineString(e))); |
| | | configIsAcceptable = false; |
| | | } |
| | | |
| | |
| | | if (backend == null) |
| | | { |
| | | // This is not fine. We can't use a suffix that doesn't exist. |
| | | LocalizableMessage message = WARN_ROOTDSE_NO_BACKEND_FOR_SUBORDINATE_BASE.get( |
| | | String.valueOf(baseDN)); |
| | | messages.add(message); |
| | | messages.add(WARN_ROOTDSE_NO_BACKEND_FOR_SUBORDINATE_BASE.get(baseDN)); |
| | | |
| | | if (resultCode == ResultCode.SUCCESS) |
| | | { |
| | |
| | | logger.traceException(e); |
| | | |
| | | messages.add(ERR_CONFIG_BACKEND_ERROR_INTERACTING_WITH_BACKEND_ENTRY.get( |
| | | String.valueOf(configEntryDN), |
| | | stackTraceToSingleLineString(e))); |
| | | configEntryDN, stackTraceToSingleLineString(e))); |
| | | resultCode = DirectoryServer.getServerErrorResultCode(); |
| | | } |
| | | |
| | |
| | | if (showAllAttributes != newShowAll) |
| | | { |
| | | showAllAttributes = newShowAll; |
| | | LocalizableMessage message = INFO_ROOTDSE_UPDATED_SHOW_ALL_ATTRS.get( |
| | | ATTR_ROOTDSE_SHOW_ALL_ATTRIBUTES, |
| | | String.valueOf(showAllAttributes)); |
| | | messages.add(message); |
| | | messages.add(INFO_ROOTDSE_UPDATED_SHOW_ALL_ATTRS.get( |
| | | ATTR_ROOTDSE_SHOW_ALL_ATTRIBUTES, showAllAttributes)); |
| | | } |
| | | |
| | | |
| | | userDefinedAttributes = userAttrs; |
| | | LocalizableMessage message = INFO_ROOTDSE_USING_NEW_USER_ATTRS.get(); |
| | | messages.add(message); |
| | | messages.add(INFO_ROOTDSE_USING_NEW_USER_ATTRS.get()); |
| | | } |
| | | |
| | | |