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

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

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

    談笑有鴻儒,往來無白丁

    在恰當的時間、地點以恰當的方式表達給恰當的人...  閱讀的時候請注意分類,佛曰我日里面是談笑文章,其他是各個分類的文章,積極的熱情投入到寫博的隊伍中來,支持blogjava做大做強!向dudu站長致敬>> > 我的微博敬請收聽

    今天的手又癢癢了,覺得應該是時候寫點東西了。
    這一周的時間在忙活LDAP認證,這個已經不是什么新鮮名詞了概念就免了;
    之所以學LDAP,還是為了SSO和PORTAL。
    經過一周的時間,搭建好了LDAP服務器,用的開源的APACHE的DS,還有APACHE的studio;配置起來非常的簡單主要掌握幾個要點就好了:
    1、server.xml的配置
    Adding your own partition resp. suffix
    添加自己的數據格式
    <property name="contextPartitionConfigurations">
    ? <set>
    ??? <ref bean="examplePartitionConfiguration"/>
    ??? <ref bean="myPartitionConfiguration"/>
    ? </set>
    </property>
    然后查詢examplePartitionConfiguration把他的bean配置重新復制一份需要修改幾個地方
    <bean id="myPartitionConfiguration"
    ????? class="org.apache.directory.server.core.partition.
    ??????????????????????????? impl.btree.MutableBTreePartitionConfiguration">
    Next give the partition a name and change the suffix to o=mydomain
    <property name="name" value="mydomain" />

    <property name="contextEntry">
    ??? <value>
    ????? objectClass: top
    ????? objectClass: domain
    ????? objectClass: extensibleObject
    ????? dc: example ---> o:mydomaim
    ??? </value>
    </property>
    重新啟動apache ds;

    2、LDIF文件的格式
    第一步:組織結構以及管理員信息
    dn: o=chinantn,dc=com
    objectclass: organization
    objectclass: top
    o: chinantn

    dn: cn=manager,o=chinantn,dc=com
    objectclass: organizationalPerson
    objectclass: person
    objectclass: top
    cn: manager
    sn: badboyryan
    userpassword:: c2VjcmV0

    dn: ou=departments,o=chinantn,dc=com
    objectclass: organizationalUnit
    objectclass: top
    ou: departments

    dn: ou=market,ou=departments,o=chinantn,dc=com
    objectclass: organizationalUnit
    objectclass: top
    ou: market

    dn: ou=developer,ou=departments,o=chinantn,dc=com
    objectclass: organizationalUnit
    objectclass: top
    ou: developer

    dn: ou=service,ou=departments,o=chinantn,dc=com
    objectclass: organizationalUnit
    objectclass: top
    ou: service

    dn: ou=finance,ou=departments,o=chinantn,dc=com
    objectclass: organizationalUnit
    objectclass: top
    ou: finance

    dn: ou=directorate,ou=departments,o=chinantn,dc=com
    objectclass: organizationalUnit
    objectclass: top
    ou: directorate

    dn: ou=engineer,ou=departments,o=chinantn,dc=com
    objectclass: organizationalUnit
    objectclass: top
    ou: engineer

    dn: ou=partners,o=chinantn,dc=com
    objectclass: organizationalUnit
    objectclass: top
    ou: partners

    dn: ou=customers,ou=partners,o=chinantn,dc=com
    objectclass: organizationalUnit
    objectclass: top
    ou: customers

    dn: ou=suppliers,ou=partners,o=chinantn,dc=com
    objectclass: organizationalUnit
    objectclass: top
    ou: suppliers

    dn: ou=employees,ou=partners,o=chinantn,dc=com
    objectclass: organizationalUnit
    objectclass: top
    ou: employees

    第二步:人員信息

    dn: uid=scf,ou=developer,ou=departments,o=chinantn,dc=com
    objectClass: person
    objectClass: uidObject
    objectClass: organizationalPerson
    objectClass: top
    cn: sss
    sn: scf
    uid: scf
    userpassword:: e01ENX1YTXNwY1ZWVFhUbFh1K1M0QllLY0hBPT0=
    人員信息就少寫一點了,有空你再慢慢的補充上。
    第三步:導入LDIF文件,這個時候LDAP服務器里面就有了一棵樹(組織結構)
    第四步:被指jira讓他利用LDAP認證來登錄系統,如下圖所示:




    經過上面的折騰就完成了一個通過LDAP認證的小例子了。
    注意轉帖的時候帶上:
    ?所有:http://badboyryan.blogjava.net
    隨意的轉帖不受法律約束。

    posted on 2007-09-28 13:16 壞男孩 閱讀(7571) 評論(9)  編輯  收藏 所屬分類: java命令學習

    FeedBack:
    # re: jira如何配置使用LDAP認證
    2007-09-28 13:30 | CowNew開源團隊
    感謝badboy的共享精神!:)  回復  更多評論
      
    # re: jira如何配置使用LDAP認證
    2007-09-28 15:02 | 千里冰封
    感謝  回復  更多評論
      
    # re: jira如何配置使用LDAP認證
    2007-09-28 21:30 | BeanSoft
    多謝壞男孩的培訓!  回復  更多評論
      
    # re: jira如何配置使用LDAP認證
    2007-10-09 15:35 | 站名
    中國筑養機械租賃網站  回復  更多評論
      
    # re: jira如何配置使用LDAP認證
    2008-05-02 16:59 | tangxwy
    我在配置時,出現下面的錯誤,這個帳號在其他系統是可以登錄的,但在jira里報沒權限,不知這個權限應該如何設置?
    Initial connect and search successful, but second phase connection to LDAP as 'uid=3533,ou=employees,dc=example,dc=com' failed (error: javax.naming.NoPermissionException: [LDAP: error code 50 - Insufficient Access Rights]; remaining name 'uid=3533,ou=employees,dc=example,dc=com'. More in logs)
    如可以,請發送郵件到tangxwy@tom.com,謝謝  回復  更多評論
      
    # re: jira如何配置使用LDAP認證[未登錄]
    2008-12-01 16:02 |
    感謝!  回復  更多評論
      
    # re: jira如何配置使用LDAP認證[未登錄]
    2008-12-01 16:07 |
    問題同上上,我的郵箱:maple_happy_yes@sina.com.cn  回復  更多評論
      
    # re: jira如何配置使用LDAP認證
    2009-02-25 17:21 | huyong
    我也遇到了這個問題
    mail:huyong.java@gmail.com
    thank you !  回復  更多評論
      
    # re: jira如何配置使用LDAP認證
    2010-10-10 17:59 | pengliu
    我配置成功后登錄時。驗證碼的圖打不開。所以還是導致無活登錄。樓主給判斷下吧,謝謝。  回復  更多評論
      
    主站蜘蛛池模板: 37pao成人国产永久免费视频| 久久久久亚洲国产AV麻豆| 最近的2019免费中文字幕| 免费看国产精品麻豆| 国产亚洲美女精品久久久久| 韩国日本好看电影免费看| 欧洲 亚洲 国产图片综合| 女人18毛片a级毛片免费| 亚洲国产精品无码久久98| 日韩a级毛片免费观看| 国产亚洲视频在线| 亚洲日韩中文字幕日韩在线| 中文字幕免费在线看电影大全 | 精品无码免费专区毛片| 亚洲老熟女@TubeumTV| 希望影院高清免费观看视频| 亚洲一区二区三区成人网站| 可以免费观看一级毛片黄a | 亚洲А∨精品天堂在线| 精品熟女少妇aⅴ免费久久| 亚洲AV无码码潮喷在线观看| 国产午夜精品久久久久免费视| 亚洲一区二区三区电影| 久久久久免费看黄A片APP| 亚洲AV成人无码网天堂| 伊人久久综在合线亚洲91| 少妇太爽了在线观看免费视频 | 好吊妞视频免费视频| 国内精品久久久久影院亚洲| 午夜dj在线观看免费视频| 黄色网址大全免费| 亚洲成AV人在线播放无码 | 午夜精品免费在线观看| 亚洲综合欧美色五月俺也去| 亚洲精品国产高清嫩草影院 | 成人A片产无码免费视频在线观看| 亚洲视频国产视频| 一区国严二区亚洲三区| 国产va在线观看免费| 亚洲女子高潮不断爆白浆| 亚洲综合图色40p|