auto login

Forum for questions and support relating to the 1.27.x releases only.
Post Reply
d.kilshtein
Posts: 10
Joined: Tue Apr 15, 2014 12:09 pm

auto login

Post by d.kilshtein » Fri Oct 23, 2015 8:59 am

Hi all

i want to view my cameras with kodi (former xbmc). i used this plugin plugin.video.zoneminder-master (from http://forum.kodi.tv/showthread.php?tid ... pid2140669)

on my ZM, i have only one user - admin. with this configuration:

OPT_USE_AUTH Authenticate user logins to ZoneMinder (?) checked
AUTH_TYPE What is used to authenticate ZoneMinder users (?) builtin
AUTH_RELAY Method used to relay authentication information (?) plain
AUTH_HASH_SECRET Secret for encoding hashed authentication information (?) xxxxxx
AUTH_HASH_IPS Include IP addresses in the authentication hash (?) unchecked
AUTH_HASH_LOGINS Allow login by authentication hash (?) unchecked
OPT_FAST_DELETE Delete only event database records for speed (?) unchecked


when connecting with kodi, i get "authentication needed message" though i set all parameters correctly.
kodi plug in generates this url for login :
http://192.168.0.10/zm/?skin=classic&us ... tion=login

when i use this url, from my Chrome browser i get the ZM login screen (i guess that is why kodi fails)
is there a way to login into ZM without the login screen? is my configuration ok?

thanks a lot.

d.kilshtein
Posts: 10
Joined: Tue Apr 15, 2014 12:09 pm

Re: auto login

Post by d.kilshtein » Fri Oct 23, 2015 7:13 pm

well i found out how to auto login:
http://<IP>/zm/?action=login&view=postlogin&username=<USER>&password=<PASS>
i was missing the "view=postlogin" part (used the wireshark to check the data during login).
it works from any browser but sadly not with the kodi plugin

CeruleanShine
Posts: 2
Joined: Mon Jun 22, 2020 5:08 am

Re: auto login

Post by CeruleanShine » Mon Jun 22, 2020 5:11 am

Here is a PHP script to login to ZoneMinder https://github.com/DarrellDuane/zm-logi ... ts-example

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests