• Downloads
  • Contact

Sam J Levy

Levenshtein and Damerau-Levenshtein for MySQL

June 4, 2017 by sam 50 Comments

Levenshtein distance is a useful metric for creating a “Fuzzy” or “Nearest match” search function.

Posted in: Uncategorized

mydap – PHP LDAP get members of Container/Group/OU

May 5, 2016 by sam 25 Comments

In mydap() version 4 we can query all members of a container, group, or organizational unit. LDAP pagination has also been incorporated, allowing results to exceed the 1000 limit.

Posted in: Uncategorized

mydap version 3 – Use PHP and LDAP to list members of an Active Directory group

July 14, 2015 by sam 31 Comments

PHP function that gets the members of an Active Directory group, and returns the data as an array. Additional function provided to get Users’ attributes.

In this version (Version 3) we can search groups across multiple OU’s– and even multiple AD servers (by closing and establishing a new connection).

Posted in: Uncategorized

Use PHP and LDAP to get a user’s group membership, including the primary group

May 31, 2013 by sam 22 Comments

This function queries a user’s memberOf attribute to get a list of groups. It then uses user’s primaryGroupID to retrieve the distinguishedName of the corresponding primary group. The results are returned in a single, neat, array. This function can have many applications including use with a login system.

Posted in: Uncategorized

Use PHP and LDAP to list members of an Active Directory group – version 2

October 19, 2011 by sam 89 Comments

PHP function that gets the members of an Active Directory group, and returns the Users’ attributes as an array.

Posted in: Uncategorized

Use PHP and LDAP to list members of an Active Directory group – version 1

February 10, 2011 by sam 42 Comments

PHP function that gets the members of an Active Directory group, and returns the data as an array.

Posted in: Uncategorized

PHP login script using LDAP, verify group membership

September 17, 2010 by sam 225 Comments

Simple PHP login script that authenticates through Active Directory using LDAP. Checks user’s membership against two groups, and assigns permissions to a session variable.

Posted in: Uncategorized

Copyright © 2018 Sam J Levy.

Omega WordPress Theme by ThemeHall