ํ์ผ: accounts.xml
ํด๋น ํ์ผ์์ ์๋ <password> ๋ถ๋ถ์ copy & paste ํ๋ฉด ๋จ
vi $JEUS_HOME/config/$SERVERNAME/security/SYSTEM_DOMAIN/accounts.xml
----------------------------------------------------------------------------------------------------------
<?xml version="1.0"?>
<accounts xmlns="http://www.tmaxsoft.com/xml/ns/jeus" version="6.0">
<users>
<user>
<name>administrator</name>
<password>{base64}amV1c2FkbWlu</password>
<group>Administrators</group>
</user>
</users>
<groups>
<group>
<description>A group for administrators</description>
<name>Administrators</name>
</group>
</groups>
</accounts>
----------------------------------------------------------------------------------------------------------
๋ค๋ฅธ ํจ์ค์๋๋ฅผ ์ฌ์ฉํ๊ณ ์ถ๋ค๋ฉด ์ง์ base64 ์ธ์ฝ๋ฉ์ ํ ํ, ๊ทธ ๊ฐ์ ์
๋ ฅํ๋ฉด ๋๋ค.
๋จ, base64๋ก ์ธ์ฝ๋ฉ ๋ ๊ฒ์ ์๋ฆฌ๊ธฐ ์ํด {base64}๋ ๋ฐ๋์ ์ถ๊ฐํ๋ค.
์๋์ฐ
C:\Users\Administrator>java -classpath
C:\TmaxSoft\JEUS6.0\lib\system\jeus.jar jeus.security.admin.Base64Coder
encode jeusadmin
amV1c2FkbWlu
์ ๋์ค
java -classpath $JEUS_HOME/lib/system/jeus.jar jeus.security.admin.Base64Coder encode jeusadmin
amV1c2FkbWlu
java -classpath $JEUS_HOME/lib/system/jeus.jar jeus.security.admin.Base64Coder decode amV1c2FkbWlu
jeusadminํ ํจ์ค์๋๋ฅผ ์๋ก ๋ฃ์ ๊ฒฝ์ฐ
/$JEUS_HOME/bin/encryption base64 passwd
[base64] : [passwd] --> [encode:cGFzc3dk]
[base64] : [cGFzc3dk] --> [decode:passwd]
์ด๋ ๊ฒ ๊ฒฐ๊ณผ ๊ฐ์ ์ป์ด์ accounts.xml ํ์ผ์ ๋นจ๊ฐ์ ๋ถ๋ถ๊ณผ ๊ต์ฒด ํ ์ ์ฅํ๋ฉด ๋ก๊ทธ์ธ์ด ๊ฐ๋ฅํฉ๋๋ค.
์ถ์ฒ : http://existence.tistory.com/60
'๐ป Programming > WAS' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[JBoss 7] LogManager ์ค๋ฅ (0) | 2015.06.16 |
---|---|
[Jeus 6] baseport ์์ ๋ฐฉ๋ฒ (0) | 2015.06.11 |
WebSphere ๋ค์ด๋ก๋ ์ฌ์ดํธ (0) | 2015.06.09 |
์น๋ก์ง 11g ์น์ฑ ๋ฐฐ์น(Deployment) ์ค์นํ๊ธฐ (0) | 2015.06.09 |
์น๋ก์ง default ์ด๋๋ฏผ ์๋ฒ ํฌํธ(7001) ๋ณ๊ฒฝ (0) | 2015.06.09 |