version 1.1.2.15, 2011/12/09 14:01:37
|
version 1.1.2.16, 2011/12/12 09:24:25
|
Line 1
|
Line 1
|
#include "global.h" |
#include "global.h" |
|
#include "rtlm.h" |
#include "mqttd.h" |
#include "mqttd.h" |
|
|
|
|
extern char cliCmd[], *cliStr[]; |
|
|
|
|
|
static inline struct tagSession * |
static inline struct tagSession * |
initSession(int sock, char * __restrict addr) |
initSession(int sock, char * __restrict addr) |
{ |
{ |
Line 124 startSession(sched_task_t *task)
|
Line 122 startSession(sched_task_t *task)
|
} |
} |
|
|
/* check online table for user */ |
/* check online table for user */ |
|
if (call.LoginACC(&cfg, acc, sess->sess_user, sess->sess_pass)) { |
|
VERB(1) syslog(LOG_WARNING, "Login:: DENIED for username %s and password %s", |
|
sess->sess_user, sess->sess_pass); |
|
goto end; |
|
} else |
|
VERB(1) syslog(LOG_WARNING, "Login:: ALLOWED for username %s ...", sess->sess_user); |
|
|
/* Start session thread OK ... */ |
/* Start session thread OK ... */ |
TAILQ_INSERT_TAIL(&Sessions, sess, sess_node); |
TAILQ_INSERT_TAIL(&Sessions, sess, sess_node); |