แสดงบทความที่มีป้ายกำกับ Ldap แสดงบทความทั้งหมด
แสดงบทความที่มีป้ายกำกับ Ldap แสดงบทความทั้งหมด

วันอังคารที่ 3 กันยายน พ.ศ. 2556

แก้ไขไฟล์ประเภทสร้าง attribute ไม่ให้ลบ ใน fedora

ไฟล์ asp.php มี attribute ia ซ่อนไว้

[root@ldap html]# rm ./asp.php
rm: remove regular file `./asp.php'? y
rm: cannot remove `./asp.php': Operation not permitted -- ไม่สามารถลบได้
[root@ldap html]# lsattr -- ใช้คำสั่งเพื่อดู attribute
-------------e- ./phpldapadmin-1.2.0.5.zip
----ia-------e- ./asp.php
-------------e- ./phpldapadmin
[root@ldap html]# chattr -ia asp.php -- แก้ไขค่า attribute
[root@ldap html]# lsattr
-------------e- ./phpldapadmin-1.2.0.5.zip
-------------e- ./asp.php --- ไม่มี ia แล้ว
-------------e- ./phpldapadmin
[root@ldap html]# rm asp.php
rm: remove regular file `asp.php'? y -- ลบได้
[root@ldap html]#


วันศุกร์ที่ 2 สิงหาคม พ.ศ. 2556

ปัญหา [Ldap]slapd: bdb_db_open: unclean shutdown detected; attempting recovery.

Asagidaki hatayi almanizin nedeni, ldap ‘in duzgun olarak kapatilmamasindandir. [root@test test]# /etc/init.d/ldap restart Stopping slapd:                                            [  OK  ] 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 Recovery etmek icin; [root@test test]# /usr/sbin/slapd_db_recover -v -h /var/lib/ldap/murat.ws/ [...]

[root@test test]# /etc/init.d/ldap restart
Stopping slapd:                                            [  OK  ]
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

Recovery etmek icin;

[root@test test]# /usr/sbin/slapd_db_recover -v -h /var/lib/ldap/murat.ws/
Finding last valid log LSN: file: 415 offset 2431351
Recovery starting from [415][2431223]
Recovery complete at Wed Mar 16 11:27:38 2011
Maximum transaction ID 8002afe9 Recovery checkpoint [415][2431351]

vim /etc/sysconfig/ldap

STOP_DELAY=60s 

อ้างอิง: http://www.murat.ws/ldapslapd-bdb_db_open-unclean-shutdown-detected-attempting-recovery/