checkpassword-reply.c revision b3c3d6f46f165cee9f9e80145b9ab5f636a81ba7
/* simple checkpassword wrapper to send userdb data back to dovecot-auth */
#include "lib.h"
#include "str.h"
#include "write-full.h"
#include <stdlib.h>
#include <unistd.h>
int main(void)
{
lib_init();
i_error("checkpassword: USER contains TAB");
return 1;
}
}
i_error("checkpassword: HOME contains TAB");
return 1;
}
}
}
}
}
if (!uid_found)
if (!gid_found)
i_error("checkpassword: write_full() failed: %m");
exit(111);
}
if (authorized == NULL) {
/* authentication */
return 0;
return 2;
} else {
return 111;
}
}