Anda di halaman 1dari 2

Cara membuat login akses untuk CBPolicyd di Zimbra

Kali ini saya akan membahas mengenai login akses cbpolicyd di zimbra. Pada umumnya, CBPolicyd
setelah di aktifkan tidak memiliki login jika di akses melalui browser. Sangat bahaya bila diakses oleh
sembarang orang. Berikut langkah-langkah dalam pembuatan login akses.
1. Login root, Matikan service apache
su - zimbra -c "zmapachectl stop"
2. Masuk ke direktori webui
cd /opt/zimbra/cbpolicyd-2.0.10/share/webui/
3. Buat file .htaccess
#touch .htaccess
#nano .htaccess
isi .htaccess sebagai berikut
AuthUserFile /opt/zimbra/cbpolicyd-2.0.10/share/webui/.htpasswd
AuthGroupFile /dev/null
AuthName "User and Password"
AuthType Basic
<LIMIT GET>
require valid-user
</LIMIT>
4. Buat file .htpasswd
# touch .htpasswd
5. Buat username dan password
# htpasswd -c .htpasswd admin
6. Buka file di /opt/zimbra/conf/httpd.conf
# nano /opt/zimbra/conf/httpd.conf
7. Tambahkan script berikut ke baris paling bawah.
Alias /webui /opt/zimbra/cbpolicyd-2.0.10/share/webui/
<Directory /opt/zimbra/cbpolicyd-2.0.10/share/webui/>
# Comment out the following 3 lines to make web ui accessible from anywhere
AllowOverride AuthConfig
Order Deny,Allow
Allow from all
</Directory>

8. Nyalakan webserver
# su - zimbra -c "zmapachectl restart"

Selesai...

Anda mungkin juga menyukai