Overview

Packages

  • Horde
  • None

Classes

  • Horde_Ajax_Application
  • Horde_Api
  • Horde_Block_Account
  • Horde_Block_Account_Base
  • Horde_Block_Account_Finger
  • Horde_Block_Account_Ldap
  • Horde_Block_Account_Localhost
  • Horde_Block_Cloud
  • Horde_Block_FbStream
  • Horde_Block_Feed
  • Horde_Block_Fortune
  • Horde_Block_Google
  • Horde_Block_Iframe
  • Horde_Block_Metar
  • Horde_Block_Moon
  • Horde_Block_Sunrise
  • Horde_Block_Time
  • Horde_Block_TwitterTimeline
  • Horde_Block_Vatid
  • Horde_Block_Weather
  • Horde_LoginTasks_SystemTask_GarbageCollection
  • Horde_LoginTasks_SystemTask_Upgrade
  • Horde_LoginTasks_Task_AdminCheck
  • Horde_LoginTasks_Task_LastLogin
  • Horde_LoginTasks_Task_TosAgreement
  • Horde_Prefs_Ui
  • Overview
  • Package
  • Class
  • Tree

Class Horde_Block_Account_Localhost

Implements the Accounts API for servers with unix accounts on the localhost machine (same machine as the web server). Should work for local unix accounts, nis/nis+ accounts, or any PAM oriented accounts that appear as local accounts on the local machine. The exception is the quota support. See that routine for additional comments.

Copyright 2002-2012 Horde LLC (http://www.horde.org/)

See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.

Horde_Block_Account_Base
Extended by Horde_Block_Account_Localhost
Package: Horde
Author: Eric Jon Rostetter eric.rostetter@physics.utexas.edu
Author: Jan Schneider jan@horde.org
Located at Block/Account/Localhost.php
Methods summary
public
# __construct( array $params = array() )

Constructor.

Constructor.

Parameters

$params
Hash containing connection parameters.

Overrides

Horde_Block_Account_Base::__construct()
public array
# getQuota( )

Returns the user's quota for servers with a unix quota command.

Returns the user's quota for servers with a unix quota command.

This may require a modified "quota" command that allows the httpd server account to get quotas for other users... It requires that your web server and user server be the same server or at least have shared authentication and file servers (e.g. via NIS/NFS). And last, it (as written) requires the posix php extensions.

If your quota command wraps the output onto two lines, then this module will only work if you have a grep which supports the -A switch, and you append an -A1 switch to your grep_path (e.g. '/bin/grep -A1').

Returns

array
A quota array, elements are used bytes and limit bytes.

Throws

Horde_Exception
if posix extension is missing.

Overrides

Horde_Block_Account_Base::getQuota()
public string
# getFullname( )

Returns the user's full name.

Returns the user's full name.

Returns

string
The user's full name.

Throws

Horde_Exception
if posix extension is missing.

Overrides

Horde_Block_Account_Base::getFullname()
public string
# getHome( )

Returns the user's home (login) directory.

Returns the user's home (login) directory.

Returns

string
The user's directory.

Throws

Horde_Exception
if posix extension is missing.

Overrides

Horde_Block_Account_Base::getHome()
public string
# getShell( )

Returns the user's default shell.

Returns the user's default shell.

Returns

string
The user's shell.

Throws

Horde_Exception
if posix extension is missing.

Overrides

Horde_Block_Account_Base::getShell()
Methods inherited from Horde_Block_Account_Base
checkPasswordStatus(), getPasswordChange(), getUsername()
API documentation generated by ApiGen