Свойство | Type | Description | |
---|---|---|---|
$allowedGroupIds | array | Members of which LDAP-groups shall have access to kimai | |
$autocreateUsers | boolean | Automatically create a user in Kimai if the login is successful. | |
$bindDN | string | Leave empty for anonymous bind | |
$bindPW | string | The password to ue for non anonymous bind | |
$commonNameAttribute | Which LDAP-Attribute contains a readable username | ||
$defaultGlobalRoleName | string | The name of the default global role the user should be added to. | |
$defaultGroupMemberships | array | Map of group=>role names for new users | |
$forceLowercase | boolean | Shall we force usernames to lowercase? | |
$groupFilter | The string %1$s will be replaced by the content of the attribute self::$usernameAttribute, the string %2$s will be replaced by the DN of the user | ||
$groupidAttribute | string | This is referenced by the entries of self::$allowedGroupIds | |
$host | string | Remember that you can include ldaps scheme or a port number here | |
$mailAttribute | string | This is just to set the correct mail-address for the user | |
$nonLdapAcounts | array | All entries in this array will not be checked against the LDAP | |
$searchBase | string | Search base to use | |
$userFilter | string | The string '%s' will be replaced by the string the user provided as username | |
$usernameAttribute | Which LDAP-Attribute contains the username |
Méthode | Description | |
---|---|---|
__construct ( $database = null, $kga = null ) | {@inherit} | |
authenticate ( $username, $password, &$userId ) | {@inherit} | |
getDefaultGlobalRole ( ) : integer | Get the default global role | |
getDefaultGroups ( ) : array | Get a map of group=>role associations for new users |
Méthode | Description | |
---|---|---|
createCheckUsername ( $username, $uidAttribute ) : string |
protected createCheckUsername ( $username, $uidAttribute ) : string | ||
$username | ||
$uidAttribute | ||
Résultat | string |
public getDefaultGlobalRole ( ) : integer | ||
Résultat | integer |
public getDefaultGroups ( ) : array | ||
Résultat | array |
protected array $allowedGroupIds | ||
Résultat | array |
protected bool $autocreateUsers | ||
Résultat | boolean |
protected string $bindDN | ||
Résultat | string |
protected string $bindPW | ||
Résultat | string |
protected $commonNameAttribute |
protected string $defaultGlobalRoleName | ||
Résultat | string |
protected array $defaultGroupMemberships | ||
Résultat | array |
protected bool $forceLowercase | ||
Résultat | boolean |
protected $groupFilter |
protected string $groupidAttribute | ||
Résultat | string |
protected string $host | ||
Résultat | string |
protected string $mailAttribute | ||
Résultat | string |
protected array $nonLdapAcounts | ||
Résultat | array |
protected string $userFilter | ||
Résultat | string |