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. |
SGlobalAuthModule::__construct | ( | ) |
INSERT BRIEF DESCRIPTION HERE.
INSERT FULL DESCRIPTION HERE
Reimplemented from SObject.
SGlobalAuthModule::__sleep | ( | ) |
INSERT BRIEF DESCRIPTION HERE.
INSERT FULL DESCRIPTION HERE
SGlobalAuthModule::__wakeup | ( | ) |
INSERT BRIEF DESCRIPTION HERE.
INSERT FULL DESCRIPTION HERE
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 |
SGlobalAuthModule::getEmail | ( | ) |
Gets user email address.
SGlobalAuthModule::getFirstName | ( | ) |
Gets user first name.
SGlobalAuthModule::getGroups | ( | ) |
Gets groups user is in.
SGlobalAuthModule::getLastName | ( | ) |
Gets user last name.
SGlobalAuthModule::getLdap | ( | ) |
SGlobalAuthModule::getLdapUID | ( | ) |
Gets ldap user id.
Does NOT return authentication database user id
SGlobalAuthModule::getPermissions | ( | ) |
Not Yet Implemented.
SGlobalAuthModule::getProjects | ( | ) |
Gets projects user is in.
SGlobalAuthModule::getRole | ( | ) |
Gets role of user.
SGlobalAuthModule::getUID | ( | ) |
Gets authentication database user id.
Does NOT return ldap user id
SGlobalAuthModule::getUser | ( | ) |
SGlobalAuthModule::inProject | ( | $ | project | ) |
Checks if user is in a project.
$project | [string]: Project name |
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, "/" |
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.