iT邦幫忙

0

OpenLDAP 節點突然無法查詢,但其下資料 entry node 仍然存在

  • 分享至 

  • xImage

請教各位前輩

OpenLDAP 下有如下資料
dc=A
├ ou=B
│ ├ cn=x
│ ├ cn=y
│ └ cn=z
├ ou=C
└ ou=D
前日因故當機重啟後
從 ldap client (使用 Apache Directory Studio) 突然看不到 ou=B 這個節點

使用
ldapsearch -x -H ldap://host:389 -D "account" -W -b "dc=A" -s one "(objectClass=organizationalUnit)"
只能查到 ou=C, ou=D,不會出現 ou=B 的資料

ldapsearch -x -H ldap://host:389 -D "account" -W -b "ou=B,dc=A" -s sub "(&(objectClass=inetOrgPerson)(cn=*))" "dn"
卻可以查到
cn=x,ou=B,dc=A
cn=y,ou=B,dc=A
cn=z,ou=B,dc=A
的資料

從 Apache Directory Studio 要建立 ou=B,dc=A 的節點
系統提示該節點已存在

使用
ldapsearch -x -H ldap://host:389 -D "account" -W -b "ou=C,dc=A" -s base "(objectClass=*)"
顯示
dn: ou=C,dc=cuis
ou: C
objectClass: organizationalUnit

使用
ldapsearch -x -H ldap://host:389 -D "account" -W -b "ou=B,dc=A" -s base "(objectClass=*)"
會查不到資料

我應該如何處理
才能將 ou=B,dc=A 這個節點回復正常

圖片
  熱門推薦
圖片
{{ item.channelVendor }} | {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友回答

立即登入回答