How to authenticate user against PAM?

Hello all,

I want to authenticate my user against PAM, how it is possible in golang? I see other languages such as PHP has inbuilt support for it.

Need help.

Thanks

There are many packaged related to PAM, see https://pkg.go.dev/search?q=pam. Maybe this one is what you are looking for:

Package pam contains all the functionality for interfacing with Linux Pluggable Authentication Modules (PAM). Currently, all this package does is check the validity of a user’s login passphrase. See http://www.linux-pam.org/Linux-PAM-html/ for more information.

https://pkg.go.dev/github.com/google/fscrypt/pam?tab=doc

Thanks @lutzhorn
Sorry for delayed response