TITAN Library for PHP5  5.1.0
Web Software Development Kit for PHP5
users Class Reference

Titan LDAP Users Class. More...

Public Member Functions

 __construct (&$connection, &$options)
 
search ($dn)
 
 get_groups ($username, $primary_only=false)
 

Detailed Description

Titan LDAP Users Class.

Class: \tl\io\ldap\users

Author
James E. Bush work@.nosp@m.bush.nosp@m..cc
Version
5.1.0

Constructor & Destructor Documentation

__construct ( $connection,
$options 
)

Constructor - Internal use only.

To get an instance of theis object, use $ldap->users();

Parameters
resource$connectionThe current LDAP connection resource
array$optionsLDAP options array

Member Function Documentation

& search (   $dn)

Search for users within an OU

Parameters
string$dnOU distinguishedname
Returns
array
get_groups (   $username,
  $primary_only = false 
)

Get the groups for a given username

Parameters
string$usernameThe username to lookup groups
boolean$primary_only(optional) Only get the primary group? (default) false
Returns
array An array of Groups(cn => distinguishedname) The first group in the array is the primary group

The documentation for this class was generated from the following file: