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.

pam_stub.go 447B

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