WvStreams
Public Member Functions | Public Attributes | List of all members
WvPam Class Reference

Public Member Functions

 WvPam (WvStringParm svcname)
 Start up PAM (presumably you will want to call authenticate() later.
 
 WvPam (WvStringParm svcname, WvStringParm rhost, WvStringParm user=WvString::null, WvStringParm password=WvString::null)
 Start up PAM, and authenticate user from rhost with password.
 
bool authenticate (WvStringParm rhost=WvString::null, WvStringParm user=WvString::null, WvStringParm password=WvString::null)
 Authenticate the user from rhost with password.
 
void getgroups (WvStringList &groups) const
 Get the groups that the currently sessioned user is logged in with.
 
WvString getuser () const
 Get the user's name.
 

Public Attributes

WvError err
 Check here to see if the user is validated or not.
 

Detailed Description

Definition at line 21 of file wvpam.h.

Constructor & Destructor Documentation

◆ WvPam() [1/2]

WvPam::WvPam ( WvStringParm  svcname)

Start up PAM (presumably you will want to call authenticate() later.

Definition at line 15 of file wvpam.cc.

References err, and WvErrorBase::seterr().

◆ WvPam() [2/2]

WvPam::WvPam ( WvStringParm  svcname,
WvStringParm  rhost,
WvStringParm  user = WvString::null,
WvStringParm  password = WvString::null 
)

Start up PAM, and authenticate user from rhost with password.

Definition at line 22 of file wvpam.cc.

References err, and WvErrorBase::seterr().

◆ ~WvPam()

WvPam::~WvPam ( )
virtual

Definition at line 30 of file wvpam.cc.

Member Function Documentation

◆ authenticate()

bool WvPam::authenticate ( WvStringParm  rhost = WvString::null,
WvStringParm  user = WvString::null,
WvStringParm  password = WvString::null 
)

Authenticate the user from rhost with password.

Definition at line 34 of file wvpam.cc.

◆ getgroups()

void WvPam::getgroups ( WvStringList groups) const

Get the groups that the currently sessioned user is logged in with.

Definition at line 45 of file wvpam.cc.

◆ getuser()

WvString WvPam::getuser ( ) const

Get the user's name.

Definition at line 39 of file wvpam.cc.

Member Data Documentation

◆ err

WvError WvPam::err

Check here to see if the user is validated or not.

Definition at line 74 of file wvpam.h.

Referenced by WvPam(), and WvPam().


The documentation for this class was generated from the following files: