目前分類:LDAP (6)

瀏覽方式: 標題列表 簡短摘要
  •  

    OpenLDAP v2.4 同步資料

    ## Master / Provider
    ## Ref: http://deandra.homeip.net/node/33

    # vi /etc/openldap/slapd.conf
    moduleload syncprov.la     //將這一行前面的#拿掉
    在檔案的最後面加入
    overlay syncprov

yuic123 發表在 痞客邦 留言(0) 人氣()

OS:CentOS 6


安裝openldap (master server and Slave server)

1.安裝套件
#yum install openldap
#yum install openldap-server
#yum install openldap-client


yuic123 發表在 痞客邦 留言(0) 人氣()

slapcat -f /etc/openldap/slapd.conf -l export.ldif

slapadd -f /etc/openldap/slapd.conf -l export.ldif


yuic123 發表在 痞客邦 留言(0) 人氣()

OS:CentOS 5.5

安裝openldap
#yum install openldap             
#yum install openldap-server  
#yum install openldap-client    



yuic123 發表在 痞客邦 留言(0) 人氣()

將LDAP中的資料Dump成 ldif檔案

1. dump整個樹系

slapcat -b dc=domain,dc=idv -l export.ldif    

2. dump子樹系

slapcat -b dc=domain,dc=idv -s ou=unit,dc=domain,dc=idv -l export.ldif    


yuic123 發表在 痞客邦 留言(0) 人氣()

機房停電,導致LDAP Server 的Service通通沒有起來,出現下面這一堆訊息

Checking configuration files for slapd: bdb_db_open: unclean shutdown detected; attempting recovery.
bdb_db_open: Recovery skipped in read-only mode. Run manual recovery if errors are encountered. config file testing succeeded

簡單的說就是LDAP Service沒有正常的關閉,現在沒辦法啟動

 

用下列方式應該就可以解決 :(在CentOS下)

yuic123 發表在 痞客邦 留言(0) 人氣()