[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

/lib/plugins/authad/adLDAP/classes/ -> adLDAPFolders.php (summary)

PHP LDAP CLASS FOR MANIPULATING ACTIVE DIRECTORY Version 4.0.4 PHP Version 5 with SSL and LDAP support

Author: Scott Barnett, Richard Hyland
Copyright: (c) 2006-2012 Scott Barnett, Richard Hyland
License: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html LGPLv2.1
Link: http://adldap.sourceforge.net/
Version: 4.0.4
File Size: 179 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

adLDAPFolders:: (4 methods):
  __construct()
  delete()
  listing()
  create()


Class: adLDAPFolders  - X-Ref

FOLDER / OU MANAGEMENT FUNCTIONS

__construct(adLDAP $adldap)   X-Ref
The current adLDAP connection via dependency injection


delete($dn)   X-Ref
Delete a distinguished name from Active Directory
You should never need to call this yourself, just use the wrapper functions user_delete and contact_delete

return: bool
param: string $dn The distinguished name to delete

listing($folderName = NULL, $dnType = adLDAP::ADLDAP_FOLDER, $recursive = NULL, $type = NULL)   X-Ref
Returns a folder listing for a specific OU
See http://adldap.sourceforge.net/wiki/doku.php?id=api_folder_functions

return: array
param: array $folderName An array to the OU you wish to list.
param: string $dnType The type of record to list.  This can be ADLDAP_FOLDER or ADLDAP_CONTAINER.
param: bool $recursive Recursively search sub folders
param: bool $type Specify a type of object to search for

create($attributes)   X-Ref
Create an organizational unit

return: bool
param: array $attributes Default attributes of the ou