pam_stub.go 330 B

1234567891011121314151617
  1. //go:build !pam
  2. // +build !pam
  3. // Copyright 2014 The Gogs Authors. All rights reserved.
  4. // Use of this source code is governed by a MIT-style
  5. // license that can be found in the LICENSE file.
  6. package pam
  7. import (
  8. "errors"
  9. )
  10. func PAMAuth(serviceName, userName, passwd string) error {
  11. return errors.New("PAM not supported")
  12. }