ivaneeo's blog

          自由的力量,自由的生活。

            BlogJava :: 首頁 :: 聯系 :: 聚合  :: 管理
            669 Posts :: 0 Stories :: 64 Comments :: 0 Trackbacks

          首先把我看到的有用的資料留下:

          1、官方文檔-基本用戶手冊:http://directory.apache.org/apacheds/basic-user-guide.html 主要介紹了安裝以及基本操作、登錄等。

          2、官方文檔-高級用戶手冊:http://directory.apache.org/apacheds/advanced-user-guide.html 介紹了代碼編譯、系統結構、服務配置以及服務權限管理,這里吐槽一下,真的很難懂,并且各種TODO;

          3、看起來像官方的文檔:http://joacim.breiler.com/apacheds/book.html 介紹得很詳盡,例子也很豐富。

          4、訪問控制實例 FR20_ApacheDS_Access_Control_Administration_The_X.500_Way.pdf  

          =============================================================================================================

          常用的名詞解析:

          DIT  Directory Information Tree
          AA administrative areas
          AP administrative points

          AAA autonomous administrative area 有自治權的管理區域,所有的實體均統一管理
          SAA specific administrative area 特定管理區域
          IAA  inner administrative area  內部管理區域

          SAP specific administrative point
          ACI Access Control Information

          Usually an entry is selected as the administrative point and marked with an operational attribute. The attributeType of the operational attribute is 'administrativeRole'. 
          通過添加一個可選屬性來使一個實體成為管理點

          ACSA access control specific area

          =================================================================================================================

          實戰演練

          需求:

          1、LDAP超級管理員,管理LDAP上的所有數據;

          2、匿名用戶可以查看用戶信息;

          3、用戶分為開發、測試和運維三組;

          4、通過用戶組授權

          操作指南:

          1、安裝ApacheDS服務端;

            下載地址:apacheds-2.0.0-M15-64bit.bin 下載到目錄/home/apacheds/

          1. chmod +x *.bin  
          1. /etc/init.d/apacheds-2.0.0-M15-default start  
          這樣就完成了ApacheDS的安裝與啟動

          2、安裝Apache Directory Studio

          本次使用Eclipse插件,詳見 http://directory.apache.org/studio/installation-in-eclipse.html,也支持Eclipse market安裝。

          3、連接與配置

          切換到Eclipse的LDAP視圖,新建連接

          hostname:199.155.122.90 port:10389 encryption method: nocryption (不同加密算法端口注意)

          authentication method: simple user:uid=admin,ou=system passwd:secret (默認的最高權限用戶)

          OpenConfiguration啟用Access Control,禁用匿名登錄

          重啟apacheds服務生效

          4、分區設置

          系統默認example分區,我們刪除之,并新建,本次創建dc=xxx.com


          5、新建ou=users,新建ou=groups。

          1. dn: ou=groups,dc=taotaosou.com  
          2. objectClass: organizationalUnit  
          3. objectClass: top  
          4. ou: groups  

          1. dn: ou=users,dc=taotaosou.com  
          2. objectClass: organizationalUnit  
          3. objectClass: top  
          4. ou: users  

          6、根目錄啟用權限控制,添加administrativeRole屬性是關鍵

          1. dn: dc=taotaosou.com  
          2. objectclass: domain  
          3. objectclass: top  
          4. dc: taotaosou.com  
          5. administrativeRole: accessControlSpecificArea  

          7、添加匿名讀權限

          1. dn: cn=enableAllUsersRead,dc=taotaosou.com  
          2. objectClass: subentry  
          3. objectClass: accessControlSubentry  
          4. objectClass: top  
          5. cn: enableAllUsersRead  
          6. prescriptiveACI: { identificationTag "enableAllUsersRead", precedence 0, aut  
          7.  henticationLevel none, itemOrUserFirst userFirst: { userClasses { allUsers   
          8.  }, userPermissions { { protectedItems { entry, allUserAttributeTypesAndValu  
          9.  es }, grantsAndDenials { grantCompare, grantFilterMatch, grantRead, grantRe  
          10.  turnDN, grantBrowse } } } } }  
          11. subtreeSpecification: { }  

          8、添加用戶自己修改資料權限

          1. dn: cn=allowSelfAccessAndModification,dc=taotaosou.com  
          2. objectClass: subentry  
          3. objectClass: accessControlSubentry  
          4. objectClass: top  
          5. cn: allowSelfAccessAndModification  
          6. prescriptiveACI: { identificationTag "allowSelfAccessAndModification", prece  
          7.  dence 10, authenticationLevel simple, itemOrUserFirst userFirst: { userClas  
          8.  ses { thisEntry }, userPermissions { { protectedItems { entry, allUserAttri  
          9.  buteTypesAndValues }, grantsAndDenials { grantRemove, grantExport, grantCom  
          10.  pare, grantImport, grantRead, grantFilterMatch, grantModify, grantInvoke, g  
          11.  rantDiscloseOnError, grantRename, grantReturnDN, grantBrowse, grantAdd } }   
          12.  } } }  
          13. subtreeSpecification: { }  

          9、添加管理員權限

          1. dn: cn=enableAdminSuper,dc=taotaosou.com  
          2. objectClass: subentry  
          3. objectClass: accessControlSubentry  
          4. objectClass: top  
          5. cn: enableAdminSuper  
          6. prescriptiveACI: { identificationTag "enableAdminSuper", precedence 0, authe  
          7.  nticationLevel strong, itemOrUserFirst userFirst: { userClasses { userGroup  
          8.   { "cn=administrator,ou=gourp,dc=taotaosou.com" } }, userPermissions { { pr  
          9.  otectedItems { entry, allUserAttributeTypesAndValues }, grantsAndDenials {   
          10.  grantRemove, grantExport, grantCompare, grantImport, grantRead, grantFilter  
          11.  Match, grantModify, grantInvoke, grantDiscloseOnError, grantRename, grantRe  
          12.  turnDN, grantBrowse, grantAdd } } } } }  
          13. subtreeSpecification: { }  


            http://blog.csdn.net/lansine2005/article/details/19978411
          posted on 2014-11-22 00:00 ivaneeo 閱讀(1645) 評論(0)  編輯  收藏 所屬分類: java魔力
          主站蜘蛛池模板: 措美县| 杭锦旗| 汤原县| 诸暨市| 万年县| 吴旗县| 九龙坡区| 新昌县| 威远县| 道孚县| 霍林郭勒市| 英超| 墨玉县| 建德市| 江源县| 西乌珠穆沁旗| 和田市| 乐至县| 遂宁市| 连平县| 阳新县| 喀喇沁旗| 武清区| 突泉县| 沐川县| 抚顺市| 高要市| 南汇区| 六枝特区| 洮南市| 益阳市| 清苑县| 安仁县| 蒲城县| 教育| 太谷县| 弋阳县| 固始县| 双牌县| 潜江市| 巴南区|