You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@guacamole.apache.org by Manoj Patil <ma...@gmail.com> on 2019/06/03 14:33:33 UTC
guacamole not update custom java script
Dear team,
My scenario is that i have to write custom javascript after guacamole login successful in authenticateservice.js
I tried writing simple alerts to check code work flow but it didnt worked for me.
I then restarted tomcat and guacamole application but still nothing changed.
pls guide mw on this.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@guacamole.apache.org
For additional commands, e-mail: user-help@guacamole.apache.org
Re: guacamole not update custom java script
Posted by Nick Couchman <vn...@apache.org>.
On Mon, Jun 10, 2019 at 4:57 AM Manoj Patil <ma...@gmail.com> wrote:
> dear,
>
> Sure,
>
> i am not checking this at client side i am checking client address at
> server side and make changes at server side.
>
>
>
Even if you're changing files on the server-side, if you're changing .JS or
.HTML files, you're making changes to items that *run* on the client-side.
While the JS files are stored on the server, they are static content that
is delivered to the client, and *all* of the JavaScript is run in the
client browser, on the client. If you need to implement additional
security checks, you'll need to do it in the Java (not
JavaScript/AngularJS) code on the server. Based on the little you've
described what you're trying to do I would venture a guess that an
additional authentication extension would be the best way to go.
-Nick
Re: guacamole not update custom java script
Posted by Manoj Patil <ma...@gmail.com>.
dear,
Sure,
i am not checking this at client side i am checking client address at server side and make changes at server side.
> On 09-Jun-2019, at 11:13 PM, Mike Jumper <mj...@apache.org> wrote:
>
> On Sun, Jun 9, 2019, 00:30 Manoj Patil <manoj2patil@gmail.com <ma...@gmail.com>> wrote:
>
> Dear,
>
> Because of our employee work from Home and the security reason we kept those login ip in Mysql server and next time we only allow from that ip next one is we monitor there working hour also
>
> Login history is already tracked:
>
> http://guacamole.apache.org/doc/gug/jdbc-auth.html#jdbc-auth-schema-login-history <http://guacamole.apache.org/doc/gug/jdbc-auth.html#jdbc-auth-schema-login-history>
>
>
> hence we make come changes in .JS file
>
> If login history weren't tracked, JavaScript would not be the place to add such tracking. Relying on the client side to report its own address or to enforce restrictions would mean that your solution is vulnerable to tampering.
>
> Such tracking and enforcement can only safely be done server-side.
>
> - Mike
>
Re: guacamole not update custom java script
Posted by Mike Jumper <mj...@apache.org>.
On Sun, Jun 9, 2019, 00:30 Manoj Patil <ma...@gmail.com> wrote:
>
> Dear,
>
> Because of our employee work from Home and the security reason we kept
> those login ip in Mysql server and next time we only allow from that ip
> next one is we monitor there working hour also
>
Login history is already tracked:
http://guacamole.apache.org/doc/gug/jdbc-auth.html#jdbc-auth-schema-login-history
> hence we make come changes in .JS file
>
If login history weren't tracked, JavaScript would not be the place to add
such tracking. Relying on the client side to report its own address or to
enforce restrictions would mean that your solution is vulnerable to
tampering.
Such tracking and enforcement can only safely be done server-side.
- Mike
Re: guacamole not update custom java script
Posted by Manoj Patil <ma...@gmail.com>.
Dear,
Because of our employee work from Home and the security reason we kept those login ip in Mysql server and next time we only allow from that ip next one is we monitor there working hour also
hence we make come changes in .JS file
> On 07-Jun-2019, at 8:47 PM, Mike Jumper <mj...@apache.org> wrote:
>
> On Fri, Jun 7, 2019, 06:24 Manoj Patil <manoj2patil@gmail.com <ma...@gmail.com>> wrote:
> Dear Mike,
>
> We have to insert data in mysql/mariadb database post successful of guacamole user login.
>
> Please describe the high-level need, rather than the low-level solution you're attempting. *Why* are you looking to do this?
>
> - Mike
>
Re: guacamole not update custom java script
Posted by Mike Jumper <mj...@apache.org>.
On Fri, Jun 7, 2019, 06:24 Manoj Patil <ma...@gmail.com> wrote:
> Dear Mike,
>
> We have to insert data in mysql/mariadb database post successful of
> guacamole user login.
>
Please describe the high-level need, rather than the low-level solution
you're attempting. *Why* are you looking to do this?
- Mike
Re: guacamole not update custom java script
Posted by Manoj Patil <ma...@gmail.com>.
Dear Mike,
We have to insert data in mysql/mariadb database post successful of guacamole user login.
i tried to change authenticationservice.js but it’s changes are not reflected i mean code is not working.
Kindly guide on this.
please find attached snapshot
> On 03-Jun-2019, at 11:59 PM, Mike Jumper <mi...@glyptodon.com> wrote:
>
> Can you explain what you're trying to achieve at a high level? Rather than describing only your attempted solution, can you describe what you're trying to solve? What is driving you to try to modify authenticationService.js?
>
> https://meta.stackexchange.com/a/66378 <https://meta.stackexchange.com/a/66378>
>
> - Mike
>
>
> On Mon, Jun 3, 2019 at 11:23 AM Manoj Patil <manoj2patil@gmail.com <ma...@gmail.com>> wrote:
> Can you please give me the example to write extension and how to integrate it and rebuilt it and deploy
>
> On Mon, 3 Jun 2019, 20:45 Nick Couchman <vnick@apache.org <ma...@apache.org> wrote:
> On Mon, Jun 3, 2019 at 10:33 AM Manoj Patil <manoj2patil@gmail.com <ma...@gmail.com>> wrote:
> Dear team,
>
> My scenario is that i have to write custom javascript after guacamole login successful in authenticateservice.js
>
> I tried writing simple alerts to check code work flow but it didnt worked for me.
>
> I then restarted tomcat and guacamole application but still nothing changed.
>
>
> You'll have to be more specific about what you're trying to do and how you've tried to integrate this in. In general, if you're going to be changing the code, you should write an extension for it, or, at the very least, make your changes in the git repository and re-compile and re-deploy the code.
>
> -Nick
Re: guacamole not update custom java script
Posted by Mike Jumper <mi...@glyptodon.com>.
Can you explain what you're trying to achieve at a high level? Rather than
describing only your attempted solution, can you describe what you're
trying to solve? What is driving you to try to modify
authenticationService.js?
https://meta.stackexchange.com/a/66378
- Mike
On Mon, Jun 3, 2019 at 11:23 AM Manoj Patil <ma...@gmail.com> wrote:
> Can you please give me the example to write extension and how to integrate
> it and rebuilt it and deploy
>
> On Mon, 3 Jun 2019, 20:45 Nick Couchman <vnick@apache.org wrote:
>
>> On Mon, Jun 3, 2019 at 10:33 AM Manoj Patil <ma...@gmail.com>
>> wrote:
>>
>>> Dear team,
>>>
>>> My scenario is that i have to write custom javascript after guacamole
>>> login successful in authenticateservice.js
>>>
>>> I tried writing simple alerts to check code work flow but it didnt
>>> worked for me.
>>>
>>> I then restarted tomcat and guacamole application but still nothing
>>> changed.
>>>
>>>
>> You'll have to be more specific about what you're trying to do and how
>> you've tried to integrate this in. In general, if you're going to be
>> changing the code, you should write an extension for it, or, at the very
>> least, make your changes in the git repository and re-compile and re-deploy
>> the code.
>>
>> -Nick
>>
>
Re: guacamole not update custom java script
Posted by Nick Couchman <vn...@apache.org>.
On Mon, Jun 3, 2019 at 2:23 PM Manoj Patil <ma...@gmail.com> wrote:
> Can you please give me the example to write extension and how to integrate
> it and rebuilt it and deploy
>
http://guacamole.apache.org/doc/gug/guacamole-ext.html
-Nick
>
Re: guacamole not update custom java script
Posted by Manoj Patil <ma...@gmail.com>.
Can you please give me the example to write extension and how to integrate
it and rebuilt it and deploy
On Mon, 3 Jun 2019, 20:45 Nick Couchman <vnick@apache.org wrote:
> On Mon, Jun 3, 2019 at 10:33 AM Manoj Patil <ma...@gmail.com> wrote:
>
>> Dear team,
>>
>> My scenario is that i have to write custom javascript after guacamole
>> login successful in authenticateservice.js
>>
>> I tried writing simple alerts to check code work flow but it didnt worked
>> for me.
>>
>> I then restarted tomcat and guacamole application but still nothing
>> changed.
>>
>>
> You'll have to be more specific about what you're trying to do and how
> you've tried to integrate this in. In general, if you're going to be
> changing the code, you should write an extension for it, or, at the very
> least, make your changes in the git repository and re-compile and re-deploy
> the code.
>
> -Nick
>
Re: guacamole not update custom java script
Posted by Nick Couchman <vn...@apache.org>.
On Mon, Jun 3, 2019 at 10:33 AM Manoj Patil <ma...@gmail.com> wrote:
> Dear team,
>
> My scenario is that i have to write custom javascript after guacamole
> login successful in authenticateservice.js
>
> I tried writing simple alerts to check code work flow but it didnt worked
> for me.
>
> I then restarted tomcat and guacamole application but still nothing
> changed.
>
>
You'll have to be more specific about what you're trying to do and how
you've tried to integrate this in. In general, if you're going to be
changing the code, you should write an extension for it, or, at the very
least, make your changes in the git repository and re-compile and re-deploy
the code.
-Nick