Skip to main content
Merubah password admin midgard.
Pada midgard, baik itu memakai aegir, spider-admin, atau asgard terdapat superuser admin yang berwenang mempunyai hak admin ( dikenal SG0 ). Secara default password untuk user admin adalah password atau mjonir. Membiarkan password admin secara default tentu berbahaya bagi kelangsungan situs anda. Jika anda hanya memiliki satu buah database untuk staging dan live site. Anda hanya perlu merubah password melalui aegir atau spider dan jangan lupa merubah password di file conf repligard maka proses repligard dapat berjalan dengan baik. Repligard membaca user dan password dengan hak admin dari dalam database midgard untuk melakukan operasi repligard. Namun jika anda mempunyai dua buah database untuk live dan staging maka umumnya andaakan mengalami pesan repligard error sewaktu melakukan import ke dalam live site. Hal ini karena anda hanya merubah password melalui aegir atau spider di datavase staging walaupun anda sudah merubah password di kedua repligard conf baik untuk dump ataupun import. Karena sewaktu melakukan import, repligard membaca user dan password dari database live yang passwordnya belum berubah. Ada dua hal yang anda dapat lakukan.
1. Rubah password admin anda di staging melalui aegir atau spider lalu rubah juga password admin di conf dump repligard. Biarkan password conf import repligard seperti yang lama sehingga repligard tetap dapat melakukan import karena password tdak berubah didalam database. Walau password default tidak berubah pada live site, namun tetap aman karena web admin seperti aegir dan spider mempunyai entry port 8001 di tabel host sehingga jika ada request ke port 8001 maka yang menangani adalah database staging.
2. Rubah password admin anda di staging melalui aegir atau spider lalu rubah juga password admin di conf dump repligard. Setelah itu rubah password di conf import repligard. Lalu rubah juga password admin di database live site. Anda dapat meset password ini langsung dengan mysql query. Namun akan lebih aman jika anda merubahnya dengan aegir atau spider melalui live site. Sebelum anda bisa mengakses spider atau aegir melalui live site, anda perlu merubah host tabel terlebih dahulu.
Misal aka merubah password dengan aegir maka pada database live ketikan query sql " update hist set port=80 where prefi='/spider-admin/'; "
setelah itu buka spider admin melalui live site(port 80) dan rubah password user admin disesuaikan dengan conf import repligard. Jangan lupa mengeset port spider admin kembali ke 8001 satu setelah selesai.

Comments

Popular posts from this blog

java MessageDigest

If you use MessageDigest in java to encrypt string, you wont get hash like other language does. So you need to convert the result so that you can compare the hash result with other output that produce by diff language. Found the function on the java net forum private static String baToHexString(byte byteValues[]) { byte singleChar = 0; if (byteValues == null || byteValues.length String entries[] = { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f" }; StringBuffer out = new StringBuffer(byteValues.length * 2); for (int i = 0; i singleChar = (byte) (byteValues[i] & 0xF0); singleChar = (byte) (singleChar >>> 4); // shift the bits down singleChar = (byte...

hacking sierra wireless aircard 555 on suse 10

Since there's a lot of changes from pcmcia-cs to pcmciautils, pcmcia operation suppose to be easier because it now work with hotplug. That mean when the card got inserted to the laptop, linux will just recognize it in a zap. But that's just doesn't work for sierra aircard 555 while you using suse 10. To make your aircard 555 work on suse 10, you need to fiddle around a bit with linux kernel. Owww and you will need you kernel source because we need to recompile the serial_cs module! First, make sure when you insert the card to pcmcia slot and the pcmciautils recognize your card type "pccardctl info" then you should get following output on your shell ong@saintlucifer:~> pccardctl status Socket 0: command 'status' not yet handled by pccardctl o3ng@saintlucifer:~> pccardctl info PRODID_1="Sierra Wireless" PRODID_2="AirCard 555" PRODID_3="A555" PRODID_4="Rev 1" MANFID=0192,a555 FUNCID=6 Then you need to get Aircard ...

CapitalizeWords.java

I need to make my string sentence to be capitalize on each first character of word, So far haven't find such function that I can use. So made this simple class, incase someone need it. It's GPL so free to use it and modify it. import java.util.Scanner; import java.util.ArrayList; import java.util.Iterator; import java.lang.StringBuilder; /** * * @author avenpace * I'm using singleton here so, hope you know what that means ;) * license under the GPL so free to use, modify and hack whatever you want * lemme know if this programme benefit you if you had the time */ public class CapitalizeWords { private static CapitalizeWords capinstance; private CapitalizeWords() { } /** * The method will capitalizing every first character on each word on the String sentence * This method take two parameter, * @param source source sentence string that you want to capitalize on the first character if each word. * @param allword this argument...