diff options
Diffstat (limited to 'modules/auth/pam')
-rw-r--r-- | modules/auth/pam/pam.go | 3 | ||||
-rw-r--r-- | modules/auth/pam/pam_stub.go | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/modules/auth/pam/pam.go b/modules/auth/pam/pam.go index 7f326d42f5..6f0f7240ae 100644 --- a/modules/auth/pam/pam.go +++ b/modules/auth/pam/pam.go @@ -12,7 +12,8 @@ import ( "github.com/msteinert/pam" ) -func PAMAuth(serviceName, userName, passwd string) error { +// Auth pam auth service +func Auth(serviceName, userName, passwd string) error { t, err := pam.StartFunc(serviceName, userName, func(s pam.Style, msg string) (string, error) { switch s { case pam.PromptEchoOff: diff --git a/modules/auth/pam/pam_stub.go b/modules/auth/pam/pam_stub.go index 33ac751a34..ee2527dd89 100644 --- a/modules/auth/pam/pam_stub.go +++ b/modules/auth/pam/pam_stub.go @@ -10,6 +10,7 @@ import ( "errors" ) -func PAMAuth(serviceName, userName, passwd string) error { +// Auth not supported lack of pam tag +func Auth(serviceName, userName, passwd string) error { return errors.New("PAM not supported") } |