ldap
class ldap extends base
Database authentication provider for phpBB3 This is for authentication via the integrated user table
Properties
protected config | $config | ||
protected driver_interface | $db | ||
protected language | $language | ||
protected user | $user |
Methods
Checks whether the user is currently identified to the authentication provider.
This function is used to output any required fields in the authentication admin panel. It also defines any required configuration table fields.
This function updates the template with variables related to the acp options with whatever configuration values are passed to it as an array.
Returns an array of data necessary to build custom elements on the login form.
Returns an array of data necessary to build the ucp_auth_link page
The session validation function checks whether the user is still logged into phpBB.
Checks to see if $login_link_data contains all information except for the user_id of an account needed to successfully link an external account to a forum account.
LDAP Authentication Constructor
Performs login.
Details
at line 59
bool|string
init()
Checks whether the user is currently identified to the authentication provider.
Called in acp_board while setting authentication plugins. Changing to an authentication provider will not be permitted in acp_board if there is an error.
in
base at line 32
array|null
autologin()
Autologin function
at line 303
array|null
acp()
This function is used to output any required fields in the authentication admin panel. It also defines any required configuration table fields.
at line 314
array|null
get_acp_template(config $new_config)
This function updates the template with variables related to the acp options with whatever configuration values are passed to it as an array.
It then returns the name of the acp file related to this authentication provider.
in
base at line 56
array|null
get_login_data()
Returns an array of data necessary to build custom elements on the login form.
in
base at line 64
array|null
get_auth_link_data(int $user_id = 0)
Returns an array of data necessary to build the ucp_auth_link page
in
base at line 72
logout(array $data, bool $new_session)
Performs additional actions during logout.
in
base at line 80
bool
validate_session(array $user)
The session validation function checks whether the user is still logged into phpBB.
in
base at line 88
string|null
login_link_has_necessary_data(array $login_link_data)
Checks to see if $login_link_data contains all information except for the user_id of an account needed to successfully link an external account to a forum account.
in
base at line 96
link_account(array $link_data)
Links an external account to a phpBB account.
in
base at line 104
unlink_account(array $link_data)
Unlinks an external account from a phpBB account.
at line 48
__construct(config $config, driver_interface $db, language $language, user $user)
LDAP Authentication Constructor
at line 129
array
login(string $username, string $password)
Performs login.