Joomla Platform
13.1
Documentation des API du framework Joomla Platform
|
Fonctions membres publiques | |
__construct ($configObj=null) | |
connect () | |
close () | |
setDN ($username, $nosub=0) | |
getDN () | |
anonymous_bind () | |
bind ($username=null, $password=null, $nosub=0) | |
simple_search ($search) | |
search (array $filters, $dnoverride=null, array $attributes=array()) | |
replace ($dn, $attribute) | |
modify ($dn, $attribute) | |
remove ($dn, $attribute) | |
compare ($dn, $attribute, $value) | |
read ($dn) | |
delete ($dn) | |
create ($dn, array $entries) | |
add ($dn, array $entry) | |
rename ($dn, $newdn, $newparent, $deleteolddn) | |
getErrorMsg () |
Fonctions membres publiques statiques | |
static | ipToNetAddress ($ip) |
static | LDAPNetAddr ($networkaddress) |
static | generatePassword ($password, $type= 'md5') |
Attributs publics | |
$host = null | |
$auth_method = null | |
$port = null | |
$base_dn = null | |
$users_dn = null | |
$search_string = null | |
$use_ldapV3 = null | |
$no_referrals = null | |
$negotiate_tls = null | |
$username = null | |
$password = null |
Attributs privés | |
$_resource = null | |
$_dn = null |
JClientLdap::__construct | ( | $configObj = null | ) |
Constructor
object | $configObj | An object of configuration variables |
Réimplémentée dans JLDAP.
Définition à la ligne 108 du fichier ldap.php.
JClientLdap::add | ( | $dn, | |
array | $entry | ||
) |
Add an attribute to the given DN Note: DN has to exist already
string | $dn | The DN of the entry to add the attribute |
array | $entry | An array of arrays with attributes to add |
Définition à la ligne 489 du fichier ldap.php.
Référencé par JLDAP\__construct().
JClientLdap::anonymous_bind | ( | ) |
JClientLdap::bind | ( | $username = null , |
|
$password = null , |
|||
$nosub = 0 |
|||
) |
JClientLdap::close | ( | ) |
JClientLdap::compare | ( | $dn, | |
$attribute, | |||
$value | |||
) |
Compare an entry and return a true or false result
string | $dn | The DN which contains the attribute you want to compare |
string | $attribute | The attribute whose value you want to compare |
string | $value | The value you want to check against the LDAP attribute |
Définition à la ligne 419 du fichier ldap.php.
JClientLdap::connect | ( | ) |
Connect to server
Définition à la ligne 136 du fichier ldap.php.
JClientLdap::create | ( | $dn, | |
array | $entries | ||
) |
JClientLdap::delete | ( | $dn | ) |
|
static |
Generates a LDAP compatible password
string | $password | Clear text password to encrypt |
string | $type | Type of password hash, either md5 or SHA |
JClientLdap::getDN | ( | ) |
Get the DN
JClientLdap::getErrorMsg | ( | ) |
|
static |
Converts a dot notation IP address to net address (e.g. for Netware, etc)
string | $ip | IP Address (e.g. xxx.xxx.xxx.xxx) |
Définition à la ligne 532 du fichier ldap.php.
|
static |
Extract readable network address from the LDAP encoded networkAddress attribute.
Please keep this document block and author attribution in place.
Novell Docs, see: http://developer.novell.com/ndk/doc/ndslib/schm_enu/data/sdk5624.html#sdk5624 for Address types: http://developer.novell.com/ndk/doc/ndslib/index.html?page=/ndk/doc/ndslib/schm_enu/data/sdk4170.html LDAP Format, String: taggedData = uint32String "#" octetstring byte 0 = uint32String = Address Type: 0= IPX Address; 1 = IP Address byte 1 = char = "#" - separator byte 2+ = octetstring - the ordinal value of the address Note: with eDirectory 8.6.2, the IP address (type 1) returns correctly, however, an IPX address does not seem to. eDir 8.7 may correct this. Enhancement made by Merijn van de Schoot: If addresstype is 8 (UDP) or 9 (TCP) do some additional parsing like still returning the IP address
string | $networkaddress | The network address |
Définition à la ligne 576 du fichier ldap.php.
Références JText\_().
JClientLdap::modify | ( | $dn, | |
$attribute | |||
) |
Modifies an entry and return a true or false result
string | $dn | The DN which contains the attribute you want to modify |
string | $attribute | The attribute values you want to modify |
Définition à la ligne 386 du fichier ldap.php.
JClientLdap::read | ( | $dn | ) |
Read all or specified attributes of given dn
string | $dn | The DN of the object you want to read |
Définition à la ligne 433 du fichier ldap.php.
JClientLdap::remove | ( | $dn, | |
$attribute | |||
) |
Removes attribute value from given dn and return a true or false result
string | $dn | The DN which contains the attribute you want to remove |
string | $attribute | The attribute values you want to remove |
JClientLdap::rename | ( | $dn, | |
$newdn, | |||
$newparent, | |||
$deleteolddn | |||
) |
Rename the entry
string | $dn | The DN of the entry at the moment |
string | $newdn | The DN of the entry should be (only cn=newvalue) |
string | $newparent | The full DN of the parent (null by default) |
boolean | $deleteolddn | Delete the old values (default) |
Définition à la ligne 506 du fichier ldap.php.
JClientLdap::replace | ( | $dn, | |
$attribute | |||
) |
Replace an entry and return a true or false result
string | $dn | The DN which contains the attribute you want to replace |
string | $attribute | The attribute values you want to replace |
Définition à la ligne 371 du fichier ldap.php.
JClientLdap::search | ( | array | $filters, |
$dnoverride = null , |
|||
array | $attributes = array() |
||
) |
Performs an LDAP search
array | $filters | Search Filters (array of strings) |
string | $dnoverride | DN Override |
array | $attributes | An array of attributes to return (if empty, all fields are returned). |
Définition à la ligne 301 du fichier ldap.php.
JClientLdap::setDN | ( | $username, | |
$nosub = 0 |
|||
) |
Sets the DN with some template replacements
string | $username | The username |
string | $nosub | ... |
JClientLdap::simple_search | ( | $search | ) |
Perform an LDAP search using comma separated search strings
string | $search | search string of search values |
Définition à la ligne 278 du fichier ldap.php.