Giter Site home page Giter Site logo

Comments (7)

jpmens avatar jpmens commented on June 12, 2024

Are you running on Linux with a 64-bit OS? If so, please tell me which distro/version.

If it is 64 bit, you're going to have to place the .so in /usr/lib64/ (or whatever it's called on your machine)

from mosquitto-auth-plug.

iandl avatar iandl commented on June 12, 2024

It's 32 bit Ubuntu 13.04

from mosquitto-auth-plug.

jpmens avatar jpmens commented on June 12, 2024

Please run an ldd /usr/lib/auth-plug.so

and ldd /usr/sbin/mosquitto (or wherever the mosquitto binary is located)

from mosquitto-auth-plug.

iandl avatar iandl commented on June 12, 2024

ok:ldd /usr/lib/auth-plug.so
linux-gate.so.1 => (0xb77bd000)
libcrypto.so.1.0.0 => /lib/i386-linux-gnu/libcrypto.so.1.0.0 (0xb75f6000)
libmysqlclient.so.18 => /usr/lib/i386-linux-gnu/libmysqlclient.so.18 (0xb72df000)
libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb712b000)
libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xb7126000)
libz.so.1 => /lib/i386-linux-gnu/libz.so.1 (0xb710d000)
libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xb70f2000)
libstdc++.so.6 => /usr/lib/i386-linux-gnu/libstdc++.so.6 (0xb7009000)
libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xb6fc5000)
libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xb6fa8000)
/lib/ld-linux.so.2 (0xb77be000)

and for mosquitto:

ldd /usr/sbin/mosquitto
linux-gate.so.1 => (0xb7747000)
libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xb772d000)
libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xb76ea000)
librt.so.1 => /lib/i386-linux-gnu/librt.so.1 (0xb76e0000)
libwrap.so.0 => /lib/i386-linux-gnu/libwrap.so.0 (0xb76d6000)
libssl.so.1.0.0 => /lib/i386-linux-gnu/libssl.so.1.0.0 (0xb767f000)
libcrypto.so.1.0.0 => /lib/i386-linux-gnu/libcrypto.so.1.0.0 (0xb74d4000)
libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb7321000)
/lib/ld-linux.so.2 (0xb7748000)
libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xb7305000)
libnsl.so.1 => /lib/i386-linux-gnu/libnsl.so.1 (0xb72ec000)
libz.so.1 => /lib/i386-linux-gnu/libz.so.1 (0xb72d3000)

from mosquitto-auth-plug.

iandl avatar iandl commented on June 12, 2024

I think I might have solved it. Seems it might be related to not having compiled mosquitto first (I installed the binary package from the past the downloader the source separately. ..I only found this out when I decided to try and debug mosquitto and recompiled it).

Now I just seem to have issues with connecting to mysql. .. seems to baulk at the username and password then abort but I know the mysql creds work.

from mosquitto-auth-plug.

iandl avatar iandl commented on June 12, 2024

yup all fixed. Although the bug connecting to MySQL is where the plugin doesn't trim the username field to 'root' and 'root ' are considered different. I had to go and remove trailing whitespace from the config.

from mosquitto-auth-plug.

jpmens avatar jpmens commented on June 12, 2024

Works as designed; trailing white space is a "feature" of Mosquitto's config file processing.

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.