nis-util  1.0.D108
Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
colon_passwd_slurp_check Class Reference

#include <check.h>

Inheritance diagram for colon_passwd_slurp_check:
colon_passwd_slurp colon_passwd colon

Public Types

typedef boost::shared_ptr
< colon_passwd_slurp_check

Public Member Functions

virtual ~colon_passwd_slurp_check ()

Static Public Member Functions

static pointer create (const rcstring &filename, const colon_group_slurp::pointer &grp)

Private Member Functions

 colon_passwd_slurp_check (const rcstring &filename, const colon_group_slurp::pointer &grp)
bool process (const record::pointer &rp)
bool check_home (const record::pointer &rp)
 colon_passwd_slurp_check ()
 colon_passwd_slurp_check (const colon_passwd_slurp_check &)
colon_passwd_slurp_checkoperator= (const colon_passwd_slurp_check &)

Private Attributes

colon_group_slurp::pointer group

Detailed Description

The colon_passwd_slurp_check class is used to process the passwd file records, filing each away for later checks.

This checks the file for inter-row validity, and also validates the rows agains the group file (loaded previosly).

Definition at line 32 of file check.h.

Member Typedef Documentation

Reimplemented from colon_passwd_slurp.

Definition at line 36 of file check.h.

Constructor & Destructor Documentation

The destructor.

Definition at line 31 of file

The constructor. It is private on purpose, use the create class method instead.

filenameThe name of the file to be read.
grpThe group map to check against.

Definition at line 36 of file

The default constructor. Do not use.

The copy constructor. Do not use.

Member Function Documentation

bool colon_passwd_slurp_check::check_home ( const record::pointer rp) [private]

The check_home method is used by process to stat() the user's home directory and verify the results against the passwd file record.

Definition at line 165 of file

The create class method is use to create new dynamically allocated instances of this class.

filenameThe name of the file to be read.
grpThe group map to check against.

Definition at line 47 of file

colon_passwd_slurp_check& colon_passwd_slurp_check::operator= ( const colon_passwd_slurp_check ) [private]

The assignment operator. Do not use.

bool colon_passwd_slurp_check::process ( const record::pointer rp) [private, virtual]

The process method use used to process each record, verifying against the group information and previous passwd records.

true if no errors found, false if there were problems (already reported).

Reimplemented from colon_passwd_slurp.

Definition at line 55 of file

Field Documentation

This is a pointer to the information about the group file, needed for various validations.

Definition at line 82 of file check.h.

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