LDAPに接続するには誰でもCAS 4.2.x deployerConfigContext.xmlを共有できますか?CAS 4.2.x LDAPに接続するdeployerConfigContext.xml
私は、以下の設定を使用しますが、そのLDAP認証に失敗しています:
0123このディレクトリには接続できません。ERROR [org.ldaptive.pool.BlockingConnectionPool] - < [[email protected] ::名前=検索プロシエータ= null、パッシベータ= null、プロシベータ= null、プロシエータ= null、プロパティ= null、パッシベータ= validator = [[email protected] :: searchRequest = [[email protected] :: baseDn =、searchFilter = [[email protected] :: filter =(objectClass = *)、パラメータ= {}]、returnAttributes = [1.1]、searchScope = OBJECT、t nullの場合、searchReferenceHandlers = null、controls = null、referralHandler = null、intermediateResponseHandlers = null]]; pruneStrategy = [org。コンプライアンスを設定するには、次のように入力します。[email protected] :: prunePeriod = 300、idleTime = 600]、connectOnCreate = true、connectionFactory = [[email protected] :: [email protected]、config = [[email protected] :: ldapUrl = xxxx、connectTimeout = 3000、responseTimeout = -1、sslConfig = null、useSSL = false、useStartTLS = false、connectionInitializer = [[email protected] :: bindDn = cn = 0、activeCount = 0] ldapに接続できません>
<?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"
xmlns:ldaptive="http://www.ldaptive.org/schema/spring-ext"
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.xsd">
<bean id="ldapAuthenticationHandler"
class="org.jasig.cas.authentication.LdapAuthenticationHandler"
p:principalIdAttribute="sAMAccountName"
c:authenticator-ref="authenticator">
<property name="principalAttributeMap">
<map>
<entry key="displayName" value="simpleName" />
<entry key="mail" value="email" />
<entry key="memberOf" value="membership" />
</map>
</property>
</bean>
<ldaptive:ad-authenticator id="authenticator"
ldapUrl="xxxx"
userFilter="uid={user}"
bindDn="cn=Directory Manager,dc=uss,dc=net"
bindCredential="xxxx"
allowMultipleDns="false"
connectTimeout="3000"
validateOnCheckOut="false"
failFastInitialize="true"
blockWaitTime="3000"
idleTime="600"
baseDn="ou=Users,ou=Unsorted,ou=xxxx,dc=uss,dc=net"
maxPoolSize="10"
minPoolSize="1"
validatePeriodically="true"
validatePeriod="300"
prunePeriod="300"
useSSL="false"
subtreeSearch="true"
useStartTLS="false" />
<util:map id="authenticationHandlersResolvers">
<entry key-ref="proxyAuthenticationHandler" value-ref="proxyPrincipalResolver" />
<entry key-ref="ldapAuthenticationHandler" value-ref="primaryPrincipalResolver" />
<!-- <entry key-ref="primaryAuthenticationHandler" value-ref="primaryPrincipalResolver" /> -->
</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>
<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>
<alias name="defaultPrincipalFactory" alias="principalFactory" />
<alias name="defaultAuthenticationTransactionManager" alias="authenticationTransactionManager" />
<alias name="defaultPrincipalElectionStrategy" alias="principalElectionStrategy" />
<alias name="tgcCipherExecutor" alias="defaultCookieCipherExecutor" />
</beans>
また変更されたuserFilter = "sAMAccountName = {user}" – Ani