Giter Site home page Giter Site logo

Comments (4)

jpmens avatar jpmens commented on June 11, 2024

The ldd looks ok to me... You don't say whether or not you're getting errors, and if so, which, upon loading the module. Also, you might want to show me your Mosquitto config (without the comments).

from mosquitto-auth-plug.

ijwhite avatar ijwhite commented on June 11, 2024

Here's the error and below the config:

1396636427: mosquitto version 1.3.1 (build date 2014-03-25 00:22:28+0000) starting
1396636427: Config loaded from /etc/mosquitto/mosquitto.conf.example.
1396636427: Error: Unable to load auth plugin "/usr/lib/x86_64-linux-gnu/auth-plug.so".
iandl@mosquitto:~$ file /usr/lib/x86_64-linux-gnu/auth-plug.so
/usr/lib/x86_64-linux-gnu/auth-plug.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=0x6a4d3aafae9fa3edc6e66ae61e99caeeaec9b014, not stripped

capath /etc/mosquitto/ca_certificates/ca.crt
certfile /etc/mosquitto/certs/server.crt
keyfile /etc/mosquitto/certs/server.key
listener 8883
auth_plugin /usr/lib/x86_64-linux-gnu/auth-plug.so
auth_opt_db_host 127.0.0.1
auth_opt_db_port 3306
auth_opt_db_username myuser
auth_opt_db_password mypwd
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)
auth_opt_superusers S

from mosquitto-auth-plug.

ijwhite avatar ijwhite commented on June 11, 2024

Seem I shouldn't believe the mosquitto config:

When run as root, drop privileges to this user and its primary

group.

Leave blank to stay as root, but this is not recommended.

If run as a non-root user, this setting has no effect.

Note that on Windows this has no effect and so mosquitto should

be started by the user you wish it to run as.

#user mosquitto

This doesn't work on ubuntu... a chmod of the auth-plug makes things work!

from mosquitto-auth-plug.

jpmens avatar jpmens commented on June 11, 2024

I assume you mean chmod +x ?

Anyways, I'm glad it works for you now.

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.