Skip to content

Commit 88f8ea8

Browse files
committed
Update doc/pam.example/pam_sqlite.c
1 parent 0bf2fca commit 88f8ea8

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

doc/pam.example/pam_sqlite.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@
44
// gcc -shared -o pam_sqlite.so pam_sqlite.o -lpam -lsqlite3
55
// cp pam_sqlite.so /usr/lib/security/
66
//
7+
// pam_sqlite.so 模块用到的数据库的表结构如下:
8+
//
9+
// 表名:users
10+
// 字段:username(用户名,主键)、password(密码,非空)
11+
//
12+
// CREATE TABLE users (
13+
// username TEXT PRIMARY KEY,
14+
// password TEXT NOT NULL
15+
// );
16+
//
717

818
#include <stdio.h>
919
#include <stdlib.h>

0 commit comments

Comments
 (0)