JLDAP
LDAP client class
Located in /joomla/client/ldap.php (line 25)
JObject (Subpackage Base)
![]()
JLDAP (Subpackage Client)
bool
$auth_method
= null (line 32)
string
$base_dn
= null (line 38)
string
$host
= null (line 29)
boolean
$negotiate_tls
= null (line 53)
boolean
$no_referrals
= null (line 50)
string
$password
= null (line 60)
int
$port
= null (line 35)
string
$search_string
= null (line 44)
string
$username
= null (line 57)
string
$users_dn
= null (line 41)
boolean
$use_ldapV3
= null (line 47)
string
$_dn
= null (line 67)
mixed
$_resource
= null (line 64)
Inherited Variables
Inherited from JObject
JObject::$_errors
Constructor
- object An $configObj: object of configuration variables
- JObject::__construct()
- Class constructor, overridden in descendant classes.
Add an attribute to the given DN Note: DN has to exist already
- string $dn: dn The DN of the entry to add the attribute
- array $entry: entry An array of arrays with attributes to add
Binds to the LDAP directory
- string $username: The username
- string $password: The password
- $nosub
Compare an entry and return a true or false result
- string $dn: dn The DN which contains the attribute you want to compare
- string $attribute: attribute The attribute whose value you want to compare
- string $value: value The value you want to check against the LDAP attribute
Create a new DN
- string $dn: dn The DN where you want to put the object
- array $entries: entries An array of arrays describing the object to add
Deletes a given DN from the tree
- string $dn: dn The DN of the object you want to delete
Generates a LDAP compatible password
- string $password: password Clear text password to encrypt
- string $type: type Type of password hash, either md5 or SHA
Converts a dot notation IP address to net address (e.g. for Netware, etc)
- string $ip: IP Address (e.g. xxx.xxx.xxx.xxx)
extract readable network address from the LDAP encoded networkAddress attribute.
- $networkaddress
Modifies an entry and return a true or false result
- string $dn: dn The DN which contains the attribute you want to modify
- string $attribute: attribute The attribute values you want to modify
Read all or specified attributes of given dn
- string $dn: dn The DN of the object you want to read
- string $attribute: attribute The attribute values you want to read (Optional)
Removes attribute value from given dn and return a true or false result
- string $dn: dn The DN which contains the attribute you want to remove
- string $attribute: attribute The attribute values you want to remove
Rename the entry
- string $dn: dn The DN of the entry at the moment
- string $newdn: newdn The DN of the entry should be (only cn=newvalue)
- string $newparent: newparent The full DN of the parent (null by default)
- bool $deleteolddn: deleteolddn Delete the old values (default)
Replace an entry and return a true or false result
- string $dn: dn The DN which contains the attribute you want to replace
- string $attribute: attribute The attribute values you want to replace
Perform an LDAP search
- array $filters: Search Filters (array of strings)
- string $dnoverride: DN Override
Sets the DN with some template replacements
- string $username: The username
- $nosub
Perform an LDAP search using comma seperated search strings
- string $search: search string of search values
Inherited Methods
Inherited From JObject
JObject::JObject()
JObject::__construct()
JObject::get()
JObject::getError()
JObject::getErrors()
JObject::getProperties()
JObject::getPublicProperties()
JObject::set()
JObject::setError()
JObject::setProperties()
JObject::toString()




