auth_req
struct auth_req auth_req;
memset(&auth_req, 0, sizeof(auth_req));
if (strlcpy(auth_req.name, username,
sizeof(auth_req.name)) >= sizeof(auth_req.name))
if (strlcpy(auth_req.password, password,
sizeof(auth_req.password)) >= sizeof(auth_req.password))
auth_req.fd = req->conn->fd;
auth_req.msgid = req->msgid;
if (imsgev_compose(iev_ldapd, IMSG_LDAPD_AUTH, 0, 0, -1, &auth_req,
sizeof(auth_req)) == -1)
memset(&auth_req, 0, sizeof(auth_req));
struct auth_req *areq = imsg->data;