PHP Classes

LDIF 2 Array: Parse LDIF data into arrays

Recommend this page to a friend!
  Info   Screenshots   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 522 All time: 5,700 This week: 69Up
Version License PHP version Categories
ldif2array 1GNU General Publi...4.0Files and Folders
Description 

Author

This class can parse LDIF files and extract LDAP directory definition data into arrays.

It parses an LDIF and splits in one or more blocks with different sections of directory definition data.

Each block is parsed into a bi-dimensional array for further processing for an LDAP server access application.

Picture of tobozo
  Performance   Level  

 

Details

/* * Class to read LDIF file * @package ldif2array * @author tobozo * @date 2006-12-13 */ This is very primitive class written in php4 to read LDIF files. It does not know (yet) how to write LDIF data. When instanciating the object, you can specify a filename or give it the file content. Then the data is processed and made available in the object. Greetings to Vladimir Struchkov for providing some bugfix and base64 support.

Screenshots (1)  
  • ldif2array
  Files folder image Files (5)  
File Role Description
Plain text file ldif2array.class.php Class Class source
Accessible without login Plain text file ldif2array_example.php Example Example script
Accessible without login Plain text file ReadMe.txt Doc. Read me first
Accessible without login Plain text file users.ldf Data LDIF Data sample

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:522
This week:0
All time:5,700
This week:69Up