RE: Help to solve a requirement about active connections vs configured connection

2018-11-01 Thread Gabriel Huerta Araujo
Thank you so much Nick



I’ll check it. If I had a doubt I hope I can continue asking about this matter.



Meanwhile have a great night.



Regards



De: Nick Couchman [mailto:vn...@apache.org]
Enviado el: jueves, 01 de noviembre de 2018 06:02 p.m.
Para: user@guacamole.apache.org
Asunto: Re: Help to solve a requirement about active connections vs configured 
connection



I appreciate your soon answer. If I wanted this information in real time? And 
in an automatic way without accessing to Guacamole web application?



The web application is based on a REST API, so retrieving the data displayed on 
this page should be relatively easy.  I don't recall which API endpoint that 
page calls off the top of my head, but it should be pretty easy to track it 
down by watching the calls in one of the browser developer consoles, or by 
digging through the AngularJS code that defines these pages. The data is all 
returned in JSON format so it should be pretty easy to write some coffee to 
retrieve it.



Actually, once upon a time I wrote the beginnings of a Python script that 
handled some of these adminstrative tasks.  Code is in repo below - it is 
probably a little out of date against the current Guacamole code, but should at 
least get you started.



https://github.com/necouchman/guacamole-python





-Nick



---
Este correo electrónico ha sido comprobado en busca de virus por AVG.
http://www.avg.com


Re: Help to solve a requirement about active connections vs configured connection

2018-11-01 Thread Nick Couchman
>
> I appreciate your soon answer. If I wanted this information in real time?
> And in an automatic way without accessing to Guacamole web application?
>

The web application is based on a REST API, so retrieving the data
displayed on this page should be relatively easy.  I don't recall which API
endpoint that page calls off the top of my head, but it should be pretty
easy to track it down by watching the calls in one of the browser developer
consoles, or by digging through the AngularJS code that defines these
pages. The data is all returned in JSON format so it should be pretty easy
to write some coffee to retrieve it.

Actually, once upon a time I wrote the beginnings of a Python script that
handled some of these adminstrative tasks.  Code is in repo below - it is
probably a little out of date against the current Guacamole code, but
should at least get you started.

https://github.com/necouchman/guacamole-python


-Nick


Re: JDBC connection string

2018-11-01 Thread Nick Couchman
> Can someone familiar with the source let me know where the JDBC connection
> string is generated?


There's no spot in the Guacamole code that actually generates the
connection string - this is abstracted to the MyBatis JDBCHelper code.  The
code that accomplishes this for the MySQL module is here:

https://github.com/apache/guacamole-client/blob/master/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-mysql/src/main/java/org/apache/guacamole/auth/mysql/MySQLAuthenticationProviderModule.java

-Nick


JDBC connection string

2018-11-01 Thread doyouhas
Hey guys,

Can someone familiar with the source let me know where the JDBC connection
string is generated? I am still trying to troubleshoot my RDS connection
issue. Appreciate if someone could help point me in the right direction.



--
Sent from: 
http://apache-guacamole-general-user-mailing-list.2363388.n4.nabble.com/


RE: Help to solve a requirement about active connections vs configured connection

2018-11-01 Thread Gabriel Huerta Araujo
Hi Mike



I appreciate your soon answer. If I wanted this information in real time? And 
in an automatic way without accessing to Guacamole web application?



Regards.



De: Mike Jumper [mailto:mjum...@apache.org]
Enviado el: jueves, 01 de noviembre de 2018 11:41 a.m.
Para: user@guacamole.apache.org
Asunto: Re: Help to solve a requirement about active connections vs configured 
connection



You can see which connections are used in the history:



http://guacamole.apache.org/doc/gug/administration.html#connection-history



This exposes all or part of the guacamole_connection_history table (there is an 
upper limit to the number of history entries which will be returned via the web 
UI):



http://guacamole.apache.org/doc/gug/jdbc-auth.html#jdbc-auth-schema-connection-history



Active connections are displayed and manageable through another section of the 
admin interface:



http://guacamole.apache.org/doc/gug/administration.html#session-management



- Mike





On Thu, Nov 1, 2018, 10:36 Gabriel Huerta Araujo http://www.avg.com/internet-security> Logotipo de AVG

Este correo electrónico ha sido comprobado en busca de virus con el software 
antivirus AVG.
www.avg.com 







---
Este correo electrónico ha sido comprobado en busca de virus por AVG.
http://www.avg.com


Re: Help to solve a requirement about active connections vs configured connection

2018-11-01 Thread Mike Jumper
You can see which connections are used in the history:

http://guacamole.apache.org/doc/gug/administration.html#connection-history

This exposes all or part of the guacamole_connection_history table (there
is an upper limit to the number of history entries which will be returned
via the web UI):

http://guacamole.apache.org/doc/gug/jdbc-auth.html#jdbc-auth-schema-connection-history

Active connections are displayed and manageable through another section of
the admin interface:

http://guacamole.apache.org/doc/gug/administration.html#session-management

- Mike


On Thu, Nov 1, 2018, 10:36 Gabriel Huerta Araujo  Hi
>
>
>
> I have a doubt about Guacamole. My question is how can I know active
> sessions and compare them with configured connections in order to know if
> all configured connections are really used. Or where I could find
> information in order to make some implementation which accesses REST
> information related to active connections and compare them against what is
> configured in MySQL database in guacamole_connection_permission table.
>
>
>
> Regards
>
>
> --
> [image: Logotipo de AVG] 
>
> Este correo electrónico ha sido comprobado en busca de virus con el
> software antivirus AVG.
> www.avg.com 
>
>
> <#m_-6276727722064041211_m_-2053675576756352524_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>


Help to solve a requirement about active connections vs configured connection

2018-11-01 Thread Gabriel Huerta Araujo
Hi



I have a doubt about Guacamole. My question is how can I know active
sessions and compare them with configured connections in order to know if
all configured connections are really used. Or where I could find
information in order to make some implementation which accesses REST
information related to active connections and compare them against what is
configured in MySQL database in guacamole_connection_permission table.



Regards



---
Este correo electrónico ha sido comprobado en busca de virus por AVG.
http://www.avg.com