ldas-tools-al 2.6.4
Public Types | Public Member Functions | Private Attributes | List of all members
LDASTools::AL::UserInfoCache::UserInfo Class Reference

Class to manage information about a single user. More...

#include <UserInfoCache.hh>

Public Types

typedef INT_4U uid_type
 
typedef INT_4U gid_type
 

Public Member Functions

 UserInfo ()
 constructor More...
 
 UserInfo (const char *Name, const char *Password, const uid_type UID, const gid_type GID, const char *Gecos, const char *HomeDir, const char *Shell)
 constructor More...
 
const std::string & Name () const
 Supply the system name of the user. More...
 
gid_type GID () const
 Supply the caller with the user's group id. More...
 
uid_type UID () const
 Supply the caller with user's id. More...
 

Private Attributes

std::string m_name
 System name of the user. More...
 
std::string m_password
 Encrypted password for user. More...
 
uid_type m_uid
 User identification number. More...
 
gid_type m_gid
 Group identification number. More...
 
std::string m_gecos
 Full name for the user. More...
 
std::string m_home_dir
 The home directory for the user. More...
 
std::string m_shell
 The login shell for the user. More...
 

Detailed Description

Class to manage information about a single user.

Member Typedef Documentation

◆ gid_type

◆ uid_type

Constructor & Destructor Documentation

◆ UserInfo() [1/2]

LDASTools::AL::UserInfoCache::UserInfo::UserInfo ( )
inline

constructor

This is the default constructor.

◆ UserInfo() [2/2]

LDASTools::AL::UserInfoCache::UserInfo::UserInfo ( const char *  Name,
const char *  Password,
const uid_type  UID,
const gid_type  GID,
const char *  Gecos,
const char *  HomeDir,
const char *  Shell 
)
inline

constructor

This constructor fills in the information suppled by reading each of the password entries.

Member Function Documentation

◆ GID()

UserInfoCache::UserInfo::gid_type LDASTools::AL::UserInfoCache::UserInfo::GID ( ) const
inline

Supply the caller with the user's group id.

Supply the caller with user's group id.

◆ Name()

const std::string & LDASTools::AL::UserInfoCache::UserInfo::Name ( ) const
inline

Supply the system name of the user.

Supply the caller with the System Name.

◆ UID()

UserInfoCache::UserInfo::uid_type LDASTools::AL::UserInfoCache::UserInfo::UID ( ) const
inline

Supply the caller with user's id.

Member Data Documentation

◆ m_gecos

std::string LDASTools::AL::UserInfoCache::UserInfo::m_gecos
private

Full name for the user.

◆ m_gid

gid_type LDASTools::AL::UserInfoCache::UserInfo::m_gid
private

Group identification number.

◆ m_home_dir

std::string LDASTools::AL::UserInfoCache::UserInfo::m_home_dir
private

The home directory for the user.

◆ m_name

std::string LDASTools::AL::UserInfoCache::UserInfo::m_name
private

System name of the user.

◆ m_password

std::string LDASTools::AL::UserInfoCache::UserInfo::m_password
private

Encrypted password for user.

◆ m_shell

std::string LDASTools::AL::UserInfoCache::UserInfo::m_shell
private

The login shell for the user.

◆ m_uid

uid_type LDASTools::AL::UserInfoCache::UserInfo::m_uid
private

User identification number.


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