| | |
| | | * |
| | | * |
| | | * Copyright 2006-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011-2012 ForgeRock AS |
| | | * Portions Copyright 2011-2014 ForgeRock AS |
| | | */ |
| | | package org.opends.server.backends; |
| | | |
| | |
| | | |
| | | // Create the set of base DNs that we will handle. In this case, it's just |
| | | // the root DSE. |
| | | rootDSEDN = DN.nullDN(); |
| | | rootDSEDN = DN.rootDN(); |
| | | this.baseDNs = new DN[] { rootDSEDN }; |
| | | |
| | | |
| | |
| | | public long numSubordinates(DN entryDN, boolean subtree) |
| | | throws DirectoryException |
| | | { |
| | | if (entryDN == null || ! entryDN.isNullDN()) |
| | | if (entryDN == null || ! entryDN.isRootDN()) |
| | | { |
| | | return -1; |
| | | } |
| | |
| | | throws DirectoryException |
| | | { |
| | | // If the requested entry was the root DSE, then create and return it. |
| | | if ((entryDN == null) || entryDN.isNullDN()) |
| | | if ((entryDN == null) || entryDN.isRootDN()) |
| | | { |
| | | return getRootDSE(); |
| | | } |
| | |
| | | throws DirectoryException |
| | | { |
| | | // If the specified DN was the null DN, then it exists. |
| | | if (entryDN.isNullDN()) |
| | | if (entryDN.isRootDN()) |
| | | { |
| | | return true; |
| | | } |
| | |
| | | public void search(SearchOperation searchOperation) |
| | | throws DirectoryException, CanceledOperationException { |
| | | DN baseDN = searchOperation.getBaseDN(); |
| | | if (! baseDN.isNullDN()) |
| | | if (! baseDN.isRootDN()) |
| | | { |
| | | Message message = ERR_ROOTDSE_INVALID_SEARCH_BASE. |
| | | get(searchOperation.getConnectionID(), |