2 Star 2 Fork 7

lang13002 / pam_sqlite3

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.en.md

pam_sqlite3

Description

This module provides support for authenticating with SQLite for OpenVPN.

Installation

  1. # cd pam_sqlite3
  2. # make
  3. # cp pam_sqlite3.so /lib64/security/

Setting

  1. create pam service
# /etc/pam.d/openvpn
# crypt:  
# 0 = No encryption  
# 1 = md5  
# 2 = sha1  
auth        required    pam_sqlite3.so db=/etc/openvpn/openvpn.db table=t_user user=username passwd=password expire=expire crypt=1
account     required    pam_sqlite3.so db=/etc/openvpn/openvpn.db table=t_user user=username passwd=password expire=expire crypt=1
  1. create sqlite3 file
/etc/openvpn/openvpn.db

create table t_user (
     username text not null, 
     password text not null, 
     active int, 
     expire text
);

Repository Comments ( 1 )

Sign in for post a comment

About

pam_sqlite3 提供对针对OpenVPN利用SQLite进行身份验证的支持。 expand collapse
C
GPL-3.0
Cancel

Releases

No release

Contributors

All

Activities

load more
can not load any more
C
1
https://gitee.com/lang13002/pam_sqlite3.git
git@gitee.com:lang13002/pam_sqlite3.git
lang13002
pam_sqlite3
pam_sqlite3
master

Search

181749 a2d7925e 1850385 181749 9f8568a7 1850385