|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ldap.server.AbstractContextPartition
org.apache.ldap.server.SystemPartition
A very special ContextPartition used to store system information such as users, the system catalog and other administrative information. This partition is fixed at the ou=system context.
Field Summary | |
static java.lang.String |
ADMIN_PRINCIPAL
the default user principal or DN |
static byte[] |
ADMIN_PW
the initial admin passwd set on startup |
static java.lang.String |
ADMIN_UID
the admin super user uid |
static java.lang.String |
GROUPS_BASE_DN
the base dn under which all groups reside |
static java.lang.String |
SUFFIX
System backend suffix constant. |
static java.lang.String |
USERS_BASE_DN
the base dn under which all users reside |
Fields inherited from class org.apache.ldap.server.AbstractContextPartition |
ALIAS_OID, EXISTANCE_OID, HIERARCHY_OID, NDN_OID, ONEALIAS_OID, SUBALIAS_OID, UPDN_OID |
Constructor Summary | |
SystemPartition(Database db,
SearchEngine searchEngine,
org.apache.ldap.common.schema.AttributeType[] indexAttributes)
Creates the system partition which is used to store various peices of information critical for server operation. |
Method Summary | |
static javax.naming.Name |
getAdminDn()
Gets the DN for the admin user. |
static javax.naming.Name |
getGroupsBaseDn()
Gets the DN for the base entry under which all groups reside. |
javax.naming.Name |
getSuffix(boolean normalized)
Gets the distinguished/absolute name of the suffix for all entries stored within this BackingStore. |
static javax.naming.Name |
getUsersBaseDn()
Gets the DN for the base entry under which all non-admin users reside. |
boolean |
isSuffix(javax.naming.Name dn)
Checks to see if name is a context suffix. |
Methods inherited from class org.apache.ldap.server.AbstractContextPartition |
add, close, delete, getDb, getEngine, hasEntry, inspect, isClosed, list, lookup, lookup, modify, modify, modifyRn, move, move, search, sync |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String ADMIN_PRINCIPAL
public static final java.lang.String ADMIN_UID
public static final byte[] ADMIN_PW
public static final java.lang.String USERS_BASE_DN
public static final java.lang.String GROUPS_BASE_DN
public static final java.lang.String SUFFIX
Constructor Detail |
public SystemPartition(Database db, SearchEngine searchEngine, org.apache.ldap.common.schema.AttributeType[] indexAttributes) throws javax.naming.NamingException
db
- the database used for this partitionsearchEngine
- the search engine to conduct searches withindexAttributes
- the attributeTypes of indicies to build which must
also contain all system index attribute types - if not the system will
not operate correctly.Method Detail |
public static final javax.naming.Name getUsersBaseDn()
USERS_BASE_DN
public static final javax.naming.Name getGroupsBaseDn()
GROUPS_BASE_DN
public static final javax.naming.Name getAdminDn()
ADMIN_PRINCIPAL
public final javax.naming.Name getSuffix(boolean normalized)
ContextPartition
normalized
- boolean value used to control the normalization of the
returned Name. If true the normalized Name is returned, otherwise the
original user provided Name without normalization is returned.
ContextPartition.getSuffix(boolean)
public final boolean isSuffix(javax.naming.Name dn)
BackingStore
dn
- the normalized distinguished/absolute name of the context
BackingStore.isSuffix(javax.naming.Name)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |