PHP code example of mangati / ldap
1. Go to this page and download the library: Download mangati/ldap library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
mangati / ldap example snippets
putenv('LDAPTLS_REQCERT=never');
public function __construct($host, $port, $user = null, $pass = null, $startTls = false)