Giter VIP home page Giter VIP logo

pam_sqlite3's People

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

pam_sqlite3's Issues

"pwd_type_column" value not working

Hi,
I was trying to implement an MD5 hashed password column and added the "pwd_type_column" variable with a column as explained.
I added the md5 password to the db and set the type to "md5" or "crypt". But unfortunately it has always used the default value which is "clear", as if the variable wouldnt been set.
Then I tried with the older "ledav-net/pam_sqlite" plugin and the "pw_type" variable. It worked now.

I assumed that something must be wrong with your newer version, so I added the older "pw_type" variable to the /etc/pam_sqlite3.conf. This also worked now!

So I guess there is either something wrong in your code or my setup is now fully broken from experimenting :D

Greetings
Robert

Improvements in README

I've missed some (trivial but key) information in README to get this module working. Specifically:

*A suggested Sqlite3 table schema, for instance:
CREATE TABLE users (name TEXT PRIMARY KEY, password TEXT NOT NULL, hasexpired TEXT DEFAULT "0", needsnewpassword TEXT DEFAULT "0");
INSERT INTO users (name, password) VALUES ("pepe","1234");

*Some tips about PAM configuration in /etc/pam.d/common-{auth,account,password} files in Ubuntu/Debian or /etc/pam.d/systemd-auth in Fedora. For instance, put auth sufficient pam_sqlite3.so instead of auth required pam_sqlite3.so before existing pam_unix.so line and, optionally, comment pam_unix.so line, etc

*It is worth adding this information: #4

*On the other hand, link http://cormander.com/blog/2008/04/pam_sqlite3-module-available/ is dead
and compilation has been tested (by me) in Ubuntu 18.04.1 and Fedora 29.

Thanks!

test application fails

The test application produced by make test fails:

PAM started.
Authentication failed: Authentication failure
Access denied: Authentication failure
Changing authentication token...
Failed: Authentication token manipulation error

I get the impression it's not actually testing the module, but I don't know enough about it to diagnose the problem properly.

Dependencies

I happen to not found the dependencies you need in the README section, if someone has the same isue there they are: libsqlite3-dev libpam0g-dev

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.