projects
/
idzebra-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added authentication check facility to zebra.
[idzebra-moved-to-github.git]
/
util
/
passtest.c
diff --git a/util/passtest.c
b/util/passtest.c
new file mode 100644
(file)
index 0000000..
160a9b1
--- /dev/null
+++ b/
util/passtest.c
@@ -0,0
+1,14
@@
+
+#include <passwddb.h>
+
+int main (int argc, char **argv)
+{
+ Passwd_db db;
+
+ db = passwd_db_open();
+
+ passwd_db_file (db, "/etc/passwd");
+ passwd_db_show (db);
+ passwd_db_auth (db, "adam", "xtx9Y=");
+ passwd_db_close (db);
+}