Unixutils-shadow-1.0.0: A simple interface to shadow passwords (aka, shadow.h)

Portabilitynon-portable (requires POSIX)
Stabilityprovisional
Maintainerjeremy@seereason.com
Safe HaskellSafe-Infered

System.Unix.Shadow

Description

support for etcshadow

TODO: This module is modelled after System.Posix.User but lacks many of the #ifdefs. Those are probably important.

Synopsis

Documentation

data SUserEntry Source

Entry returned by getSUserEntryForName

TODO: add other fields

Constructors

SUserEntry 

Fields

sUserName :: String

Textual name of this user (pw_name)

sUserPassword :: String

Password -- may be empty or fake if shadow is in use (pw_passwd)

getSUserEntryForName :: String -> IO SUserEntrySource

getSUserEntryForName name calls getspnam to obtain the SUserEntry information associated with the user login name.p