Skip to main content

Hello,

I lost my password GUI  , I can access to logpoint just via CLI ,

 

How I can reset my GUI password 

 

thanks 

Hello,

If you have lost access to the LogPoint or LPSM GUI, resetting the password is relatively simple with the Forgot Password? option, provided that you have a valid email address configured.

If, instead, you have lost access to the Director Console GUI, then things are less-than-straightforward. But you can create a support ticket and we will get it sorted.


Hi,

if you lost pwd to GUI and cant use the forgotten pwd option but still have access to CLI (li-admin and then partner / root) then you can run the below python script which will let you change the password:

import werkzeug
from pylib.mongo import get_makalu
import getpass
 
username = input("Enter username: ")
pwd1 = getpass.getpass(prompt="Please enter your password: ")
pwd2 = getpass.getpass(prompt="Please re-enter your password: ")
 
if username and pwd1 and pwd2:
    if pwd1 == pwd2:
        hashed_password = werkzeug.generate_password_hash(pwd1)
        db=get_makalu()
        result = db.user.update_one({"username":username},{"$set":{"password":hashed_password}})
        print("-----------------------------")
        print ("#Record Matched: ", result.matched_count)
        print ("#Record Modified: ", result.modified_count)
        if (result.matched_count == 0):
            print("No records matching this username!")
        if (result.modified_count == 1):
            print("Password changed successfully!")
        else:
            print("Password was not changed!")
    else:
        print ("!!Passwords do not match!!")

Reply