AmandaCameron / golang-pam-auth

A buildmode=c-shared implementation of a simple PAM auth module in Go.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is a Go implementation of a simple PAM authentication module. It returns PAM_SUCCESS for "test" and PAM_USER_UNKNOWN for everyone else.

Made this as a proof-of-concept for playing with the new -buildmode=c-shared feature in Go 1.5.

This should not be used without review by someone with more experience with PAM / cgo, as I only did this as a minimal toy.

To build this project you need wgo.

About

A buildmode=c-shared implementation of a simple PAM auth module in Go.

License:MIT License


Languages

Language:Go 77.1%Language:C 22.4%Language:Shell 0.5%