Port Forwarding to remote app

2019-11-23 Thread Tushar Jain
Hi,

My remote app needs access to local USB port. A smart card reader is
connected on the local USB port, and it needs to be accessed by remote app
through guacamole connection. Any ideas on how this can be accomplished? Is
there something like "Port Forwarding" available?

Thanks,
Tushar Jain

-- 
**Disclaimer:* This message and any attachment may contain confidential, 
proprietary information and is intended only for the individual named. If 
you are not the original intended recipient and have erroneously received 
this message, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system. Hitachi MGRM Net 
E-mail transmission cannot be guaranteed to be secure or error-free as 
information could be intercepted, corrupted, lost, destroyed, arrive late 
or incomplete, or contain viruses. Hitachi MGRM Net therefore does not 
accept liability for any errors or omissions in the contents of this 
message, which arise as a result of e-mail transmission. If verification is 
required, please request a hard-copy version. Hitachi MGRM Net Ltd, C - 
6/5, Safdarjung Development Area, New Delhi - 110016, India*
*
*
*'Please 
consider the environment before printing this e-mail'.*


Re: Display default value of username in Login screen

2019-11-23 Thread Tushar Jain
Hi Nick,

Thanks for the suggestion. Will try to develop and a custom extension and
will reach out incase i run into any issues.

Thanks
Tushar Jain

On Sat, Nov 23, 2019 at 8:49 PM Nick Couchman  wrote:

> On Wed, Nov 20, 2019 at 23:20 Tushar Jain 
> wrote:
>
>> Hi Nick,
>>
>> Thanks for the response.
>> We are trying to integrate smart card with the login page. Our users are
>> provided with a unique 16 digit card number which acts as their identity
>> and the username. Instead of them typing it out everytime, we want
>> guacamole to fetch it from the card. We have written a custom js to fetch
>> the card number(i.e the username) and it is working fine. But are not able
>> to display the card number in the username textfield. Please suggest how to
>> go about this.
>>
>
> Based on what you're trying to do - authenticate with smart cards, which
> is essentially certificate-based, or X509, authentication - I would suggest
> that you write a custom authentication extension that handles that
> mechanism, rather than trying to squeeze the method you're using into the
> existing username and password authentication.  While this isn't identical
> to SSO authentication, looking at those modules may help you understand how
> they "replace" the standard username and password requirements with
> something else - in those cases a redirect to another page and processing
> of a SSO ticket, in your case the validation and parsing of a certificate
> stored on a smart card.
>
> Besides avoiding trying to hack the angularjs pages, it will allow you to
> make sure that the authentication happens securely by writing the module in
> such a way that the front end (angularjs) and back end (Java application)
> are "synchronized" in their conversation for authenticating the user.
>
> The manual has information on the extensions, and, honestly, just looking
> at the existing code will probably be as much help as anything.  And, of
> course, we are happy to help out here, as well 😁.
>
> -Nick
>

-- 
**Disclaimer:* This message and any attachment may contain confidential, 
proprietary information and is intended only for the individual named. If 
you are not the original intended recipient and have erroneously received 
this message, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system. Hitachi MGRM Net 
E-mail transmission cannot be guaranteed to be secure or error-free as 
information could be intercepted, corrupted, lost, destroyed, arrive late 
or incomplete, or contain viruses. Hitachi MGRM Net therefore does not 
accept liability for any errors or omissions in the contents of this 
message, which arise as a result of e-mail transmission. If verification is 
required, please request a hard-copy version. Hitachi MGRM Net Ltd, C - 
6/5, Safdarjung Development Area, New Delhi - 110016, India*
*
*
*'Please 
consider the environment before printing this e-mail'.*


Re: Display default value of username in Login screen

2019-11-23 Thread Nick Couchman
On Wed, Nov 20, 2019 at 23:20 Tushar Jain 
wrote:

> Hi Nick,
>
> Thanks for the response.
> We are trying to integrate smart card with the login page. Our users are
> provided with a unique 16 digit card number which acts as their identity
> and the username. Instead of them typing it out everytime, we want
> guacamole to fetch it from the card. We have written a custom js to fetch
> the card number(i.e the username) and it is working fine. But are not able
> to display the card number in the username textfield. Please suggest how to
> go about this.
>

Based on what you're trying to do - authenticate with smart cards, which is
essentially certificate-based, or X509, authentication - I would suggest
that you write a custom authentication extension that handles that
mechanism, rather than trying to squeeze the method you're using into the
existing username and password authentication.  While this isn't identical
to SSO authentication, looking at those modules may help you understand how
they "replace" the standard username and password requirements with
something else - in those cases a redirect to another page and processing
of a SSO ticket, in your case the validation and parsing of a certificate
stored on a smart card.

Besides avoiding trying to hack the angularjs pages, it will allow you to
make sure that the authentication happens securely by writing the module in
such a way that the front end (angularjs) and back end (Java application)
are "synchronized" in their conversation for authenticating the user.

The manual has information on the extensions, and, honestly, just looking
at the existing code will probably be as much help as anything.  And, of
course, we are happy to help out here, as well 😁.

-Nick


Re: How to customize guacamole angular app

2019-11-23 Thread Nick Couchman
On Sat, Nov 23, 2019 at 03:34 Marko Nikolić 
wrote:

> Hi Ben,
>
> Guacamole supports extension, which are used to add custom features,
> integrations etc... to the main application. It is better to use this
> method instead of hacking the Guacamole code.
>
> You can find more details on extensions in the docs:
>
> http://guacamole.apache.org/doc/gug/guacamole-ext.html
>
>
> Marko
>
> суб, 23. нов 2019. 02.18 Ben Davis  је написао/ла:
>
>> I would like to make some customizations to the angular javascript app.
>> However, I'm not familiar with the frontend build system that guacamole
>> uses. I tried adding some console.log() statements in the source files
>> in /var/lib/tomcat9/webapps/guacamole, but haven't found where I can change
>> anything.
>>
>
Just to add to what Marko already said, you don't want to try to modify the
code in-place - you want to modify the source and then rebuild and redeploy
the web application, asking with any extensions that you use.

-Nick


Re: How to customize guacamole angular app

2019-11-23 Thread Marko Nikolić
Hi Ben,

Guacamole supports extension, which are used to add custom features,
integrations etc... to the main application. It is better to use this
method instead of hacking the Guacamole code.

You can find more details on extensions in the docs:

http://guacamole.apache.org/doc/gug/guacamole-ext.html

Marko

суб, 23. нов 2019. 02.18 Ben Davis  је написао/ла:

> I would like to make some customizations to the angular javascript app.
> However, I'm not familiar with the frontend build system that guacamole
> uses. I tried adding some console.log() statements in the source files
> in /var/lib/tomcat9/webapps/guacamole, but haven't found where I can change
> anything.
>
> My main goal right now is inserting a new screen between when the user has
> authenticated and when they are connected to their desktop. Can anyone
> provide some direction on how I can get started hacking around on it?
>
> Ben Davis
>
> *Education Director*
>
> *214-442-1635  | https://boldidea.org/ *
>
>
> * *
>
>