Overview

Classes

  • Package
  • Service
  • Tlaloc_File
  • User
  • Overview
  • Class
  • Tree

Class User

A User management object meant for OpenBSD

this object should allow; listing, verifying, updating, removing and adding users of all sort under OpenBSD. Meant to virtualize the base command line tools so we can later port this object to other OSes like Linux, CentOS, etc..

Located at User.php
Methods summary
public
# __construct( )

User::__construct() Instantiate a User object, no parameters necessary

User::__construct() Instantiate a User object, no parameters necessary

public boolean
# Exists( mixed $Username )

User::Exists() Verify the existence of a particular user

User::Exists() Verify the existence of a particular user

Parameters

$Username
mixed

Returns

boolean
$result
public boolean
# GroupExists( mixed $Groupname )

User::GroupExists() Verify the existence of a particular group

User::GroupExists() Verify the existence of a particular group

Parameters

$Groupname
mixed

Returns

boolean
$result
public boolean
# Create( mixed $Username, mixed $Password = null, mixed $RealName = null, mixed $target_UID = null, mixed $LoginGroup = null, mixed $LoginClass = null, mixed $HomeFolder = null, mixed $ShellToUse = null )

User::Create() Create a Unix User.

User::Create() Create a Unix User.

Parameters

$Username
mixed
$Password
mixed
$RealName
mixed
$target_UID
mixed
$LoginGroup
mixed
$LoginClass
mixed
$HomeFolder
mixed
$ShellToUse
mixed

Returns

boolean
$result
public boolean
# User_In_Group( mixed $User, mixed $Group )

User::User_In_Group() Verify if a User is part of a Group

User::User_In_Group() Verify if a User is part of a Group

Parameters

$User
mixed
$Group
mixed

Returns

boolean
result
public boolean
# AddToGroup( mixed $User, mixed $SecondaryGroups )

User::AddToGroup() Add a User to a Unix Group

User::AddToGroup() Add a User to a Unix Group

Parameters

$User
mixed
$SecondaryGroups
mixed

Returns

boolean
result
public boolean
# CreateGroup( mixed $Group_Name, mixed $GID = null )

User::CreateGroup() Create a Unix Group

User::CreateGroup() Create a Unix Group

Parameters

$Group_Name
mixed
$GID
mixed

Returns

boolean
result
public boolean
# Delete( mixed $Username )

User::Delete() Delete a Unix User

User::Delete() Delete a Unix User

Parameters

$Username
mixed

Returns

boolean
result
Properties summary
public array $SUPPORTED_COMMANDS array("exists"=>"Check to see if a user exists","create"=>"Create a new user","delete"=>"Delete a local user", "test"=>"Test the creation of a user foo")
#
public array $Repos array()
#
API documentation generated by ApiGen 2.6.0