guacamole-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Landry <>
Subject Creating a new JDBC auth extension
Date Mon, 23 Jan 2017 21:13:45 GMT
I created an SQLite JDBC auth extension by using Guacamole's JDBC base
source. I copied the MySQL extension, changed references from MySQL to
SQLite, and translated some of the MySQL-specific queries to work with

My extension only partially works.

Two queries for Connections and ConnectionGroups throw an
ArrayIndexOutOfBoundsException ('select' and 'selectReadable'). I've
validated that the query itself is valid by manually filling in the
parameters and querying the database. I think MyBatis is mixing up how many
parameters the query should have. The 'selectReadable' call expects two
parameters: the user ID and a collection of identifiers. Those two params
are used three places in the query. When I stepped through the code, I saw
the PreparedStatement expected 6 parameters. The exception is thrown when
the code attempts to fill in a third nonexistent parameter.

Can anyone point me in the right direction?

You can see the code here
I also uploaded artifacts to make it easier for someone to give it a test

   - SQLite JDBC connector -
   - SQLite auth extension -
   - A test DB with a single ConnectionGroup (move it to
   /tmp/guac_test.sqlite) -
   - file (there are some bogus settings required
   right now) -



David Landry

View raw message