|
Umfragen
|
Public Member Functions | |
| __construct ($server, $port, $database, $username="", $password="") | |
| connects the object to authentification | |
| auth ($user, $pass) | |
| authentificates a user and sets some public variables | |
| info ($user) | |
| gets an array of informations about a user | |
| info_ID ($ID) | |
| gets an array of informations about a user | |
| get_all_groups ($whitelist=array()) | |
| gets a list of all groups | |
| get_all_users_from_grouplist ($groups) | |
| gets a list of users based on a group list | |
| get_gid_to_name_mapping ($whitelist=array()) | |
| gets an mapping array from all groupIDs to groupNames | |
| make_users_table () | |
Data Fields | |
| $userFullName | |
| user's full name | |
| $userName | |
| user's user name | |
| $userGroupID | |
| user's group ID | |
| $userDN | |
| users DN (not used here) | |
| $userID | |
| user's ID | |
| $reason | |
| the reason of the critical error | |
| $success | |
| true whe succes, false when a critical error occured | |
Private Member Functions | |||
| connect () | |||
connects to the database Note:not implemented yet
| |||
| get_user_info ($username) | |||
| gets an array of informations about a user | |||
| get_user_info_from_ID ($ID) | |||
| gets an array of informations about a user | |||
Private Attributes | |
| $dbh | |
| database connection object | |
Definition at line 506 of file auth.class.php.
| __construct | ( | $server, | |
| $port, | |||
| $location, | |||
$username = "", |
|||
$password = "" |
|||
| ) |
connects the object to authentification
| string | $server | server string to connect to (eg. localhost) |
| string | $port | server port to connect to |
| string | $location | database name or LDAP root DN to connect to |
| string | $username | username to connect with |
| string | $password | usernames password |
Implements auth.
Definition at line 517 of file auth.class.php.
| auth | ( | $user, | |
| $pass | |||
| ) |
authentificates a user and sets some public variables
| string | $user | user's username |
| string | $pass | users's password |
Implements auth.
Definition at line 628 of file auth.class.php.
|
private |
connects to the database Note:not implemented yet
| not | implemented |
Definition at line 548 of file auth.class.php.
| get_all_groups | ( | $whitelist = array() | ) |
gets a list of all groups
| array | $whitelist | whitelisted groupnames |
Implements auth.
Definition at line 700 of file auth.class.php.
| get_all_users_from_grouplist | ( | $groups | ) |
gets a list of users based on a group list
| array | $groups | group names where to get the users from. |
the userinfo arrays returned have following indexes: "fullName", "userName", "groupID", "userID", "givenName" and "surName"
Implements auth.
Definition at line 728 of file auth.class.php.
| get_gid_to_name_mapping | ( | $whitelist = array() | ) |
gets an mapping array from all groupIDs to groupNames
| array | $whitelist | of allowed groups |
Implements auth.
Definition at line 765 of file auth.class.php.
|
private |
gets an array of informations about a user
| string | $username | the username to search about |
the return array indexes are: "fullName","userName","groupID","userID","password"
Definition at line 559 of file auth.class.php.
|
private |
gets an array of informations about a user
| string | $ID | the numerical user ID |
the return array indexes are: "fullName","userName","groupID","userID","password"
Definition at line 597 of file auth.class.php.
| info | ( | $user | ) |
gets an array of informations about a user
| string | $user | the username to search about |
the return array indexes are: "fullName","userName","groupID","userID"
Implements auth.
Definition at line 667 of file auth.class.php.
| info_ID | ( | $ID | ) |
gets an array of informations about a user
| string | $ID | the numerical user ID |
the return array indexes are: "fullName","userName","groupID","userID"
Implements auth.
Definition at line 687 of file auth.class.php.
| make_users_table | ( | ) |
Definition at line 778 of file auth.class.php.
|
private |
database connection object
Definition at line 507 of file auth.class.php.
| $reason |
the reason of the critical error
Definition at line 513 of file auth.class.php.
| $success |
true whe succes, false when a critical error occured
Definition at line 514 of file auth.class.php.
| $userDN |
users DN (not used here)
Definition at line 511 of file auth.class.php.
| $userFullName |
user's full name
Definition at line 508 of file auth.class.php.
| $userGroupID |
user's group ID
Definition at line 510 of file auth.class.php.
| $userID |
user's ID
Definition at line 512 of file auth.class.php.
| $userName |
user's user name
Definition at line 509 of file auth.class.php.