WITH_EXTERNAL_SECURITY_CHECKS question

Asked by Hadi Hariyadi

I'm trying to compile mosquitto to use username/password from external db
so I enable WITH_EXTERNAL_SECURITY_CHECKS on the config
getting error:
....................................
loop.o: In function `mosquitto_main_loop':
/usr/src/mosquitto-0.15/src/loop.c:214: undefined reference to `mosquitto_security_apply'
collect2: ld returned 1 exit status
make[1]: *** [mosquitto] Error 1
.......................................

why this error happen?
Did I need to add something / missing something?

Any example on how to use username/password from external db?

thanks.

Question information

Language:
English Edit question
Status:
Answered
For:
mosquitto Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Roger Light (roger.light) said :
#1

I think that's an error on my part, not yours.

mosquitto_security_apply() is intended to disconnect users after the configuration has been reloaded (including username/passwords). It's probably not applicable in your case so you can simply define an empty function:

int mosquitto_security_apply(struct _mosquitto_db *db)
{
    return MOSQ_ERR_SUCCESS;
}

I'm afraid there are no examples available as far as I know.

Can you help with this problem?

Provide an answer of your own, or ask Hadi Hariyadi for more information if necessary.

To post a message you must log in.