CatalystX::Usul::Users::Simple - User data store in local files
0.6.$Revision: 1165 $
use CatalystX::Usul::Users::Unix; my $class = CatalystX::Usul::Users::Unix; my $user_obj = $class->new( $attrs, $app );
User storage model for the Unix operating system. This model makes use of a setuid wrapper to read and write the files; /etc/passwd, /etc/shadow and /etc/group. It inherits from CatalystX::Usul::Model::Identity::Users and implements the required list of factory methods
Constructor defined four attributes; binsdir the path to the programs, ppath the path to the passwd file, profdir the path to the directory which contains boilerplate "dot" file for populating the home directory, and spath the path to the shadow password file
Returns a hashref of features supported by this store. Can be checked using supports
Activation is not currently supported by this store
Returns a File::DataClass user object for the specified user or throws an exception if the user does not exist
Calls the setuserid wrapper to change the users password
Calls the setuserid wrapper to check the users password
Calls the setuserid wrapper to create a new user account, populate the home directory and create a mail alias for the users email address to the new account
Calls the setuserid wrapper to delete the users mail alias and then delete the account
Returns a reference to the package scoped variable %FIELD_MAP
%FIELD_MAP
Returns the users primary role (group) id from the /etc/passwd file
Returns a hashref containing the data fields for the requested user. Maps the field name specific to the store to those used by the identity model
Returns the list of users the share the given primary role (group) id
Returns true if the user exists, false otherwise
Returns the list of usernames matching the given pattern
Calls the setuserid wrapper to set the users password to a given value
Calls the setuserid wrapper to update the user account information
Updates the users password in the database
Calls the setuserid wrapper to create a report about the user accounts in this store
None
There are no known incompatibilities in this module
There are no known bugs in this module. Please report problems to the address below. Patches are welcome
Peter Flanigan, <Support at RoxSoft.co.uk>
<Support at RoxSoft.co.uk>
Copyright (c) 2008 Peter Flanigan. All rights reserved
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic
This program is distributed in the hope that it will be useful, but WITHOUT WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE
To install CatalystX::Usul, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CatalystX::Usul
CPAN shell
perl -MCPAN -e shell install CatalystX::Usul
For more information on module installation, please visit the detailed CPAN module installation guide.