Inheritance diagram for AuthPlugin:
Public Member Functions | |
authenticate ($username, $password) | |
AuthPlugin ($settings=array(), $authId=null) | |
createUser (&$user) | |
deleteUser ($username) | |
doCreateUser (&$user) | |
doGetUserInfo (&$user) | |
doSetUserInfo (&$user) | |
doSetUserPassword ($username, $password) | |
getDescription () | |
getDisplayName () | |
& | getInstance ($settings, $authId) |
getManagementVerbs () | |
getName () | |
getSettingsTemplate () | |
getUserInfo (&$user) | |
isSitePlugin () | |
manage ($verb, $args) | |
setUserInfo (&$user) | |
setUserPassword ($username, $password) | |
userExists ($username) | |
Public Attributes | |
$authId | |
$settings |
TODO Error reporting when updating remote source fails. TODO Support importing user accounts from the authentication source into OCS.
Definition at line 22 of file AuthPlugin.inc.php.
AuthPlugin.authenticate | ( | $ | username, | |
$ | password | |||
) |
Authenticate a username and password.
$username | string | |
$password | string |
Reimplemented in LDAPAuthPlugin.
Definition at line 158 of file AuthPlugin.inc.php.
AuthPlugin.AuthPlugin | ( | $ | settings = array() , |
|
$ | authId = null | |||
) |
AuthPlugin.createUser | ( | &$ | user | ) |
Create a user on the remote source.
$user | User to create |
Reimplemented in LDAPAuthPlugin.
Definition at line 211 of file AuthPlugin.inc.php.
Referenced by doCreateUser().
AuthPlugin.deleteUser | ( | $ | username | ) |
Delete a user from the remote source. This function is currently not used within OCS, but is reserved for future use.
$username | string user to delete |
Reimplemented in LDAPAuthPlugin.
Definition at line 222 of file AuthPlugin.inc.php.
AuthPlugin.doCreateUser | ( | &$ | user | ) |
Create remote user account, if enabled.
$user | User to create |
Definition at line 128 of file AuthPlugin.inc.php.
References createUser().
AuthPlugin.doGetUserInfo | ( | &$ | user | ) |
Update local user profile from the remote source, if enabled.
$user | User |
Definition at line 91 of file AuthPlugin.inc.php.
References getUserInfo().
AuthPlugin.doSetUserInfo | ( | &$ | user | ) |
Update remote user profile, if enabled.
$user | User |
Definition at line 103 of file AuthPlugin.inc.php.
References setUserInfo().
AuthPlugin.doSetUserPassword | ( | $ | username, | |
$ | password | |||
) |
Update remote user password, if enabled.
$username | string | |
$password | string |
Definition at line 116 of file AuthPlugin.inc.php.
References setUserPassword().
AuthPlugin.getDescription | ( | ) |
Return the localized description of this plugin. Should be overridden by subclass.
Reimplemented in LDAPAuthPlugin.
Definition at line 68 of file AuthPlugin.inc.php.
AuthPlugin.getDisplayName | ( | ) |
Return the localized name of this plugin. Should be overridden by subclass.
Reimplemented in LDAPAuthPlugin.
Definition at line 59 of file AuthPlugin.inc.php.
& AuthPlugin.getInstance | ( | $ | settings, | |
$ | authId | |||
) |
Returns an instance of the authentication plugin
$settings | array settings specific to this instance | |
$authId | int identifier for this instance |
Reimplemented in LDAPAuthPlugin.
Definition at line 147 of file AuthPlugin.inc.php.
AuthPlugin.getManagementVerbs | ( | ) |
Return the management verbs for this plugin.
Definition at line 236 of file AuthPlugin.inc.php.
AuthPlugin.getName | ( | ) |
Return the name of this plugin. Should be overridden by subclass.
Reimplemented in LDAPAuthPlugin.
Definition at line 50 of file AuthPlugin.inc.php.
AuthPlugin.getSettingsTemplate | ( | ) |
Return the path to a template for plugin settings. Can return null if there are no plugin-specific settings.
Definition at line 77 of file AuthPlugin.inc.php.
References Plugin.getTemplatePath().
AuthPlugin.getUserInfo | ( | &$ | user | ) |
Retrieve user profile information from the remote source. Any unsupported fields (e.g., OCS-specific ones) should not be modified.
$user | User to update |
Reimplemented in LDAPAuthPlugin.
Definition at line 183 of file AuthPlugin.inc.php.
Referenced by doGetUserInfo().
AuthPlugin.isSitePlugin | ( | ) |
Return true iff this is a site-wide plugin.
Definition at line 229 of file AuthPlugin.inc.php.
AuthPlugin.setUserInfo | ( | &$ | user | ) |
Store user profile information on the remote source.
$user | User to store |
Reimplemented in LDAPAuthPlugin.
Definition at line 192 of file AuthPlugin.inc.php.
Referenced by doSetUserInfo().
AuthPlugin.setUserPassword | ( | $ | username, | |
$ | password | |||
) |
Change a user's password on the remote source.
$username | string user to update | |
$password | string the new password |
Reimplemented in LDAPAuthPlugin.
Definition at line 202 of file AuthPlugin.inc.php.
Referenced by doSetUserPassword().
AuthPlugin.userExists | ( | $ | username | ) |
Check if a username exists.
$username | string |
Reimplemented in LDAPAuthPlugin.
Definition at line 173 of file AuthPlugin.inc.php.