public class LDAPManager extends GeneratedLDAPManager
Extension.RestrictedLanguagesProvider, Extension.RightsProviderManager.GenericManagerSingletonCreator, Manager.ManagerSingletonCreatorDEFAULT_INITIAL_ATTRIBUTES| Constructor and Description |
|---|
LDAPManager() |
createConfigurationMedia, createConfigurationMedia, createLDAPConfigProxyItem, createLDAPConfigProxyItem, createLDIFGroupImportCronJob, createLDIFGroupImportCronJob, createLDIFGroupImportJob, createLDIFGroupImportJob, createLDIFImportCronJob, createLDIFImportCronJob, createLDIFImportJob, createLDIFMedia, createLDIFMedia, getCN, getCN, getDefaultAttributeModes, getDN, getDN, getDomain, getDomain, getLdaplogin, getLdaplogin, getLdapsearchbase, getLdapsearchbase, getName, isLdapaccount, isLdapaccount, isLdapaccountAsPrimitive, isLdapaccountAsPrimitive, setCN, setCN, setDN, setDN, setDomain, setDomain, setLdapaccount, setLdapaccount, setLdapaccount, setLdapaccount, setLdaplogin, setLdaplogin, setLdapsearchbase, setLdapsearchbasecheckBeforeItemRemoval, createProjectData, createSampleData, getCreatorDescription, getCreatorName, getCreatorParameterDefault, getCreatorParameterNames, getCreatorParameterPossibleValues, getRemote, notifyInitializationEnd, notifyInitializationStart, notifyItemRemoval, onFirstSessionCreation, writeReplaceafterItemCreation, beforeItemCreation, destroy, getAllValuesSessionContext, getAttribute, getAttributeMap, getFirstItemByAttribute, getFirstItemByAttribute, getRemoteManagerClass, getSession, getSingletonManagerInstance, getTenant, getTransientObject, getTransientObjectMap, init, setAttribute, setTenant, setTransientObject, unwrap, unwrap, wrappublic static LDAPManager getInstance()
public final LDAPConfigProxyItem getConfig()
protected final Collection getPlatformUserLogins()
public Collection<LDAPGenericObject> browseLDAP(String searchbase, String filter, String[] attrs) throws NamingException
NamingExceptionpublic Collection<LDAPGenericObject> browseLDAP(String searchbase, String filter, String[] attrs, int limit) throws NamingException
NamingExceptionpublic Collection<LDAPGenericObject> browseLDAP(LDAPConfigProxyItem config, String searchbase, String personObjectClass, String searchfield, String searchOperation, String searchvalue, String[] attrs) throws NamingException
browseLDAP("dc=hybris,dc=de", "inetOrgPerson", "cn", "=", "*", new String[] {"cn", "sn", "modifyTimestamp", "creationTimestamp", "displayName"})
will perform the search (&(objectclass=inetOrgPerson)(cn=*))searchbase - the domain name (relative to initial context in ldap) to seach from.personObjectClass - searchfield - searchOperation - searchvalue - attrs - an array of strings containing the names of attributes to search. (null = all, empty array = none)NamingExceptionpublic boolean checkPassword(User user, char[] plainPassword)
This process passes the following steps:
1. Loading the configured LDAP searchbase (User attribute). -- This value is mandatory! 2. Loading the configured
LDAP account (User attribute). -- This value is optional! Note: If this value is checkPassword(final String searchbase, final String login, final char[] plainPassword ), with the
submitted/acquired values
user - the hybris (hmc) userplainPassword - the ldap passwordpublic boolean checkPassword(String searchbase, String login, char[] plainPassword) throws NamingException
NamingExceptionpublic void createEssentialData(Map _values, JspContext jspc) throws Exception
createEssentialData in class ExtensionException@Deprecated public LDIFImportCronJob createDefaultLDIFImportCronJob(boolean enableCodeExecution)
public LDIFImportCronJob createDefaultLDIFImportCronJob()
public LDIFGroupImportCronJob createDefaultLDIFGroupImportCronJob()
@Deprecated public LDIFImportCronJob createDefaultLDIFImportCronJob(LDIFImportJob ldifImportJob)
public LDIFImportCronJob createDefaultLDIFImportCronJob(LDIFImportJob ldifImportJob, boolean enableCodeExecution)
public LDIFGroupImportCronJob createDefaultLDIFGroupImportCronJob(LDIFGroupImportJob ldifImportJob, boolean enableCodeExecution)
public LDIFImportJob getOrCreateLDIFImportJob()
public LDIFGroupImportJob getOrCreateLDIFGroupImportJob()
public LDIFImportJob createLDIFImportJob(Map attributeValues)
createLDIFImportJob in class GeneratedLDAPManagerpublic boolean isCreatorDisabled()
DataCreator interface. This default implementation returns
false.isCreatorDisabled in class ExtensionfalseCopyright © 2017 SAP SE. All Rights Reserved.