gateone配置pam认证
2017-12-15 14:58
176 查看
参考:http://blog.csdn.net/rexkang/article/details/40819537
https://wiki.archlinux.org/index.php/Gateone
1.认证的设置在
vi /etc/gateone/conf.d/20authentication.conf
auth = "pam"
pam_service = "gateone"
2.配置用户名密码,保存在users.passwd
htpasswd -c -d /etc/gateone/users.passwd user1
3.vi /etc/pam.d/gateone(这个文件里用到了pam_pwdfile.so,和pam_permit.so,需要下载源码编译)
#%PAM-1.0
# Login using a htpasswd file
#@include common-sessionauth
required pam_pwdfile.so pwdfile etc/gateone/users.passwd
required pam_permit.so
4.下载pam
git clone https://github.com/tiwe-de/libpam-pwdfile.git
然后编译,刚开始编译出错,提示缺少文件
security/pam_appl.h:没有那个文件或目录
yum install pam-devel即可解决(我查的其他文章中的yum install git pam-devel pam PyPAM pam-devel,但是我执行完成好像还有错误,然后用yum install pam-devel就解决了)
make && make install
ln /lib/security/pam_pwdfile.so /lib64/security/pam_pwdfile.so
5.然后我们访问https://ip:port就弹出了一个填用户名密码的框
https://wiki.archlinux.org/index.php/Gateone
1.认证的设置在
conf.d/20authentication.conf中
vi /etc/gateone/conf.d/20authentication.conf
auth = "pam"
pam_service = "gateone"
2.配置用户名密码,保存在users.passwd
htpasswd -c -d /etc/gateone/users.passwd user1
3.vi /etc/pam.d/gateone(这个文件里用到了pam_pwdfile.so,和pam_permit.so,需要下载源码编译)
#%PAM-1.0
# Login using a htpasswd file
#@include common-sessionauth
required pam_pwdfile.so pwdfile etc/gateone/users.passwd
required pam_permit.so
4.下载pam
git clone https://github.com/tiwe-de/libpam-pwdfile.git
然后编译,刚开始编译出错,提示缺少文件
security/pam_appl.h:没有那个文件或目录
yum install pam-devel即可解决(我查的其他文章中的yum install git pam-devel pam PyPAM pam-devel,但是我执行完成好像还有错误,然后用yum install pam-devel就解决了)
make && make install
ln /lib/security/pam_pwdfile.so /lib64/security/pam_pwdfile.so
5.然后我们访问https://ip:port就弹出了一个填用户名密码的框
相关文章推荐
- 【redhat5.5】linux的LDAP认证服务器的配置及客户端pam网络验证实例
- linuxPAM认证配置文件解析
- Linux可插拔认证模块(PAM)的配置文件、工作原理与流程
- 【redhat5.5】配置Apache的别名的pam认证
- vsftpd虚拟用户认证配置(vsftpd+pam+mysql)
- vsftpd基于pam_mysql的认证和hash编码的方式配置虚拟用户
- PAM-Linux可插拔认证模块(PAM)的配置文件、工作原理与流程
- 【redhat5.5】linux的LDAP认证服务器的配置及客户端pam网络验证实例
- TCP WRAPPERS、denyhosts软件的安装和配置、PAM身份认证模块应用
- Linux可插拔认证模块(PAM)的配置文件、工作原理与流程
- 如何在RHEL6上配置PAM LDAP认证(How to setup LDAP Authentication for PAM on RHEL6 x86_64)
- Linux可插拔认证模块(PAM)的配置文件、工作原理与流程
- Linux可插拔认证模块(PAM)的配置文件、工作原理与流程
- Centos 6.5上Apache + PAM + SVN服务安装配置(使用本地系统用户认证)
- Linux可插拔认证模块(PAM)的配置文件、工作原理与流程
- PAM-Linux可插拔认证模块(PAM)的配置文件、工作原理与流程 .
- centos6.5下vsftpd服务的安装及配置并通过pam认证实现虚拟用户文件共享
- centos6.5下vsftpd服务的安装及配置并通过pam认证实现虚拟用户文件共享
- vsftp虚拟用户pam认证文件的创建和配置
- nsswitch&PAM认证框架