PHP code example of lilweb / ldap-bundle
1. Go to this page and download the library: Download lilweb/ldap-bundle 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/ */
lilweb / ldap-bundle example snippets
new Lilweb\LdapBundle\LilwebLdapBundle(),
$entries = $this
->ldapConnection
->search(
array(
'base_dn' => $this->params['base_dn'],
'filter' => sprintf('(&%s(%s=%s))', $filter, $this->params['name_attribute'], $this->ldapConnection->escape($username))
)
);