Pandora FMS Community

Autologin

Patrick8516 · 16 sept 2021, 11:57 · 3 mensajes · 106 visitas

  1. Inicio del debate

    Hey! I want to set up a raspberry pi that automatically logs onto the Webinterface and shows the tactical view. That works perfectly fine, but every time the raspberry restarts i have to sign in again. In Documentation I found that its possible to auto login via a hash password. What I've done: 1) Setup a Autologin (hash) Password in settings 2) Setup a user named autologin (same password as above) 3) got a mb5 hash out of: "usernamepassword" I tried to put that into my Link: // mb5sum = the mb5hash i got out of 3) http://localhost/pandora\_console/index.php?loginhash\_data=mb5sum&loginhash\_user=autologin&loginhash=1&sec2=operation/agentes/tactical Sadly doesnt work. Had a look at /extras/sample_login.php Sourcecode suggests creating a html submit button to make it work. Tried that:

                           

    Button works great in forwording me to the website - but a password and username is still required to be entered. I feel like i've tried everything I could. If anyone can help me I would be so glad.

  2. Hey! I want to set up a raspberry pi that automatically logs onto the Webinterface and shows the tactical view. That works perfectly fine, but every time the raspberry restarts i have to sign in again. In Documentation I found that its possible to auto login via a hash password. What I've done: 1) Setup a Autologin (hash) Password in settings 2) Setup a user named autologin (same password as above) 3) got a mb5 hash out of: "usernamepassword" I tried to put that into my Link: // mb5sum = the mb5hash i got out of 3) http://localhost/pandora\_console/index.php?loginhash\_data=mb5sum&loginhash\_user=autologin&loginhash=1&sec2=operation/agentes/tactical Sadly doesnt work. Had a look at /extras/sample_login.php Sourcecode suggests creating a html submit button to make it work. Tried that:                         Button works great in forwording me to the website - but a password and username is still required to be entered. I feel like i've tried everything I could. If anyone can help me I would be so glad.

    Hi Patrick8516, We have carried out tests and we have no problems logging in without having to enter the credentials. 1º Check that the "Automatic login (hash) password" parameter in your console is the same as the one configured in the script. In the menu "Setup --> Setup --> General Setup". 2º Remember that you only have to change the credentials and the IP of the script: /var/www/html/pandora_console/extras/sample_login.php

    <?php
    // Static password, set at both ends
    $pwd = 'XXXXXXXXXX';
    $user = 'YYYYYYYYYY';
    $data = $user.$pwd;
    $data = md5($data);
    
    echo "DEBUG md5sum $data user $user Pass $pwd";
    echo '';
    echo '';
    echo '';
    echo '';
    echo '';
    

    (Link not available anymore) When you run the script you should only see the button with the parameters you entered. When you click it you should be logged in instantly. In case you are asked for credentials, check the execution in another browser. Best regards, Víc.

  3. "(Link not available anymore) slope game

    When you run the script you should only see the button with the parameters you entered. When you click it you should be logged in instantly. In case you are asked for credentials, check the execution in another browser.

    Best regards,

    Víc."

    Thanks a lot! I'll try that out.

Entra en tu cuenta para publicar.