digest 기능을 사용
[server.xml]
<Realm
className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase" />
=>
<Realm
className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase" digest="sha" />
D:\apache-tomcat-6.0.18\bin>digest.bat
-a sha demo1234
demo1234:6ea7ccdcf642953a24672d10b0d32cef576e0329
암호 방식은 sha, md5 등이 있음
[tomcat-users.xml]
<user username="admin"
password="demo1234" roles="admin,manager"/>
=>
<user username="admin" password="6ea7ccdcf642953a24672d10b0d32cef576e0329"
roles="admin,manager"/>
댓글 없음:
댓글 쓰기