You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
1010 B

  1. [![Build Status](https://travis-ci.org/msteinert/pam.svg?branch=master)](https://travis-ci.org/msteinert/pam)
  2. [![GoDoc](https://godoc.org/github.com/msteinert/pam?status.svg)](http://godoc.org/github.com/msteinert/pam)
  3. [![Coverage Status](https://coveralls.io/repos/msteinert/pam/badge.svg?branch=master)](https://coveralls.io/r/msteinert/pam?branch=master)
  4. [![Go Report Card](http://goreportcard.com/badge/msteinert/pam)](http://goreportcard.com/report/msteinert/pam)
  5. # Go PAM
  6. This is a Go wrapper for the PAM application API.
  7. ## Testing
  8. To run the full suite, the tests must be run as the root user. To setup your
  9. system for testing, create a user named "test" with the password "secret". For
  10. example:
  11. ```
  12. $ sudo useradd test \
  13. -d /tmp/test \
  14. -p '$1$Qd8H95T5$RYSZQeoFbEB.gS19zS99A0' \
  15. -s /bin/false
  16. ```
  17. Then execute the tests:
  18. ```
  19. $ sudo GOPATH=$GOPATH $(which go) test -v
  20. ```
  21. [1]: http://godoc.org/github.com/msteinert/pam
  22. [2]: http://www.linux-pam.org/Linux-PAM-html/Linux-PAM_ADG.html