<bean id="serviceRegistryDao" class="org.jasig.cas.services.InMemoryServiceRegistryDaoImpl">
瀵艱嚧鏃犳硶榪斿洖principal鐨勫叾浠栧睘鎬у埌瀹㈡埛绔紝鍏跺疄璞¤繖鏍烽厤緗嵆鍙細<bean id="attributeRepository"
class="org.jasig.services.persondir.support.ldap.LdapPersonAttributeDao">
<property name="contextSource" ref="contextSource" />
<property name="baseDN" value="ou=users,${ldap.basePath}" />
<property name="requireAllQueryAttributes" value="true" />
<!--
Attribute mapping beetween principal (key) and LDAP (value) names
used to perform the LDAP search. By default, multiple search criteria
are ANDed together. Set the queryType property to change to OR.
-->
<property name="queryAttributeMapping">
<map>
<entry key="username" value="uid" />
</map>
</property>
<property name="resultAttributeMapping">
<map>
<!-- Mapping beetween LDAP entry attributes (key) and Principal's (value) -->
<entry key="name" value="userName"/>
<entry key="uid" value="userId"/>
</map>
</property>
</bean>
<bean id="serviceRegistryDao" class="org.jasig.cas.services.InMemoryServiceRegistryDaoImpl">
<property name="registeredServices">
<list>
<bean class="org.jasig.cas.services.RegisteredServiceImpl">
<property name="id" value="0" />
<property name="name" value="HTTP" />
<property name="description" value="Only Allows HTTP Urls" />
<property name="serviceId" value="http://**" />
<property name="evaluationOrder" value="10000001" />
<property name="ignoreAttributes" value="true" />
</bean>
………………
</list>
</property>
</bean>
濡備笂鎵紺猴紝鍏朵腑娉ㄥ唽鐨勬湇鍔?span style="color: #0000ff; font-size: 13px; background-color: #eeeeee; ">registeredServices
榛樿鏄笉鍏佽榪斿洖鍏朵粬灞炴у埌瀹㈡埛绔殑錛侊紒錛侊紒錛侊紝鐪熺殑鏄緢鍧戠埞鍟婏紝涓嶈繃錛岄厤緗竴涓媔gnoreAttributes鍗沖彲錛屼篃鍙互鎸囧畾allowedAttributes
濡備笅錛?br /><property name="allowedAttributes">
<list>
<value><!-- your attribute key --></value>
</list>
</property>

]]>