Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: password webui2

  1. #1
    Junior Member
    Join Date
    Jul 2017
    Posts
    13

    password webui2

    hi,

    i have installed webui2 and i can't connect with user/password : admin/admin
    neither shinken/shinken

    can you help me
    thanks

  2. #2
    Junior Member
    Join Date
    Jul 2017
    Posts
    13
    hi,

    i have this in the brokerd.log:

    [1504342220] INFO: [broker-master] [WebUI] starting Web UI server on 0.0.0.0:7767 ...
    [1504342221] INFO: [broker-master] Connection OK to the receiver receiver-master
    [1504348992] INFO: [broker-master] [WebUI] user 'admin' is signing in ...
    [1504348992] INFO: [broker-master] [WebUI] Checking authentication for user: admin
    [1504348992] INFO: [broker-master] [WebUI] Requesting authentication for user: admin
    [1504348992] INFO: [broker-master] [WebUI] Authenticating user 'admin'
    [1504348992] INFO: [broker-master] [WebUI] Internal htpasswd authentication
    [1504348992] INFO: [broker-master] [WebUI] Internal alignak backend authentication
    [1504348992] INFO: [broker-master] [WebUI] Internal contact authentication
    [1504348992] INFO: [broker-master] [WebUI-auth-cfg-password] Authenticating user 'admin'
    [1504348992] ERROR: [broker-master] [WebUI-auth-cfg-password] You need to have a contact having the same name as your user: admin
    [1504348992] WARNING: [broker-master] [WebUI] The user 'admin' has not been authenticated.
    [1504348992] WARNING: [broker-master] [WebUI] user 'admin' access denied, redirection to: /user/login?error=Invalid user or Password
    [1504348992] WARNING: [broker-master] [WebUI] login page with error message: Invalid user or Password


    here is my /shinken/etc/contacts/admin.cfg file:

    # This is a default admin
    # CHANGE ITS PASSWORD!

    define contact{
    use generic-contact
    contact_name admin
    contactgroups admin,users
    email shinken@localhost
    pager 0600000000 ; contact phone number
    password admin
    is_admin 1
    expert 1
    }


    what's wrong?
    thanks

  3. #3
    Junior Member
    Join Date
    Jul 2017
    Posts
    13
    hello,

    i changed my admin.cfg file:

    define contact{
    use generic-contact
    contact_name admin
    contactgroups admin,users
    host_notifications_enabled 1
    service_notifications_enabled 1
    host_notification_period 24x7
    service_notification_period 24x7
    service_notification_options w,u,c,r,f
    host_notification_options d,u,r,f
    can_submit_commands 1
    service_notification_commands notify-service-by-email
     host_notification_commands notify-host-by-email
    email trazomtg@free.fr
    password admin
    is_admin 1
    expert 1


    and i have still the error:

    [1504377262] INFO: [broker-master] [WebUI-auth-cfg-password] Authenticating user 'admin'
    [1504377262] ERROR: [broker-master] [WebUI-auth-cfg-password] You need to have a contact having the same name as your user: admin
    [1504377262] WARNING: [broker-master] [WebUI] The user 'admin' has not been authenticated.
    [1504377262] WARNING: [broker-master] [WebUI] user 'admin' access denied, redirection to: /user/login?error=Invalid user or Password
    [1504377262] WARNING: [broker-master] [WebUI] login page with error message: Invalid user or Password

    }

    i don(t know what to do
    thanks

  4. #4
    Junior Member
    Join Date
    Jul 2017
    Posts
    13
    hi,

    i found that in /var/lib/shinken/modules/webui2/submodules/auth.py

    def check_cfg_password_auth(self, username, password):
    ''' Embedded authentication with password stored in contact definition.
    Function imported from auth-cfg-password module.
    '''
    logger.info("[WebUI-auth-cfg-password] Authenticating user '%s'", username)

    c = self.app.datamgr.get_contact(name=username)
    if not c:
    logger.error("[WebUI-auth-cfg-password] You need to have a contact having the same name as your user: %s", username)
    return False

    p = None
    if isinstance(c, dict):
    p = c.get('password', None)
    else:
    p = c.password

    if p == password:
    logger.info("[WebUI-auth-cfg-password] Authenticated")
    return True

    logger.warning("[WebUI-auth-cfg-password] Authentication failed, password mismatch ")
    return False


    is this the reason of my error?
    if yes, how to correct this?

    thanks a lot

  5. #5
    Junior Member
    Join Date
    Aug 2018
    Posts
    1
    Hello,

    I am faced with the same problem.

    I did the installation from source code (git clone) in a virtualenv (just tweaked the setup.py to adjust the default_paths).

    Thanks

  6. #6
    Junior Member
    Join Date
    May 2018
    Location
    Australia
    Posts
    1
    College and university tutors often instruct the student to produce assignments in various formats along with certain guidelines to follow. Assignment writing mostly leads students to an endpoint with no result. They face procrastination, bottle-necks and sleepless nights and many more things that ingest their confidence. To avoid these awkward situations, you should consider getting custom writing services. You will be relieved to see the following facilities that custom writing service has to offer you.

  7. #7
    Each expert is chosen after rigorous testing and has to prove his academic credentials. Online Assignment help Australia being one of the most active assignment help websites has a pool of over 4500+ experts by Assignment Help Australia, UK and US. They are highly qualified and skilled professional writers who have vast experience in writing assignments, dissertations, essays, research papers, term papers etc.

  8. #8
    Junior Member
    Join Date
    May 2019
    Posts
    1
    Using the services of EduBirdie is quite helpful as they help you in quick learning in your writing as well as they provide you the best writing for your articles. I used matlab assignment help service for my essays and found a good paper from them. It can also help you with this.

  9. #9
    Wondermouse technology is the top notch web development company in India that offers innovative solutions that fulfill your business objectives. A group of young enthusiasts are here to cater for your achievement by providing all-round business development assistance. Hundreds of well-tested approaches are introduced after evaluating the present market for significant future growth. We are specialized in website design and web development services. Our website developers provide expert web application development and web design services to our clients. we also offer services across the globe as web design Dubai.

  10. #10
    Junior Member
    Join Date
    Nov 2019
    Posts
    1

    Professional Help

    Thank you for sharing such a brilliant report. Dissertation data analysis help. I must tell am deeply overwhelmed by your entire write-up. It’s not easy to get such kind of knowledge online nowadays. I look ahead to visiting here for a lengthy time. Need help with my capstone project.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •