Class LdapEnhancedMap
java.lang.Object
com.netscape.cms.publish.mappers.LdapEnhancedMap
- All Implemented Interfaces:
IExtendedPluginInfo,ILdapMapper,ILdapPlugin
Maps a request to an entry in the LDAP server.
Takes a dnPattern to form the baseDN from the
request attributes and certificate subject name.
Does a base search for the entry in the directory
to publish the cert or crl. The restriction of
this mapper is that the ldap dn components must
be part of certificate subject name or request
attributes or constant. The difference of this
mapper and LdapSimpleMap is that if the ldap
entry is not found, it has the option to create
the ldap entry given the dn and attributes
formulated.
- Version:
- $Revision$, $Date$
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final intstatic final Stringstatic org.slf4j.Loggerprotected String[]protected IConfigStoreprotected booleanprotected Stringprotected String[]protected String[]protected String[]protected MapDNPatternprotected com.netscape.cms.publish.mappers.AVAPattern[]protected String[]protected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final String/////////////////////////protected static final StringFields inherited from interface com.netscape.certsrv.base.IExtendedPluginInfo
HELP_TEXT, HELP_TOKEN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionimplementation for extended ILdapPlugin interface methodReturns the initial default parameters.Returns the description of this mapper.String[]getExtendedPluginInfo(Locale locale) //////////////////////////////Returns implementation name.Returns the current instance parameters.voidinit(IConfigStore config) for initializing from config store.protected voidcommon initialization routine.Maps an X500 subject name to an LDAP entry.Maps an X500 subject name to an LDAP entry.
-
Field Details
-
logger
public static org.slf4j.Logger logger -
mPattern
-
mReqAttrs
-
mCertAttrs
-
mLdapValues
-
PROP_DNPATTERN
-
PROP_CREATE
- See Also:
-
PROP_OBJCLASS
- See Also:
-
PROP_ATTRNUM
- See Also:
-
PROP_ATTR_NAME
- See Also:
-
PROP_ATTR_PATTERN
- See Also:
-
mDnPattern
-
mCreateEntry
protected boolean mCreateEntry -
mLdapNames
-
mLdapPatterns
-
DEFAULT_DNPATTERN
- See Also:
-
DEFAULT_ATTRNUM
protected static final int DEFAULT_ATTRNUM- See Also:
-
mConfig
-
mPatterns
protected com.netscape.cms.publish.mappers.AVAPattern[] mPatterns
-
-
Constructor Details
-
LdapEnhancedMap
public LdapEnhancedMap()Default constructor, initialization must follow.
-
-
Method Details
-
init
common initialization routine.- Throws:
EBaseException
-
init
for initializing from config store. implementation for extended ILdapPlugin interface method- Specified by:
initin interfaceILdapPlugin- Parameters:
config- the configuration store to initialize from.- Throws:
EBaseException- initialization failed.
-
getConfigStore
implementation for extended ILdapPlugin interface method- Specified by:
getConfigStorein interfaceILdapPlugin
-
getImplName
Description copied from interface:ILdapMapperReturns implementation name.- Specified by:
getImplNamein interfaceILdapMapper
-
getDescription
Description copied from interface:ILdapMapperReturns the description of this mapper.- Specified by:
getDescriptionin interfaceILdapMapper
-
getDefaultParams
Description copied from interface:ILdapMapperReturns the initial default parameters.- Specified by:
getDefaultParamsin interfaceILdapMapper
-
getInstanceParams
Description copied from interface:ILdapMapperReturns the current instance parameters.- Specified by:
getInstanceParamsin interfaceILdapMapper
-
map
Maps an X500 subject name to an LDAP entry. Uses DN pattern to form a DN for an LDAP base search.- Specified by:
mapin interfaceILdapMapper- Parameters:
conn- the LDAP connection.obj- the object to map.- Returns:
- dn indicates whether a mapping was successful
- Throws:
ELdapException- if any LDAP exceptions occurred.
-
map
public String map(netscape.ldap.LDAPConnection conn, IRequest req, Object obj) throws ELdapException Maps an X500 subject name to an LDAP entry. Uses DN pattern to form a DN for an LDAP base search.- Specified by:
mapin interfaceILdapMapper- Parameters:
conn- the LDAP connection.req- the request to map.obj- the object to map.- Returns:
- dn indicates whether a mapping was successful
- Throws:
ELdapException- if any LDAP exceptions occurred.
-
getExtendedPluginInfo
//////////////////////////////- Specified by:
getExtendedPluginInfoin interfaceIExtendedPluginInfo
-