<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    貝貝爸爸的程序人生

    關注Seam、BPM
    posts - 23, comments - 10, trackbacks - 0, articles - 32
      BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理
    nnd,今天搞了快2個小時,總是無法解決ldap支持的其他屬性返回問題,因為之前配置的是3.3.5版本,現在最新的版本是3.4.11,原來的配置竟然無法使用了,原來是因為增加服務:
    <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>
    如上所示,其中注冊的服務registeredServices
    默認是不允許返回其他屬性到客戶端的!!!!!,真的是很坑爹啊,不過,配置一下ignoreAttributes即可,也可以指定allowedAttributes
    如下:
    <property name="allowedAttributes">
        <list>
                <value><!-- your attribute key --></value>
        </list>
    </property>

    只有注冊用戶登錄后才能發表評論。


    網站導航:
     
    主站蜘蛛池模板: 亚洲一区中文字幕在线电影网| 伊人久久免费视频| 亚洲午夜激情视频| 99精品视频在线观看免费专区| 日韩视频在线免费观看| 国产片免费福利片永久| 国产午夜亚洲精品不卡 | 成年18网站免费视频网站| 国产成人亚洲午夜电影| 精品亚洲一区二区| 免费无码又爽又刺激毛片| 一级做a爰全过程免费视频毛片| 四虎1515hm免费国产| 毛片免费在线观看| 亚洲成在人线在线播放无码| 亚洲中文字幕无码不卡电影 | 免费福利在线视频| 亚洲精品国产国语| 亚洲视频免费在线播放| 特级毛片A级毛片100免费播放| 性色av无码免费一区二区三区| 亚洲理论精品午夜电影| 亚洲国产专区一区| 五月亭亭免费高清在线| 成av免费大片黄在线观看| 久久精品熟女亚洲av麻豆 | 亚洲一区中文字幕| 亚洲人成77777在线播放网站| 最近更新免费中文字幕大全| 亚洲精品高清一二区久久| 亚洲视频在线免费看| 国产免费福利体检区久久| 亚洲AV午夜成人影院老师机影院 | igao激情在线视频免费| 亚洲国产系列一区二区三区 | 亚洲AV无码AV男人的天堂| 91短视频在线免费观看| 四虎影视久久久免费| 国产精品亚洲四区在线观看| 亚洲视频精品在线| 亚洲处破女AV日韩精品|