クラス KerberosLdapContextSource

java.lang.ObjectSE
org.springframework.ldap.core.support.AbstractContextSource
org.springframework.ldap.core.support.LdapContextSource
org.springframework.security.ldap.DefaultSpringSecurityContextSource
org.springframework.security.kerberos.client.ldap.KerberosLdapContextSource
実装されているすべてのインターフェース:
org.springframework.beans.factory.InitializingBeanorg.springframework.ldap.core.ContextSourceorg.springframework.ldap.core.support.BaseLdapPathContextSourceorg.springframework.ldap.core.support.BaseLdapPathSource

public class KerberosLdapContextSource extends DefaultSpringSecurityContextSource implements org.springframework.beans.factory.InitializingBean
Kerberos を使用して LDAP サーバーで認証する LdapContextSource の実装。使用例:
  <bean id="authorizationContextSource" class="org.springframework.security.kerberos.ldap.KerberosLdapContextSource">
      <constructor-arg value="${authentication.ldap.ldapUrl}" />
      <property name="referral" value="ignore" />

       <property name="loginConfig">
           <bean class="org.springframework.security.kerberos.client.config.SunJaasKrb5LoginConfig">
               <property name="servicePrincipal" value="${authentication.ldap.servicePrincipal}" />
               <property name="useTicketCache" value="true" />
               <property name="isInitiator" value="true" />
               <property name="debug" value="false" />
           </bean>
       </property>
   </bean>

   <sec:ldap-user-service id="ldapUserService" server-ref="authorizationContextSource" user-search-filter="(| (userPrincipalName={0}) (sAMAccountName={0}))"
       group-search-filter="(member={0})" group-role-attribute="cn" role-prefix="none" />
 
関連事項:
  • フィールドのサマリー

    クラス org.springframework.security.ldap.DefaultSpringSecurityContextSource から継承されたフィールド

    logger

    クラス org.springframework.ldap.core.support.AbstractContextSource から継承されたフィールド

    password, SUN_LDAP_POOLING_FLAG, userDn
  • コンストラクターの概要

    コンストラクター
    コンストラクター
    説明
    新しい Kerberos LDAP コンテキストソースをインスタンス化します。
    新しい Kerberos LDAP コンテキストソースをインスタンス化します。
  • メソッドのサマリー

    修飾子と型
    メソッド
    説明
    void
    protected DirContextSE
    void
    LoginContext から serviceSubject を取得するためのログイン構成

    クラス org.springframework.ldap.core.support.AbstractContextSource から継承されたメソッド

    assembleProviderUrlString, createContext, getAnonymousEnv, getAuthenticatedEnv, getAuthenticationSource, getBaseLdapName, getBaseLdapPath, getBaseLdapPathAsString, getContext, getContextFactory, getDirObjectFactory, getPassword, getReadOnlyContext, getReadWriteContext, getUrls, getUserDn, isAnonymousReadOnly, isPooled, setAnonymousReadOnly, setAuthenticationSource, setAuthenticationStrategy, setBase, setBaseEnvironmentProperties, setCacheEnvironmentProperties, setContextFactory, setDirObjectFactory, setPassword, setPooled, setReferral, setupAuthenticatedEnvironment, setUrl, setUrls, setUserDn

    クラス java.lang.ObjectSE から継承されたメソッド

    clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSE
  • コンストラクターの詳細

    • KerberosLdapContextSource

      public KerberosLdapContextSource(StringSE url)
      新しい Kerberos LDAP コンテキストソースをインスタンス化します。
      パラメーター:
      url - URL
    • KerberosLdapContextSource

      public KerberosLdapContextSource(ListSE<StringSE> urls, StringSE baseDn)
      新しい Kerberos LDAP コンテキストソースをインスタンス化します。
      パラメーター:
      urls - URL
      baseDn - ベース DN
  • メソッドの詳細

    • afterPropertiesSet

      public void afterPropertiesSet()
      次で指定:
      インターフェース org.springframework.beans.factory.InitializingBeanafterPropertiesSet 
      オーバーライド:
      クラス org.springframework.ldap.core.support.AbstractContextSourceafterPropertiesSet 
    • getDirContextInstance

      protected DirContextSE getDirContextInstance(HashtableSE environment) throws NamingExceptionSE
      オーバーライド:
      クラス org.springframework.ldap.core.support.LdapContextSourcegetDirContextInstance 
      例外:
      NamingExceptionSE
    • setLoginConfig

      public void setLoginConfig(ConfigurationSE loginConfig)
      LoginContext から serviceSubject を取得するためのログイン構成
      パラメーター:
      loginConfig - ログイン設定