Giter VIP home page Giter VIP logo

pam-python-ipcpu's Introduction

pam-python-ipcpu

Linux 的PAM模块,安装后可以调用python脚本执行PAM模块的相关逻辑。

##安装

编译依赖,依赖于pam、pam-devel模块

yum install pam pam-devel -y

编译

make lib

找到编译后的.so文件,拷贝到/lib64/security/目录

##使用 可以参照案例 utils/2factor-with-PIN/的相关内容

个人网站有详细的应用使用方法。 http://www.ipcpu.com/2016/04/linux-pam-python/

pam-python-ipcpu's People

Contributors

ipcpu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

pam-python-ipcpu's Issues

pam-paython need paython2.6

当服务器python版本是2.7时会有报错:

PAM unable to dlopen(/usr/lib64/security/pam_python.so): libpython2.6.so.1.0: cannot open shared object file: No such file or directory

可以直接将 libpython2.7.so.1.0 连接为 libpython2.7.so.1.0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.