pam_stub.go 386 B

123456789101112131415161718
  1. // +build !pam
  2. // Copyright 2015 The Gogs Authors. All rights reserved.
  3. // Copyright 2018 Gitote. All rights reserved.
  4. //
  5. // This source code is licensed under the MIT license found in the
  6. // LICENSE file in the root directory of this source tree.
  7. package pam
  8. import (
  9. "errors"
  10. )
  11. func PAMAuth(serviceName, userName, passwd string) error {
  12. return errors.New("PAM not supported")
  13. }