adLDAP - LDAP authentication with PHP for Active Directory

SourceForge.net Logo

adLDAP Developer API Reference

This API is intended to be an accurate representation of the current version of the class. A great deal of knowledge is involved in the LDAP schema, so we actively encourage people to add to this documentation if you are able to improve it….

Server Requirements

  • PHP 5 As of adLDAP version 3.0, PHP 4 support is no longer supported, if you require PHP 4 support, please download adLDAP version 2.1.
  • An Active Directory domain controller to connect to, preferably with a user account with domain administrator rights
  • OpenSSL support in PHP if you wish to set or change passwords on a user account

Using adLDAP

Read the documentation on connecting and disconnecting from your domain controller for more information on different ways of calling adLDAP.

  1. Copy adLDAP.php to your server
  2. Edit the configuring variables in the class itself if you so wish to
  3. From your script add the following code
require_once(dirname(__FILE__) . '/adLDAP.php');
$adldap = new adLDAP();

You can alternatively override the configuration when the class is called by specifying an array with the options.

Called like $adldap = new adLDAP($options); Where $options is an array with one or more of the following keys

account_suffix base_dn domain_controllers ad_username ad_password real_primarygroup use_ssl use_tls recursive_groups

See the 'examples' and 'connecting and disconnecting' section for more information

API Function Reference Guide

Calling adLDAP

Configuration

Functions

Error Handling

Active Directory Schema

Miscellaneous

 
api.txt · Last modified: 2009/08/25 10:56 by rich2000
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki