public final class StoreUtils
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static org.slf4j.Logger |
LOG
Loggers for this class
|
private static org.slf4j.Logger |
LOG_KRB |
| Modifier | Constructor and Description |
|---|---|
private |
StoreUtils() |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.directory.api.ldap.model.entry.Entry |
findPrincipalEntry(CoreSession session,
org.apache.directory.api.ldap.model.name.Dn searchBaseDn,
java.lang.String principal)
Finds the Entry associated with the Kerberos principal name.
|
private static org.apache.directory.api.ldap.model.filter.ExprNode |
getFilter(org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager,
java.lang.String principal)
Constructs a filter expression tree for the filter used to search the
directory.
|
static org.apache.directory.api.ldap.model.entry.Entry |
toServerEntry(CoreSession session,
org.apache.directory.api.ldap.model.name.Dn dn,
PrincipalStoreEntry principalEntry)
Creates a Entry for a PrincipalStoreEntry, doing what a state
factory does but for Entry instead of Attributes.
|
private static final org.slf4j.Logger LOG
private static final org.slf4j.Logger LOG_KRB
public static org.apache.directory.api.ldap.model.entry.Entry toServerEntry(CoreSession session, org.apache.directory.api.ldap.model.name.Dn dn, PrincipalStoreEntry principalEntry) throws java.lang.Exception
session - the session to use to access the directory's registriesdn - the distinguished name of the principal to beprincipalEntry - the principal entry to convert into a Entryjava.lang.Exception - if there are problems accessing registriesprivate static org.apache.directory.api.ldap.model.filter.ExprNode getFilter(org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager,
java.lang.String principal)
throws java.lang.Exception
schemaManager - The server schemaManager to use for attribute lookupsprincipal - the principal to use for building the filterjava.lang.Exception - if there are problems while looking up attributespublic static org.apache.directory.api.ldap.model.entry.Entry findPrincipalEntry(CoreSession session, org.apache.directory.api.ldap.model.name.Dn searchBaseDn, java.lang.String principal) throws java.lang.Exception
session - the session to use for the searchsearchBaseDn - the base to use while searchingprincipal - the name of the principal to search forjava.lang.Exception - if there are problems while searching the directory