2016-09-30 14 views
0

私はCASを実装するのが初めてで、LDAPを使用するためにいくつかの問題が発生しています。現在、エラーを返しています要素のプレフィックス "ldaptive"はバインドされていません

要素 "ldaptive:ad-authenticator"のプレフィックス "ldaptive"はバインドされていません。開始時の

私のコードに見られるように、私は修正案として提案されたものを実装したと思いますが、これは問題を解決しませんでした。次のように

deployerConfigContext.xmlためのコードは次のとおりです。ldaptive接頭辞が来る

<?xml version="1.0" encoding="UTF-8"?> 
<beans xmlns="http://www.springframework.org/schema/beans" 
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
     xmlns:context="http://www.springframework.org/schema/context" 
     xmlns:p="http://www.springframework.org/schema/p" 
     xmlns:c="http://www.springframework.org/schema/c" 
     xmlns:aop="http://www.springframework.org/schema/aop" 
     xmlns:tx="http://www.springframework.org/schema/tx" 
     xmlns:util="http://www.springframework.org/schema/util" 
     xmlns:sec="http://www.springframework.org/schema/security" 
     xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd 
     http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd 
     http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd 
     http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd 
     http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security.xsd 
     http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd 
     http://www.ldaptive.org/schema/spring-ext 
     http://www.ldaptive.org/schema/spring-ext-1.1.0.xsd 
     http://www.ldaptive.org/schema/spring-ext.xsd"> 


    <util:map id="authenticationHandlersResolvers"> 
     <entry key-ref="proxyAuthenticationHandler" value-ref="proxyPrincipalResolver" /> 
     <entry key-ref="primaryAuthenticationHandler" value-ref="primaryPrincipalResolver" /> 
     <entry key-ref="ldapAuthenticationHandler" value="#{null}" /> 
    </util:map> 


    <util:list id="authenticationMetadataPopulators"> 
     <ref bean="successfulHandlerMetaDataPopulator" /> 
     <ref bean="rememberMeAuthenticationMetaDataPopulator" /> 
    </util:list> 


    <bean id="attributeRepository" class="org.jasig.services.persondir.support.NamedStubPersonAttributeDao" 
      p:backingMap-ref="attrRepoBackingMap" /> 


    <alias name="acceptUsersAuthenticationHandler" alias="primaryAuthenticationHandler" /> 
    <alias name="personDirectoryPrincipalResolver" alias="primaryPrincipalResolver" /> 


    <util:map id="attrRepoBackingMap"> 
     <entry key="uid" value="uid" /> 
     <entry key="eduPersonAffiliation" value="eduPersonAffiliation" /> 
     <entry key="groupMembership" value="groupMembership" /> 
     <entry> 
      <key><value>memberOf</value></key> 
      <list> 
       <value>faculty</value> 
       <value>staff</value> 
       <value>org</value> 
      </list> 
     </entry> 
    </util:map> 


    <bean id="ldapAuthenticationHandler" 
     class="org.jasig.cas.authentication.LdapAuthenticationHandler" 
     p:principalIdAttribute="sAMAccountName" 
     c:authenticator-ref="authenticator"> 
     <property name="principalAttributeMap"> 
      <map> 
       <entry key="displayName" value="name" /> 
       <entry key="mail" value="email" /> 
       <entry key="memberOf" value="membership" /> 
      </map> 
     </property> 
    </bean> 


    <alias name="serviceThemeResolver" alias="themeResolver" /> 


    <alias name="jsonServiceRegistryDao" alias="serviceRegistryDao" /> 


    <alias name="defaultTicketRegistry" alias="ticketRegistry" /> 


    <alias name="ticketGrantingTicketExpirationPolicy" alias="grantingTicketExpirationPolicy" /> 
    <alias name="multiTimeUseOrTimeoutExpirationPolicy" alias="serviceTicketExpirationPolicy" /> 


    <alias name="anyAuthenticationPolicy" alias="authenticationPolicy" /> 
    <alias name="acceptAnyAuthenticationPolicyFactory" alias="authenticationPolicyFactory" /> 


    <bean id="auditTrailManager" 
      class="org.jasig.inspektr.audit.support.Slf4jLoggingAuditTrailManager" 
      p:entrySeparator="${cas.audit.singleline.separator:|}" 
      p:useSingleLine="${cas.audit.singleline:false}"/> 


    <alias name="neverThrottle" alias="authenticationThrottle" /> 


    <util:list id="monitorsList"> 
     <ref bean="memoryMonitor" /> 
     <ref bean="sessionMonitor" /> 
    </util:list> 


    <ldaptive:ad-authenticator id="authenticator" 
     ldapUrl="${ldap.url}" 
     userFilter="${ldap.authn.searchFilter}" 
     bindDn="${ldap.managerDn}" 
     bindCredential="${ldap.managerPassword}" 
     allowMultipleDns="${ldap.allowMultipleDns:false}" 
     connectTimeout="${ldap.connectTimeout}" 
     validateOnCheckOut="${ldap.pool.validateOnCheckout}" 
     failFastInitialize="true" 
     blockWaitTime="${ldap.pool.blockWaitTime}" 
     idleTime="${ldap.pool.idleTime}" 
     baseDn="${ldap.baseDn}" 
     maxPoolSize="${ldap.pool.maxSize}" 
     minPoolSize="${ldap.pool.minSize}" 
     validatePeriodically="${ldap.pool.validatePeriodically}" 
     validatePeriod="${ldap.pool.validatePeriod}" 
     prunePeriod="${ldap.pool.prunePeriod}" 
     useSSL="${ldap.use.ssl:false}" 
     subtreeSearch="${ldap.subtree.search:true}" 
     useStartTLS="${ldap.useStartTLS}" /> 


    <alias name="defaultPrincipalFactory" alias="principalFactory" /> 
    <alias name="defaultAuthenticationTransactionManager" alias="authenticationTransactionManager" /> 
    <alias name="defaultPrincipalElectionStrategy" alias="principalElectionStrategy" /> 
    <alias name="tgcCipherExecutor" alias="defaultCookieCipherExecutor" /> 
</beans> 

ページが長く、それをホストするために、私は、私はからこれを引っ張っすべき場所を見つけることができなかったようです。

ご協力いただければ幸いです。

答えて

1

あなたのエラーを排除するために、あなたのbeansルート要素に

xmlns:ldaptive="http://www.ldaptive.org/schema/spring-ext" 

を追加します。

注意また、その@xsi:schemaLocationは、名前空間のXSDにペアを取る必要があり、あなたがあなたのエントリの奇数を持っているように見えます。広告:私は `一致するワイルドカードは厳しいですが、何の宣言が要素のために見つけることができない「ldaptiveの新しいエラーを取得していますけれども、これは働いていた

http://www.ldaptive.org/schema/spring-ext 
http://www.ldaptive.org/schema/spring-ext-1.2.0.xsd 
+0

adaptive:名前空間接頭辞に関連付けられた名前空間のために、このペアを使用します-authenticator'' –

+0

新しい質問をしてください。[mcve]を必ず含めてください。ありがとう。 – kjhughes

+0

@JustinFoley「一致するワイルドカードが厳しい」エラーの原因を突き止めましたか?私はこの同じエラーに遭遇しています。 – acvcu

関連する問題