Congratulations, I am surprised with Openremote.
I am a vocational teacher, and I am wondering to teach Openremote to our students.
I would like to know something else about two topics:
- It's possible any king of user authentication?
- In UI designer when you put a button, I've seen a navigation action LOGIN and LOGOUT. What those it means? What user/password can I use?
Thanks.
Comments (24)
Jun 23, 2011
Eric Bariaux says:
Yes, authentication is supported through the web container. It uses the standard...Yes, authentication is supported through the web container.
It uses the standard mechanism defined by the servlet API and can be configured in the web.xml file and in your container (e.g. tomcat)
Jun 26, 2011
Jordi Marimon says:
Thanks for your answer. I've been looking for information but I don't understand...Thanks for your answer.
I've been looking for information but I don't understand very well how to do it.
May you tell me some places to look for how to edit web.xml to use authentication?
Jul 01, 2011
Andrew Ball says:
Look toward the end of web.xml, where you should several several commented out &...Look toward the end of web.xml, where you should several several commented out <security-constraint> elements. Uncomment them. In the simplest case, you can just edit tomcat-users.xml in the Tomcat conf directory to add users with passwords, which will need to have the "openremote" role.
Jul 04, 2011
Jordi Marimon says:
Thanks, I did what you said and I got what I need. If somebody needs a sample o...Thanks, I did what you said and I got what I need.
If somebody needs a sample of configuration changes I can show it.
Thanks.
Jul 05, 2011
Administrator says:
Sample configuration and documentation is most welcome. Can post it here or cre...Sample configuration and documentation is most welcome.
Can post it here or create a separate wiki page to explain it.
May 29
Jordi Marimon says:
Sample configuration: CONFIGURATION CHANGES TO USE USERS AND PASSWORDS. 1. Unco...Sample configuration:
CONFIGURATION CHANGES TO USE USERS AND PASSWORDS.
1. Uncomment "SECURITY CONFIGURATION" at the end of the file web.xml (...\webapps\controller\WEB-INF):
2. Edit users.xml file (...\security):
You can create diferent users, with their own password and assign the role: openremote.
This way use plain text passwords, but I know that there are others ways to encode passwords (digesting user passwords (SHA, MD2 or MD5)). I am going to try but now I do not know how to do.
Jul 06, 2011
Administrator says:
Thanks.Thanks.
Feb 13, 2012
Adolfo Amo says:
Hi Jordi, I tried the settings you mention and it works, but it requests a pass...Hi Jordi,
I tried the settings you mention and it works, but it requests a password to the user to access the server anyway.
Could you explain in which cases you use this configuration? How the Login option at Navigation is used?
I'm trying to prompt the user a password to access a particular screen, ie a security screen where you can activate the alarm, close valves, etc.., but for the rest not.
Any suggestions?
Thanx!
Feb 15, 2012
Eric Bariaux says:
There is currently no way to limit access to a particular screen, only to a part...There is currently no way to limit access to a particular screen, only to a particular panel.
Once the UI is defined, you should "replicate" the UI from one panel to the other and remove the screen that should be protected.
There are ways to make this replication much easier than I would seem.
Unfortunately, I've discovered that a few bugs in the modeler make those difficult / impossible for now.
As soon as a new version of the modeler is online with fixes to those, I'll post back here and explain a bit more how this works.
Jun 07, 2012
Nejc Šmid says:
Hi Eric, I have one question. How to specify particular password for particular...Hi Eric,
I have one question. How to specify particular password for particular panel?
Thanks for the help.
Regards,
Nejc
Jun 08, 2012
Eric Bariaux says:
What you can do is have 2 different users, assign a specific role to each user a...What you can do is have 2 different users, assign a specific role to each user and protect each panel access with a different role.
Protect the panels like this
Define the 2 roles
Then in the tomcat users definition, create user1 with panel1role and user2 with panel2role.
Sep 27, 2012
Nejc Šmid says:
Eric, thanks for your explanation of Panel identity part in Security Configurati...Eric, thanks for your explanation of Panel identity part in Security Configuration.
Now I would like to find out a bit more about Control, Status and Polling command part. In which case they can be used?
Thanks again for your explanation.
Regards,
Nejc
Jun 12
Pierre Kil says:
Hi Jordi, you mentioned that you considered teaching to your students. Did you h...Hi Jordi, you mentioned that you considered teaching to your students. Did you have anything specific in mind?
May 29
Marco Semiao says:
Hello, I use open remote to control a chacon devices with my raspberry for that...Hello,
I use open remote to control a chacon devices with my raspberry for that I develop my protocol with a 433 Mhz transmitter.
I installed on my raspberry applications:
-Controller
-WebConsole (to use the application when I do not go through a smartphone)
-Designer (to add the xml file protocol HomeEasy)
-Beehive (to synchronize Designer with Controller)
All applications work fine, I created my user with the Designer, I enabled the mail...
The only problem is authentication on the controller, it does not know the database defined in the Designer and Beehive. Authentication is done with tags defined in the web.xml (login-config, etc ...)
But now that it passes through the tomcat-users.xml file.
Someone there is an implementation of "org.apache.catalina.Realm" to connect with the login password defined in the Designer?
If this is not the case, I start
Thanks
May 29
Juha Lindfors says:
Tomcat Realm and Designer authentication are not connected. The Tomcat realm is ...Tomcat Realm and Designer authentication are not connected. The Tomcat realm is used for authenticating between the panel and controller (HTTP request authentication). The authentication between controller and designer is done by entering your usename/password on the controller home page http://localhost:8080/controller
HTH
May 29
Marco Semiao says:
yes, I think I explained wrong, my English is bad I would use the login and p...yes, I think I explained wrong, my English is bad
I would use the login and password recorded in the designer to use between the panel and the controller.
May 29
Juha Lindfors says:
The REST security configuration is explained in this thread: controller2.0.1 use...The REST security configuration is explained in this thread: controller2.0.1 user name password set up
You will need to set up the /security/user.xml as such:
HTH
May 29
Marco Semiao says:
use Designer authentication with http resquest authentication for web service re...use Designer authentication with http resquest authentication for web service rest
May 29
Marco Semiao says:
Yes it's work fine to add tomcat users, it's work fine It is necessary to add t...Yes it's work fine to add tomcat users, it's work fine
It is necessary to add this information to a file.
What I want install the applications on the raspberry.
After, it isn't me to using the application, but a user.
And even when it is easier for the user to register the designer and use the same account for web services.
User has no computer knowledge.
May 29
Juha Lindfors says:
I suppose you could add a small tool or web script in your RPi that generates/mo...I suppose you could add a small tool or web script in your RPi that generates/modifies this file.
May 29
Marco Semiao says:
yes, it's a solution or implement "org.apache.catalina.Realm" to call a service ...yes, it's a solution or implement "org.apache.catalina.Realm" to call a service controller to call database information.
I think both solutions to see what suits me best.
If you are interested, I can make a return.
May 29
Juha Lindfors says:
Yes, do let us know what you find and how you decided to solve it.Yes, do let us know what you find and how you decided to solve it.
Jun 12
Marco Semiao says:
I realized an implementation that allows for an authenticated without informing ...I realized an implementation that allows for an authenticated without informing the "tomcat-users.xml" file connection.
The proposed solution is useful in some cases but not all:
• Interesting to not fill in the login and password in the tomcat-users file
• Interesting when a designer and beehive applications installed on its own domain and we do not use the external application https://composer.openremote.org/demo
Operation to the connection to the controller, the implementation of authentication Realm will perform a http call on the beehive application using the login and password provided by the user if the beehive application returns an HTTP code 200, this means that the user exists and then opens the connection.
Small precision:
• The url used is that used by beehive to retrieve the file openremote.zip
• If the connection is successful, the login and password is specified in a map, it can not make another http call. (Of course it is stored in memory and this information is lost every time to shutdown tomcat)
How to use:
• Put a context.xml file in the application controller:
<?xml version='1.0' encoding='utf-8'?> <Context> <Realm className="fr.ms.raspberry.openremote.controller.catalina.realm.ControllerAuthRealm"/> </Context>• Place the jar containing the implementation in the "catalina.home\lib" or "catalina.base\lib" directory (if your tomcat specifies the directory in the file catalina.properties)
That's it.
The URL used to communicate with the rest service beehive is: http://localhost:8080/beehive/rest/
If you want to change you can add in the context.xml file
Example:
Here is the url of the jar: http://dl.free.fr/mpexKysc3
PS: This is an implementation made a few minutes, it is not very complicated, if you are in case you do not have an instance of the application "designer" and "beehive", this solution isn't appropriate because it would open access to your controller to anyone who has an account on Designer "https://composer.openremote.org/demo." The solution would be interesting is to inquire into the Realm implementation, the user at the time of synchronization between the beehive and the controller. As only the user has synchronized the controller can connect to the service rest of the application.
Here's the implementation:
Jun 11
Marcus Redeker says:
You have to put code int {code}...{code} tags.You have to put code int {code}...{code} tags.