Enabling authentication

I want to require a username/password for access to the sitemaps but I’m a little confused by the wiki (https://github.com/openhab/openhab/wiki/Security). I’m using ubuntu and it’s running openhab as a service so where would I add this to “-Djava.security.auth.login.config=./etc/login.conf”?

Thanks

Ross

I assume you used the apt-get method of install? I don’t use that method so I’m not 100% sure where it puts things.

I downloaded the bundles manually and placed them in /opt/openhab. You would modify /opt/openhab/start.sh and add the line in the "java " section with the other entries.

Then create the /opt/openhab/configurations/users.cfg with your accounts

edit /opt/openhab/configurations/openhab.cfg’s security:option to on/off/external and add a security:netmask= your internal subnet if you don’t want auth on your lan.

Thanks! I’ll give this a try tonight.

1 Like

Worked great - thanks!!

1 Like