Pages: [1]   Go Down
Author Topic: AutoLogin  (Read 435 times)
0 Members and 1 Guest are viewing this topic.
FMSer
Newbie
*

Karma: 0
Offline Offline

Posts: 7


View Profile
« on: October 06, 2010, 03:07:34 PM »

I've got everything where I want it, but now I'm setting up the views for an over-head monitor.  I will need the auto login feature working for this, but I haven't been able to figure it out.  Here's what I've done thus far:

1. Created a user called autologin
2. Set a password for the user "pandora"
3. Went to "Administration" --> "Setup" and entered "pandora" in the "Auto login (hash) password" box.  MD5 won't fit, so I assume that you're looking for the actual password here, and not the hash.  (It's a little confusing, and could be the problem)
4. Entered the following url:
http://pandora/pandora_console/index.php?loginhash=auto&loginhash_user=autologin&loginhash_data=1da7ee7d45b96d0e1f45ee4ee23da560&sec=estado&sec2=operation/agentes/group_view&refr=0
I'm always prompted for a username/password combo. 

What am I missing?
Logged

FMSer
Newbie
*

Karma: 0
Offline Offline

Posts: 7


View Profile
« Reply #1 on: October 06, 2010, 06:43:34 PM »

I figured it out because it's not just the password that is encrypted with the MD5, but rather the username as well.  If you want to set the autologin, enter the password of the autologin user in the Administration/System password box

// Password estatica, se define en ambos extremos
$pwd = "pandorafree";

$user = "autologin";
$data = $user.$pwd;
$data = md5($data);

You can go here to create the MD5 hash
http://md5-hash-online.waraxe.us/
Put in autologinpandora then the resulting MD5 hash can be used to auto logon to your Pandora server.
http://servername/pandora_console/index.php?loginhash=a3e69bcc9b27b0678c21198d0c08597f&sec=estado&sec2=operation/agentes/estado_agente&refr=60

Good Luck
Logged

FMSer
Newbie
*

Karma: 0
Offline Offline

Posts: 7


View Profile
« Reply #2 on: October 06, 2010, 08:25:11 PM »

Well...my mistake.

I got the /extra/sample_login.php file to work, but if I log out, it doesn't work with using just a URL only run from a link.

The correct URL looks like it should be:

http://pandora.server.net/pandora_console/index.php?loginhash=auto&loginhash_user=autologin&loginhash_data=MD5HASHDATA&sec=estado&sec2=operation/agentes/estado_agente&refr=60
Logged

Pages: [1]   Go Up
Print
 
Jump to:  


SourceForge.net Logo  This site is monitored by Pandora FMS   ArticaST