1//go:build !cgo || !libpam2// +build !cgo !libpam34/*5Maddy Mail Server - Composable all-in-one email server.6Copyright © 2019-2020 Max Mazurov <fox.cpp@disroot.org>, Maddy Mail Server contributors78This program is free software: you can redistribute it and/or modify9it under the terms of the GNU General Public License as published by10the Free Software Foundation, either version 3 of the License, or11(at your option) any later version.1213This program is distributed in the hope that it will be useful,14but WITHOUT ANY WARRANTY; without even the implied warranty of15MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the16GNU General Public License for more details.1718You should have received a copy of the GNU General Public License19along with this program. If not, see <https://www.gnu.org/licenses/>.20*/2122package pam2324import (25 "errors"26)2728const canCallDirectly = false2930var ErrInvalidCredentials = errors.New("pam: invalid credentials or unknown user")3132func runPAMAuth(username, password string) error {33 return errors.New("pam: Can't call libpam directly")34}