TimeTrex API Manual

TTLDAP
in package

Table of Contents

$data  : mixed
$password_attribute  : mixed
__construct()  : mixed
TTLDAP constructor.
authenticate()  : bool
checkLDAPExtension()  : bool
getBaseDN()  : bool
getBindAttribute()  : bool
getBindDN()  : string
getBindPassword()  : bool
getBindUserName()  : bool
getFilterQuery()  : string
getHost()  : bool
getLoginAttribute()  : bool
getPort()  : int
getUserFilter()  : bool
getUserNameSuffix()  : bool
This is not fully implemented, not sure if its even needed, as it appears most active directory installs will work without needing to specify the domain.
isBindAuthentication()  : bool
Bind authentication is when a specific bind User/Password is *not* specified, so we try to initially bind as the username trying to login instead.
setBaseDN()  : bool
setBindAttribute()  : bool
setBindPassword()  : bool
setBindUserName()  : bool
setHost()  : bool
setLoginAttribute()  : bool
setPort()  : bool
setUserFilter()  : bool
setUserNameSuffix()  : bool

Properties

$password_attribute

private mixed $password_attribute = 'userPassword'

Methods

__construct()

TTLDAP constructor.

public __construct() : mixed
Return values
mixed

authenticate()

public authenticate( $user_name,  $password) : bool
Parameters
$user_name :
$password :
Tags
noinspection

PhpUndefinedConstantInspection

noinspection

PhpUndefinedFunctionInspection

Return values
bool

checkLDAPExtension()

public checkLDAPExtension() : bool
Return values
bool

getBaseDN()

public getBaseDN() : bool
Return values
bool

getBindAttribute()

public getBindAttribute() : bool
Return values
bool

getBindDN()

public getBindDN( $user_name) : string
Parameters
$user_name :
Return values
string

getBindPassword()

public getBindPassword() : bool
Return values
bool

getBindUserName()

public getBindUserName() : bool
Return values
bool

getFilterQuery()

public getFilterQuery( $user_name) : string
Parameters
$user_name :
Return values
string

getHost()

public getHost() : bool
Return values
bool

getLoginAttribute()

public getLoginAttribute() : bool
Return values
bool

getUserFilter()

public getUserFilter() : bool
Return values
bool

getUserNameSuffix()

This is not fully implemented, not sure if its even needed, as it appears most active directory installs will work without needing to specify the domain.

public getUserNameSuffix() : bool
Return values
bool

isBindAuthentication()

Bind authentication is when a specific bind User/Password is *not* specified, so we try to initially bind as the username trying to login instead.

public isBindAuthentication() : bool

However when bind username/password is specified, we can still attempt to bind as the username trying to login after a filter query is run.

Return values
bool

setBaseDN()

public setBaseDN( $value) : bool
Parameters
$value :
Return values
bool

setBindAttribute()

public setBindAttribute( $value) : bool
Parameters
$value :
Return values
bool

setBindPassword()

public setBindPassword( $value) : bool
Parameters
$value :
Return values
bool

setBindUserName()

public setBindUserName( $value) : bool
Parameters
$value :
Return values
bool

setHost()

public setHost( $value) : bool
Parameters
$value :
Return values
bool

setLoginAttribute()

public setLoginAttribute( $value) : bool
Parameters
$value :
Return values
bool

setPort()

public setPort( $value) : bool
Parameters
$value :
Return values
bool

setUserFilter()

public setUserFilter( $value) : bool
Parameters
$value :
Return values
bool

setUserNameSuffix()

public setUserNameSuffix( $value) : bool
Parameters
$value :
Return values
bool

Search results