
Public Member Functions | |
| __construct () | |
| INSERT BRIEF DESCRIPTION HERE. | |
| __sleep () | |
| INSERT BRIEF DESCRIPTION HERE. | |
| __wakeup () | |
| INSERT BRIEF DESCRIPTION HERE. | |
| authenticate ($username, $password) | |
| Attempt to authenticate this module with a Global Authentication Database username and password. | |
| getEmail () | |
| Gets user email address. | |
| getFirstName () | |
| Gets user first name. | |
| getGroups () | |
| Gets groups user is in. | |
| getLastName () | |
| Gets user last name. | |
| getLdap () | |
| Gets ldap connection. | |
| getLdapUID () | |
| Gets ldap user id. | |
| getPermissions () | |
| Not Yet Implemented. | |
| getProjects () | |
| Gets projects user is in. | |
| getRole () | |
| Gets role of user. | |
| getUID () | |
| Gets authentication database user id. | |
| getUser () | |
| Gets authentication database user object. | |
| inProject ($project) | |
| Checks if user is in a project. | |
| requireProjects ($projects, $redirect=null) | |
| Requires user to be in projects. | |
| syncUserWithLdap () | |
| Syncs user information with ldap. | |
Protected Member Functions | |
| setEmail ($email) | |
| INSERT BRIEF DESCRIPTION HERE. | |
| setLdapUID ($uid) | |
| INSERT BRIEF DESCRIPTION HERE. | |
| setUID ($uid) | |
| INSERT BRIEF DESCRIPTION HERE. | |
| setUserName ($username) | |
| INSERT BRIEF DESCRIPTION HERE. | |
Definition at line 9 of file SGlobalAuthModule.php5.
| SGlobalAuthModule::__construct | ( | ) |
INSERT BRIEF DESCRIPTION HERE.
INSERT FULL DESCRIPTION HERE
Reimplemented from SObject.
Definition at line 34 of file SGlobalAuthModule.php5.
| SGlobalAuthModule::__sleep | ( | ) |
INSERT BRIEF DESCRIPTION HERE.
INSERT FULL DESCRIPTION HERE
Definition at line 443 of file SGlobalAuthModule.php5.
| SGlobalAuthModule::__wakeup | ( | ) |
INSERT BRIEF DESCRIPTION HERE.
INSERT FULL DESCRIPTION HERE
Definition at line 454 of file SGlobalAuthModule.php5.
References AuthUser::retrieve().
| SGlobalAuthModule::authenticate | ( | $ | username, | |
| $ | password | |||
| ) |
Attempt to authenticate this module with a Global Authentication Database username and password.
| $username | [string]: A username to authenticate | |
| $password | [string]: A password to authenticate |
Definition at line 47 of file SGlobalAuthModule.php5.
References SObject::getError(), AuthUserToGenGroup::getList(), AuthUserToProject::getList(), AuthUser::getList(), AuthInvalidLoginAttempt::getList(), SConfig::getOption(), SObject::setPrettyError(), and syncUserWithLdap().
| SGlobalAuthModule::getEmail | ( | ) |
Gets user email address.
Definition at line 366 of file SGlobalAuthModule.php5.
| SGlobalAuthModule::getFirstName | ( | ) |
Gets user first name.
Definition at line 348 of file SGlobalAuthModule.php5.
| SGlobalAuthModule::getGroups | ( | ) |
Gets groups user is in.
Definition at line 288 of file SGlobalAuthModule.php5.
| SGlobalAuthModule::getLastName | ( | ) |
Gets user last name.
Definition at line 357 of file SGlobalAuthModule.php5.
| SGlobalAuthModule::getLdap | ( | ) |
Gets ldap connection.
Definition at line 375 of file SGlobalAuthModule.php5.
| SGlobalAuthModule::getLdapUID | ( | ) |
Gets ldap user id.
Does NOT return authentication database user id
Definition at line 339 of file SGlobalAuthModule.php5.
| SGlobalAuthModule::getPermissions | ( | ) |
| SGlobalAuthModule::getProjects | ( | ) |
Gets projects user is in.
Definition at line 279 of file SGlobalAuthModule.php5.
| SGlobalAuthModule::getRole | ( | ) |
Gets role of user.
Definition at line 308 of file SGlobalAuthModule.php5.
| SGlobalAuthModule::getUID | ( | ) |
Gets authentication database user id.
Does NOT return ldap user id
Definition at line 328 of file SGlobalAuthModule.php5.
| SGlobalAuthModule::getUser | ( | ) |
Gets authentication database user object.
Definition at line 384 of file SGlobalAuthModule.php5.
| SGlobalAuthModule::inProject | ( | $ | project | ) |
Checks if user is in a project.
| $project | [string]: Project name |
Definition at line 299 of file SGlobalAuthModule.php5.
| SGlobalAuthModule::requireProjects | ( | $ | projects, | |
| $ | redirect = null | |||
| ) |
Requires user to be in projects.
Redirects to access denied page if user is not in all projects specified
| $projects | [array]: Array of projects to be required | |
| $redirect | [string]: Url to redirect to if user is not in projects. Defaults to $PATH['acess_denied'] or if that fails, $PATH['main'], or if that fails, "/" |
Definition at line 182 of file SGlobalAuthModule.php5.
References SObject::setPrettyError().
| SGlobalAuthModule::setEmail | ( | $ | ) | [protected] |
INSERT BRIEF DESCRIPTION HERE.
For internal use only.
INSERT FULL DESCRIPTION HERE
| [TYPE]: DESCRIPTION |
Definition at line 432 of file SGlobalAuthModule.php5.
| SGlobalAuthModule::setLdapUID | ( | $ | uid | ) | [protected] |
INSERT BRIEF DESCRIPTION HERE.
For internal use only.
INSERT FULL DESCRIPTION HERE
| $uid | [TYPE]: DESCRIPTION |
Definition at line 408 of file SGlobalAuthModule.php5.
| SGlobalAuthModule::setUID | ( | $ | uid | ) | [protected] |
INSERT BRIEF DESCRIPTION HERE.
For internal use only.
INSERT FULL DESCRIPTION HERE
| $uid | [TYPE]: DESCRIPTION |
Definition at line 396 of file SGlobalAuthModule.php5.
| SGlobalAuthModule::setUserName | ( | $ | username | ) | [protected] |
INSERT BRIEF DESCRIPTION HERE.
For internal use only.
INSERT FULL DESCRIPTION HERE
| $username | [TYPE]: DESCRIPTION |
Definition at line 420 of file SGlobalAuthModule.php5.
| SGlobalAuthModule::syncUserWithLdap | ( | ) |
Syncs user information with ldap.
Syncs user information with ldap information, also makes sure user is in "Shodor Internal" project if they are an ldap user and that they are not if they are not an ldap user. Called during authentication automatically.
Definition at line 211 of file SGlobalAuthModule.php5.
Referenced by authenticate().
1.5.6