Giter Site home page Giter Site logo

Comments (4)

jpmens avatar jpmens commented on June 3, 2024

Without seeing your config it's hard to see what is happening. I'm assuming you configured credentials for MySQL backend incorrectly.

from mosquitto-auth-plug.

mariopraga avatar mariopraga commented on June 3, 2024

This is my mosquitto.conf and start command :
/usr/sbin/mosquitto -d -c /etc/mosquitto/mosquitto.conf > /var/log/mosquitto.log 2>&1 &

pid_file /var/run/mosquitto.pid

persistence true
persistence_location /var/lib/mosquitto/

include_dir /etc/mosquitto/conf.d

auth_plugin /usr/lib64/auth-plug.so
auth_opt_backends mysql

auth_opt_host localhost
auth_opt_port 3306
auth_opt_username mqtt
auth_opt_password mqtt
auth_opt_dbname mqttwarn_db
auth_opt_userquery SELECT pw FROM mosquitto-auth-users WHERE username = '%s'

from mosquitto-auth-plug.

mariopraga avatar mariopraga commented on June 3, 2024

Sorry, I have just found the problem

wrong:
auth_opt_username
auth_opt_password

correct:
auth_opt_user
auth_opt_pass

Still cannot connect with user and password ( have to do some checks ) , instead I noticed a big issue. When i run mosquitto_pub from my linux terminal without using user and password parameters the mosquitto daemon crash.

from mosquitto-auth-plug.

jpmens avatar jpmens commented on June 3, 2024

You are going to have to give me more information. Linux disto, Mosquitto version, full configs (without your passwords) and exact testing procedures.

from mosquitto-auth-plug.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.