Working login page and user auth configuration

This commit is contained in:
Michael Jumper
2010-12-04 20:47:34 -08:00
parent a8d9d4f256
commit ff9e1664a6
10 changed files with 362 additions and 39 deletions

View File

@@ -1,6 +0,0 @@
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="guacamole"/>
<user username="guacamole" password="changeme" roles="guacamole"/>
</tomcat-users>

View File

@@ -18,12 +18,16 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<?xml version="1.0" encoding="UTF-8"?>
<Context antiJARLocking="true" path="/guacamole" docBase="/var/lib/guacamole/guacamole.war">
<!-- Change the lines below to match your Guacamole proxy -->
<Parameter name="hostname" value="localhost"/>
<Parameter name="port" value="1234"/>
<Parameter name="guacd-hostname" value="localhost"/>
<Parameter name="guacd-port" value="4822"/>
<!-- Session provider class (provides and configured guacamole session based on authentication information) -->
<Parameter name="session-provider" value="net.sourceforge.guacamole.basic.BasicGuacamoleSessionProvider"/>
<Parameter name="basic-user-mapping" value="/path/to/user-mapping.xml"/>
<Realm className="org.apache.catalina.realm.MemoryRealm" pathname="conf/guacamole-users.xml"/>
</Context>

View File

@@ -0,0 +1,11 @@
<user-mapping>
<!-- Per-user authentication and config information -->
<authorize username="USERNAME" password="PASSWORD">
<protocol>vnc</protocol>
<hostname>localhost</hostname>
<port>5900</port>
<password>VNCPASS</password>
</authorize>
</user-mapping>