README 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. pam_userdb — PAM module to authenticate against a db database
  2. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
  3. DESCRIPTION
  4. The pam_userdb module is used to verify a username/password pair against values
  5. stored in a Berkeley DB database. The database is indexed by the username, and
  6. the data fields corresponding to the username keys are the passwords.
  7. OPTIONS
  8. crypt=[crypt|none]
  9. Indicates whether encrypted or plaintext passwords are stored in the
  10. database. If it is crypt, passwords should be stored in the database in
  11. crypt(3) form. If none is selected, passwords should be stored in the
  12. database as plaintext.
  13. db=/path/database
  14. Use the /path/database database for performing lookup. There is no default;
  15. the module will return PAM_IGNORE if no database is provided. Note that the
  16. path to the database file should be specified without the .db suffix.
  17. debug
  18. Print debug information. Note that password hashes, both from db and
  19. computed, will be printed to syslog.
  20. dump
  21. Dump all the entries in the database to the log. Don't do this by default!
  22. icase
  23. Make the password verification to be case insensitive (ie when working with
  24. registration numbers and such). Only works with plaintext password storage.
  25. try_first_pass
  26. Use the authentication token previously obtained by another module that did
  27. the conversation with the application. If this token can not be obtained
  28. then the module will try to converse. This option can be used for stacking
  29. different modules that need to deal with the authentication tokens.
  30. use_first_pass
  31. Use the authentication token previously obtained by another module that did
  32. the conversation with the application. If this token can not be obtained
  33. then the module will fail. This option can be used for stacking different
  34. modules that need to deal with the authentication tokens.
  35. unknown_ok
  36. Do not return error when checking for a user that is not in the database.
  37. This can be used to stack more than one pam_userdb module that will check a
  38. username/password pair in more than a database.
  39. key_only
  40. The username and password are concatenated together in the database hash as
  41. 'username-password' with a random value. if the concatenation of the
  42. username and password with a dash in the middle returns any result, the
  43. user is valid. this is useful in cases where the username may not be unique
  44. but the username and password pair are.
  45. EXAMPLES
  46. auth sufficient pam_userdb.so icase db=/etc/dbtest
  47. AUTHOR
  48. pam_userdb was written by Cristian Gafton >gafton@redhat.com<.