gateone 安装与配置

gateone-1.1-1.noarch.rpm 

pam-devel-1.1.1-8.el6.x86_64.rpm 

python-ordereddict-1.1-2.el6.noarch.rpm
libpam-pwdfile-master    

PyPAM-0.5.0-12.el6.x86_64.rpm    

tornado-2.4-1.noarch.rpm

以上文件自己找吧。

1.rpm -ivh *.rpm

2.cd libpam-pwdfile-master

make && make install

ln /lib/security/pam_pwdfile.so /lib64/security/pam_pwdfile.so

3.python gateone.py

4.创建密码文件:

vi /etc/gateone/passwd #密码生成用在线工具就行,记得选择Crypt方式: http://tool.oschina.net/htpasswd

vi /etc/pam.d/gateone

#%PAM-1.0
# Login using a htpasswd file
#@include common-sessionauth
#required pam_pwdfile.so pwdfile=/etc/gateone/passwd
#required pam_permit.so
auth            required        pam_pwdfile.so pwdfile=/etc/gateone/passwd
account         required        pam_permit.so
session         required        pam_permit.so
password        required        pam_deny.so

 

5.修改配置文件:vi /opt/gateone/server.conf

pam_service = "gateone"

auth = "pam"
origins="http://ip"

 

6.service gateone restart

 

你可能感兴趣的:(python,gateone,pam)