View unanswered posts | View active topics It is currently Fri Dec 19, 2014 11:38 pm



Reply to topic  [ 2 posts ] 
Passwordless shortcut login with auth hash. How to? 
Author Message

Joined: Tue Mar 20, 2012 3:26 pm
Posts: 2
Post Passwordless shortcut login with auth hash. How to?
Hi people!
I use zoneminder 1.25 and all works fine, but I want shortcut for secure passwordless login.
There is FEATURE - Allows shortcut logins on any page of web interface via passing of 'auth' hash as currently passed to zms. This must be explicitly enabled via AUTH_HASH_LOGINS option.

How can I use it? What would be shortcut URL? Help article says about "auth" option - how to use it?

Thanks from Russia!


Tue Mar 20, 2012 3:39 pm
Profile

Joined: Tue Mar 20, 2012 3:26 pm
Posts: 2
Post Re: Passwordless shortcut login with auth hash. How to?
OK! if nobody can help me... I hack file /var/www/includes/functions.php

and change if in function getAuthUser( $auth )

if ( $user['Username']=="demo" && $auth == ZM_AUTH_HASH_SECRET )

And setp up user demo with minimal rights and set up options:

AUTH_TYPE builtin
AUTH_RELAY hashed
AUTH_HASH_SECRET secret_passphrase
AUTH_HASH_IPS No
AUTH_HASH_LOGINS yes

And after that I can autologin with:

/index.php?username=demo&auth=secret_passphrase


Tue Apr 10, 2012 8:53 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group