Properties

$securityProtocol

$securityProtocol : 

Type

$schema

$schema : 

Type

$address

$address : 

Type

$port

$port : 

Type

$user

$user : 

Type

$password

$password : 

Type

$ds

$ds : 

Type

$authMethod

$authMethod : 

Type

$ldapProviderName

$ldapProviderName : \Pydio\Auth\Driver\LDAP\LdapProvider\:

Type

\Pydio\Auth\Driver\LDAP\LdapProvider\: — ldapProviderName - Microsoft Active Directory - OpenLdap - IBM Directory - ...

$ldapProvider

$ldapProvider : 

Type

$pageSize

$pageSize : 

Type

$dn

$dn : 

Type

$userIdAtribute

$userIdAtribute : 

Type

$filter

$filter : 

Type

Methods

checkServerStatus()

checkServerStatus() : boolean

Returns

boolean —

Check server status only

initWithConfig()

initWithConfig(  $configs) 

Parameters

$configs

connect()

connect() 

bind()

bind() : boolean

Throws

\Pydio\Auth\Driver\LDAP\Exception\LdapException

Returns

boolean

errorHandler()

errorHandler() : boolean|void

Throws

\Pydio\Auth\Driver\LDAP\Exception\LdapException

Handle error and throw if necessary

Returns

boolean|void

checkPassword()

checkPassword(  $id,   $password) : boolean

Parameters

$id

User DN (not user id)

$password

Returns

boolean

userExist()

userExist(  $id) : boolean

Parameters

$id

Returns

boolean —

Check the existance of $id

getRootDSE()

getRootDSE() : array|boolean

Throws

\Pydio\Auth\Driver\LDAP\Exception\LdapException

Try to get rootDSE of ldap.

Returns

array|boolean

searchInternal()

searchInternal() 

searchMultipleDN()

searchMultipleDN(  $dns,   $filter,   $expected, integer  $offset = -1, integer  $limit = -1) : array|void

Parameters

$dns

An array of base_dn

$filter
$expected
integer $offset
integer $limit

Throws

\Pydio\Auth\Driver\LDAP\Exception\LdapException

Returns

array|void

search()

search(  $dn,   $filter,   $expected,   $offset = -1,   $limit = -1) 

Parameters

$dn
$filter
$expected
$offset
$limit

close()

close() 

setLdapOption()

setLdapOption() 

getSecurityProtocol()

getSecurityProtocol() : mixed

Returns

mixed

setSecurityProtocol()

setSecurityProtocol(mixed  $securityProtocol) 

Parameters

mixed $securityProtocol

getDn()

getDn() : array

Returns

array

setDn()

setDn(array  $dn) 

Parameters

array $dn

getUserIdAtribute()

getUserIdAtribute() : mixed

Returns

mixed

setUserIdAtribute()

setUserIdAtribute(mixed  $userIdAtribute) 

Parameters

mixed $userIdAtribute

getFilter()

getFilter() : mixed

Returns

mixed

setFilter()

setFilter(mixed  $filter) 

Parameters

mixed $filter

getPageSize()

getPageSize() : integer

Returns

integer

setPageSize()

setPageSize(integer  $pageSize) 

Parameters

integer $pageSize

setLdapProvider()

setLdapProvider(  $ldapProvider) 

Parameters

$ldapProvider

__deconstruct()

__deconstruct() 

Deconstruction

abandonSearch()

abandonSearch(  $found,   $offset,   $limit) 

Parameters

$found
$offset
$limit

pagedResultSupport()

pagedResultSupport() 

formatAddress()

formatAddress(  $address,   $port, null  $security = null) 

Parameters

$address
$port
null $security

sanitizeFilterString()

sanitizeFilterString(  $str) : string

Parameters

$str

Returns

string —

remove '(' and ')' to be able concatenated in longer string filter;