GithubHelp home page GithubHelp logo

herrold / pam_url Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mricon/pam_url

0.0 1.0 0.0 204 KB

PAM module allowing authentication against web services

License: GNU General Public License v2.0

Makefile 4.51% C 95.49%

pam_url's Introduction

pam_url - authenticate with webservers

This software is opensource software licensed under the GNU Public License version 2.
The author of this software is Sascha Thomas Spreitzer <sspreitzer (at) fedoraproject.org>.
http://spreitzer.name/
https://fedoraproject.org/wiki/User:Sspreitzer

USE THIS SOFTWARE WITH ABSOLUTELY NO GUARANTEE AND WARRANTY


/etc/pam.d/sshd or /etc/pam.d/system-auth:

[...]
auth sufficient pam_url.so [debug] [config=/etc/pam_url.conf]
[...]

This line forms the following url encoded POST data:
user=<username>&passwd=<pass>&mode=<PAM_AUTH|PAM_ACCT|PAM_SESS|PAM_PASS>&PSK=secret&do=auth
It should return either 200 OK with PSK in the body or 403 Forbidden if unsuccessful.

You can additionally set the following options:

    use_first_pass      Use the password previously used in the pam stack
    prepend_first_pass  Prepend the password previously used in the pam stack
                        (This is a handy option in totpcgi deployments when you want
                        to be able to pass both the password and the token code to the
                        verification server. It's probably not useful for any other
                        purpose.)

Please take a look inside the examples directory.
Please read the COPYING, INSTALL and AUTHOR files as well.

pam_url's People

Contributors

awilfox avatar mricon avatar skvidal avatar sspreitzer avatar

Watchers

 avatar

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.