Comments (4)
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.
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.
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.
I assume you mean chmod +x
?
Anyways, I'm glad it works for you now.
from mosquitto-auth-plug.
Related Issues (20)
- ACL issue with JWT backend HOT 2
- Inconsistencies between HTTP and JWT code & configuration HOT 3
- Merge be-http and be-jwt into one
- conf->hostname might be uninitialized in be_jwt_init() HOT 2
- ACL issue with %d placeholder - MySQL backend HOT 4
- Compilation Error HOT 1
- Compilation Error config.h: No such file or directory HOT 19
- problem with sizeof HOT 1
- Compile error with Mosquitto 1.5.5 and latest Auth-plug version HOT 2
- Websocket error: connection was lost (verbose output) HOT 4
- given the current vesion of Auth-plug, what version of mosquitto and libwebsockets should I install? HOT 1
- Fact that a user is superuser is not cached HOT 1
- mysql problem acl SUB/PUB HOT 1
- Cannot Load Auth plug-Error HOT 8
- mosquitto_client_id: symbol not found HOT 5
- Failed to create file named auth-plug.so
- Segmentation fault with BE_PSK and postgres backend HOT 1
- HTTP backend doesn't connect, instead rejects subscriptions HOT 1
- HTTP backend not calling api HOT 1
- Issue subscribing with wildcard in MongoDB and maybe MySQL HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mosquitto-auth-plug.