From Joomla! Documentation

Revision as of 20:51, 24 March 2017 by JoomlaWikiBot (talk | contribs) (preparing for archive only)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The "API16" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Defined in[edit]



Method name Description
__construct Constructor
connect Connect to server boolean True if successful public
close Close the connection public
setDN Sets the DN with some template replacements
getDN string The current dn public
anonymous_bind Anonymously Binds to LDAP Directory
bind Binds to the LDAP directory
simple_search Perform an LDAP search using comma seperated search strings
search Perform an LDAP search
replace Replace an entry and return a true or false result
modify Modifies an entry and return a true or false result
remove Removes attribute value from given dn and return a true or false result
compare Compare an entry and return a true or false result
read Read all or specified attributes of given dn
delete Deletes a given DN from the tree
create Create a new DN
add Add an attribute to the given DN Note: DN has to exist already
rename Rename the entry
getErrorMsg Returns the error message
ipToNetAddress Converts a dot notation IP address to net address (e.g. for Netware, etc)
LDAPNetAddr extract readable network address from the LDAP encoded networkAddress attribute. Jay Burrell, Systems & Networks, Mississippi State University 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

generatePassword Generates a LDAP compatible password


jimport( 'joomla.client.ldap' );


Code Examples[edit]