Documentation

simpleldap_functions.php

Table of Contents

Functions

simpleldap_authenticate()  : array<string|int, mixed>|bool
Authenticate to directory by binding and performing LDAP search
simpleldap_to_utf8()  : string
Helper function to convert received data from LDAP server to UTF-8

Functions

simpleldap_authenticate()

Authenticate to directory by binding and performing LDAP search

simpleldap_authenticate(string $username, string $password) : array<string|int, mixed>|bool
Parameters
$username : string

Username

$password : string

Password

Return values
array<string|int, mixed>|bool

Array of user data or false if failed to authenticate

simpleldap_to_utf8()

Helper function to convert received data from LDAP server to UTF-8

simpleldap_to_utf8(string $str) : string
Parameters
$str : string

String to convert to UTF8

Return values
string
On this page

Search results