pam_stub.go 443 B

12345678910111213141516171819
  1. // +build !pam
  2. // Copyright 2015 - Present, The Gogs Authors. All rights reserved.
  3. // Copyright 2018 - Present, 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. // Auth not supported lack of pam tag
  12. func Auth(serviceName, userName, passwd string) error {
  13. return errors.New("PAM not supported")
  14. }