LDAP management and utils for PHP
If you get "Strong(er) authentication required" error, put this line before your script:
putenv('LDAPTLS_REQCERT=never');
And pass $startTls as TRUE:
public function __construct($host, $port, $user = null, $pass = null, $startTls = false)