Skip to content

Instantly share code, notes, and snippets.

View jonnyt's full-sized avatar

Jonathon Taylor jonnyt

  • University of California, Berkeley
  • Oakland, CA
View GitHub Profile
@jonnyt
jonnyt / php_ldap_search.md
Last active April 24, 2024 18:38
PHP Secure and Paged Search

Requirements:

  • This example connects to LDAP securely using LDAPS. Please ensure your php.ini openssl.cafile directive points to a valid and trusted certificate store
  • Ensure that you have the PHP LDAP extension installed and configured on your server
  • Note that the example below uses paged controls to handle pagination in LDAP queries. The control's oid for paged results is 1.2.840.113556.1.4.319.
  • The paged search uses a "cookie" to manage state across pages. This cookie is updated with each iteration to indicate the next page to retrieve.
<?php
// LDAP connection settings
@jonnyt
jonnyt / keybase.md
Last active May 7, 2020 15:47
Keybase Proof

Keybase proof

I hereby claim:

  • I am jonnyt on github.
  • I am jonathont (https://keybase.io/jonathont) on keybase.
  • I have a public key whose fingerprint is B999 5AA0 B962 9AA1 F905 9341 89F0 44D3 88BD 9ABC

To claim this, I am signing this object: