<bean id="serviceRegistryDao" class="org.jasig.cas.services.InMemoryServiceRegistryDaoImpl">
坯D‡´æ— 法˜q”回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>
如上所½Cºï¼Œå…¶ä¸æ³¨å†Œçš„æœåŠ?span style="color: #0000ff; font-size: 13px; background-color: #eeeeee; ">registeredServices
默认是ä¸å…许˜q”回其他属性到客户端的åQï¼åQï¼åQ,真的是很å‘爹啊,ä¸è¿‡åQŒé…¾|®ä¸€ä¸‹ignoreAttributeså›_¯åQŒä¹Ÿå¯ä»¥æŒ‡å®šallowedAttributes
如下åQ?br /><property name="allowedAttributes">
<list>
<value><!-- your attribute key --></value>
</list>
</property>

]]>