如何创建一个pam模块? [英] how to create a pam module?

查看:128
本文介绍了如何创建一个pam模块?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谁能告诉我这个... 我想创建一个类似于/etc/pam.d

Can anyone tell me about this... I want to create a pam module similar to the login module in /etc/pam.d

推荐答案

如果您正在登录时寻找基于pam的面部认证,则需要编写一个为您执行此操作的模块,并将其插入/etc的登录配置文件中/pam.d/login.

If you are looking for pam based face authentication during login, you need to write a module which does that for you and plug that in login configuration file at /etc/pam.d/login.

在直接讨论此问题之前,我建议您编写一些简单的模块来了解流程,PAM和配置文件的工作,例如开始使用sshd pam配置文件并尝试插入一些可用的样本pam模块.我发现这些文章很有帮助:

Before directly get into this, I would suggest you to write some simple module to understand the flow, working of PAM and configuration file like start playing with sshd pam configuration file and try to plug some sample pam module available. I found these article quite helpful :

http://aplawrence.com/Basics/understandingpam.html

https://www.packtpub.com/article/开发可插拔认证模块-pam

FYI:Rohan Anil在GSOC08期间的opensuse下开发了pam-face-authentication,该主机托管在code.google.com/p/pam-face-authentication/

FYI : Rohan Anil developed pam-face-authentication during GSOC08 under opensuse which is hosted at code.google.com/p/pam-face-authentication/

这篇关于如何创建一个pam模块?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆