GithubHelp home page GithubHelp logo

Comments (7)

jpmens avatar jpmens commented on July 22, 2024 2

You have not told the plugin which backend to use!

auth_opt_backends

from mosquitto-auth-plug.

jpmens avatar jpmens commented on July 22, 2024

undefined symbol: deflate sounds like linking with -lz is missing

from mosquitto-auth-plug.

jpmens avatar jpmens commented on July 22, 2024

or is it -lzlib?

from mosquitto-auth-plug.

AggelosGroumas avatar AggelosGroumas commented on July 22, 2024

Thanks for your response. I was putting the -lz flag in the wrong place so i had the illusion i was linking.
For future readers: Modify LDADD variable adding "-lz" at the end.

Now i get however:
1422613437: Config loaded from mosquitto.conf.
1422613437: |-- *** auth-plug: startup
|-- No backends configured.
|-- *** ABORT.

from mosquitto-auth-plug.

jpmens avatar jpmens commented on July 22, 2024

|-- No backends configured.
|-- *** ABORT.

Looks pretty self-explanatory to me.

from mosquitto-auth-plug.

AggelosGroumas avatar AggelosGroumas commented on July 22, 2024

Yes i know, the thing is i had a mysql backend configured
I used the .sql script located in the examples folder.

conf file is:
pid_file ./mosquitto.pid

persistence true
persistence_file mosquitto.db
persistence_location /tmp/
connection_messages true
log_timestamp true
log_dest stderr

log_type debug

listener 1883

auth_plugin /usr/lib/x86_64-linux-gnu/auth-plug.so
auth_opt_host localhost
auth_opt_port 3306
auth_opt_dbname test
auth_opt_user root
auth_opt_pass root
auth_opt_userquery SELECT pw FROM users WHERE username = '%s'
auth_opt_superquery SELECT COUNT(*) FROM users WHERE username = '%s' AND super = 1
auth_opt_aclquery SELECT topic FROM acls WHERE (username = '%s') AND (rw >= %d)

from mosquitto-auth-plug.

AggelosGroumas avatar AggelosGroumas commented on July 22, 2024

Indeed that slipped through.
Thank you very much for your time!

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.