Function __global->cns_ldap_authorise_login
Definitions
sources/cns_ldap.php
- Authorise an LDAP login.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: array
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $cn | string | No | No | required parameter | N/A | N/A | The username |
| $password | ?string | No | No | required parameter | N/A | N/A | The password (null: no such user) |
Returns
- Part of the member row to put back in and authorise normally (hackerish, but it works kind of like a filter / stage in a chain)
- Type: array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Authorise an LDAP login.
*
* @param string $cn The username
* @param ?string $password The password (null: no such user)
* @return array Part of the member row to put back in and authorise normally (hackerish, but it works kind of like a filter / stage in a chain)
*/
function cns_ldap_authorise_login(string $cn, ?string $password) : array
* Authorise an LDAP login.
*
* @param string $cn The username
* @param ?string $password The password (null: no such user)
* @return array Part of the member row to put back in and authorise normally (hackerish, but it works kind of like a filter / stage in a chain)
*/
function cns_ldap_authorise_login(string $cn, ?string $password) : array
