#include "FileCheck.h" int FileCheck( char *file, char *user, char *pass) { PassFile fileauth(to_string(file)); try { if (fileauth.GetValue(to_string(user)) != to_string(pass)) { //bad pass - return -1 return -1; } else { //authed - return 0 return 0; } } catch (int e) { //no user - return 1 return 1; } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 7332 | Nick Poole |
Preliminary version of AuthCheck A multi-stage authentication application for use as an authentication trigger. Currently only tested against an LDAP server without TLS and against a flat file with plain-text passwords. (Under Windows XP). ToDo: Test against TLS enabled LDAP. Test against AD's LDAP interface. Test build on *nix. Add MD5 hashed flat file mode. Add DB modes (SQLite, MySQL, etc). |