public class StoreUtils extends Object
Constructor and Description |
---|
StoreUtils() |
Modifier and Type | Method and Description |
---|---|
static org.apache.directory.shared.ldap.entry.ServerEntry |
findPrincipalEntry(CoreSession session,
org.apache.directory.shared.ldap.name.DN searchBaseDn,
String principal)
Finds the ServerEntry associated with the Kerberos principal name.
|
static org.apache.directory.shared.ldap.entry.ServerEntry |
toServerEntry(CoreSession session,
org.apache.directory.shared.ldap.name.DN dn,
PrincipalStoreEntry principalEntry)
Creates a ServerEntry for a PrincipalStoreEntry, doing what a state
factory does but for ServerEntry instead of Attributes.
|
public static org.apache.directory.shared.ldap.entry.ServerEntry toServerEntry(CoreSession session, org.apache.directory.shared.ldap.name.DN dn, PrincipalStoreEntry principalEntry) throws 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 ServerEntryException
- if there are problems accessing registriespublic static org.apache.directory.shared.ldap.entry.ServerEntry findPrincipalEntry(CoreSession session, org.apache.directory.shared.ldap.name.DN searchBaseDn, String principal) throws Exception
session
- the session to use for the searchsearchBaseDn
- the base to use while searchingprincipal
- the name of the principal to search forException
- if there are problems while searching the directoryCopyright © 2003-2013 Apache Software Foundation. All Rights Reserved.